diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 6d104a5957bd..618ed5fea785 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1418,10 +1418,6 @@ packages: resolution: {integrity: sha512-PB9GlnfojcQ4nf9WXdQvWeAk7gm8P74o+Z5IHz5YLK/W+3vrNrmVVVuFpGOvCPrLjag50UinaZsMBtPtxoiobg==} engines: {node: '>=14.0.0'} - '@azure/monitor-opentelemetry-exporter@1.0.0-beta.28': - resolution: {integrity: sha512-WowcSkuUcgZoOOIdai5c9Ypm21GKhmYF/7X1epEg3JY9pKlWKP0+aiKykVrYsgrKEuScIQ2MC3F0oe8yRFeqCw==} - engines: {node: '>=18.0.0'} - '@azure/msal-browser@3.28.1': resolution: {integrity: sha512-OHHEWMB5+Zrix8yKvLVzU3rKDFvh7SOzAzXfICD7YgUXLxfHpTPX2pzOotrri1kskwhHqIj4a5LvhZlIqE7C7g==} engines: {node: '>=0.8.0'} @@ -2396,7 +2392,7 @@ packages: version: 0.0.0 '@rush-temp/ai-inference@file:projects/ai-inference.tgz': - resolution: {integrity: sha512-gwQ7bX397EzFF+oCmKr0zWD550cOrgNeTPCRc5/KOu/Y3Hd5aY9a7DEe7BQmHcclChSTzeIieMqNwDzmfvC1Yg==, tarball: file:projects/ai-inference.tgz} + resolution: {integrity: sha512-aQ6qV+QuFeI3+m2eAWZXEyDl9nq3Ua/1sAObUXkydQHbiiBIS0tZdYiAz5/Zlv73N2MHIsxpwqcyQLViJlgcRQ==, tarball: file:projects/ai-inference.tgz} version: 0.0.0 '@rush-temp/ai-language-conversations@file:projects/ai-language-conversations.tgz': @@ -2412,7 +2408,7 @@ packages: version: 0.0.0 '@rush-temp/ai-projects@file:projects/ai-projects.tgz': - resolution: {integrity: sha512-CubMG3yKEhJqaN1sGjeABgDb0N9bXZkt3RGtNURESlkssBrNbR9vqF5a8nOF8x9ig+zcfs1D1zc4VCRwrRJEag==, tarball: file:projects/ai-projects.tgz} + resolution: {integrity: sha512-TMZ5sJJc5tTLVgAjNS+13PJg2yAK56FnDZPst0bcLbd4lIipuTfP6lv0D3Kkg81j/Q0hI8o9NRVct4wHjtUWrw==, tarball: file:projects/ai-projects.tgz} version: 0.0.0 '@rush-temp/ai-text-analytics@file:projects/ai-text-analytics.tgz': @@ -3244,7 +3240,7 @@ packages: version: 0.0.0 '@rush-temp/arm-resourceconnector@file:projects/arm-resourceconnector.tgz': - resolution: {integrity: sha512-XPRkeG0S1ZzCfJQWg6WPHNavAXREMaN1B5H+EtDjh4WxAlih6trV4N6ceNV2G+rAL1ONL9tMPOz1VWcs717KIA==, tarball: file:projects/arm-resourceconnector.tgz} + resolution: {integrity: sha512-w4pxTsjgX2UK6Ratc9t+4epy27jQVR/LMSyw/1R5vWgqF1zbTh1iM0kAXn5pOKlGNwr80vyS1dvL0P7eeOrmIw==, tarball: file:projects/arm-resourceconnector.tgz} version: 0.0.0 '@rush-temp/arm-resourcegraph@file:projects/arm-resourcegraph.tgz': @@ -3628,7 +3624,7 @@ packages: version: 0.0.0 '@rush-temp/event-hubs@file:projects/event-hubs.tgz': - resolution: {integrity: sha512-RIRzDPhSanA/bj6lkf+TND1BUXmJ/KlFEEdALRw7E4XkvTjsTharq8eMhe2Pkd7TOvYFjLeTtLXSSSSJMdY3ow==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-/mk9WNJE/VvEDkofF5/f/wpPReR3JNnVR6ixOeoJHtB0xOuuyuB/e3nxxXA4JRKD/ZAOWvFodP+u8LFMENff0Q==, tarball: file:projects/event-hubs.tgz} version: 0.0.0 '@rush-temp/eventgrid-namespaces@file:projects/eventgrid-namespaces.tgz': @@ -3644,11 +3640,11 @@ packages: version: 0.0.0 '@rush-temp/eventhubs-checkpointstore-blob@file:projects/eventhubs-checkpointstore-blob.tgz': - resolution: {integrity: sha512-YgUsp1iVlaLJPVDHMGkF6AnhjlOQP96f2gm1ZdxCfueLENKfanjRtHc3Ntb6zkTRNaecHyNTkblcsKPIAi4c2A==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-GONbUBR9axAGlDmbqpy3V/j0pEMfFspJEI7pvl/FN+KStHc3qt55JK/888iZ1KptQyfHzEXlNL3qauFtHl9dOA==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} version: 0.0.0 '@rush-temp/eventhubs-checkpointstore-table@file:projects/eventhubs-checkpointstore-table.tgz': - resolution: {integrity: sha512-6fdUutQ/w9/qCbd38eDt1egBuADB6TPMV1GRGOgbw2TMKdZf5qXs1ROf+u1Pf2zsFj3mU3OBJDBULfnEz6IgnA==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-MSxG33vfUiZradp0LPQElV3EU6mbp7pj2kz1h7Rm78bhKhnl228xwUZZ1bJ8sK6/daNHgctf0+wQvZ2wsqYILg==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} version: 0.0.0 '@rush-temp/functions-authentication-events@file:projects/functions-authentication-events.tgz': @@ -3684,7 +3680,7 @@ packages: version: 0.0.0 '@rush-temp/identity@file:projects/identity.tgz': - resolution: {integrity: sha512-CSOdi8rs21xe1Uo54fXNZik6ND4vP83IrDFYEvPu+KSvXESqV3njZtACIjtks9sFpl9z++K4P7y5V9paMQnNxg==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-U7pThslmDVIkMRkW6NNZG2/TPBecihxsQ7oshyV0q0cVweIndZNVx4wJzs0ij2fUM8XszkKAhOwIrIbx+glaXA==, tarball: file:projects/identity.tgz} version: 0.0.0 '@rush-temp/iot-device-update@file:projects/iot-device-update.tgz': @@ -3772,11 +3768,11 @@ packages: version: 0.0.0 '@rush-temp/monitor-opentelemetry@file:projects/monitor-opentelemetry.tgz': - resolution: {integrity: sha512-21W5HJrsgh9fxFz7UMR3Y8rWYJmgj7iTIe91DwIJbgmQMXZuwpBEjf/SqFyxzOYiVn4LJ2I7V+j+IKk//JWWGQ==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-Sm1vEDljQVzVy44Wn9+7e0MeRrbAErcj5CWDwlOg8Y4um17bAAySG4CvtCSGNbrb36zI0OU87BIgeHs04PgK0Q==, tarball: file:projects/monitor-opentelemetry.tgz} version: 0.0.0 '@rush-temp/monitor-query@file:projects/monitor-query.tgz': - resolution: {integrity: sha512-d/czN1OZ5e35Nogw3VWmB5h+C3aUJXEh/mb/jarYppyF3T9A4rbI703lYosqGeg/cQo+Kz5YE/wy15dptYxgOA==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-gfPx8/W5N3//hjGxhPlNyti2TFu23bO9jUEdfKqWQ6JO1ttZgeC9xQDYz0SXb7UL6xql1L7RSz91O9hQ7SfsMQ==, tarball: file:projects/monitor-query.tgz} version: 0.0.0 '@rush-temp/notification-hubs@file:projects/notification-hubs.tgz': @@ -3852,7 +3848,7 @@ packages: version: 0.0.0 '@rush-temp/perf-monitor-opentelemetry@file:projects/perf-monitor-opentelemetry.tgz': - resolution: {integrity: sha512-nwr+4PRhn/YqxelVMEVgPig2prXSLCU+EP/ryFZQqwIQNPZiV/KNeCz2oDKA/WUZPiO/JDKIDufcDaLgpy17DA==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-Wp/W1huU1sjsxIJt1/c5O8G1jKc3lzLQWyXQyjYxWlF3v+lpGbIaqCxevnIh8AGcu1VLAmPN86oNm4VnOXKozA==, tarball: file:projects/perf-monitor-opentelemetry.tgz} version: 0.0.0 '@rush-temp/perf-monitor-query@file:projects/perf-monitor-query.tgz': @@ -4179,9 +4175,6 @@ packages: '@types/jsonwebtoken@9.0.9': resolution: {integrity: sha512-uoe+GxEuHbvy12OUQct2X9JenKM3qAscquYymuQN4fMWG9DBQtykrQEFcAbVACF7qaLw9BePSodUL0kquqBJpQ==} - '@types/jws@3.2.10': - resolution: {integrity: sha512-cOevhttJmssERB88/+XvZXvsq5m9JLKZNUiGfgjUb5lcPRdV2ZQciU6dU76D/qXXFYpSqkP3PrSg4hMTiafTZw==} - '@types/linkify-it@5.0.0': resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==} @@ -4278,9 +4271,6 @@ packages: '@types/sinonjs__fake-timers@8.1.5': resolution: {integrity: sha512-mQkU2jY8jJEF7YHjHvsQO8+3ughTL1mcnn96igfhONmR+fUPSKIkefQYpSe8bsly2Ep7oQbn/6VG5/9/0qcArQ==} - '@types/stoppable@1.1.3': - resolution: {integrity: sha512-7wGKIBJGE4ZxFjk9NkjAxZMLlIXroETqP1FJCdoSvKmEznwmBxQFmTB1dsCkAvVcNemuSZM5qkkd9HE/NL2JTw==} - '@types/through@0.0.33': resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==} @@ -4556,10 +4546,6 @@ packages: engines: {node: '>=12.0.0'} hasBin: true - available-typed-arrays@1.0.7: - resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} - engines: {node: '>= 0.4'} - avsc@5.7.7: resolution: {integrity: sha512-9cYNccliXZDByFsFliVwk5GvTq058Fj513CiR4E60ndDwmuXzTJEp/Bp8FyuRmGyYupLjHLs+JA9/CBoVS4/NQ==} engines: {node: '>=0.11'} @@ -4634,10 +4620,6 @@ packages: resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} engines: {node: '>= 0.4'} - call-bind@1.0.8: - resolution: {integrity: sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==} - engines: {node: '>= 0.4'} - call-bound@1.0.4: resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} engines: {node: '>= 0.4'} @@ -4933,10 +4915,6 @@ packages: defaults@1.0.4: resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==} - define-data-property@1.1.4: - resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} - engines: {node: '>= 0.4'} - define-lazy-prop@2.0.0: resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} engines: {node: '>=8'} @@ -5285,10 +5263,6 @@ packages: flatted@3.3.3: resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==} - for-each@0.3.5: - resolution: {integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==} - engines: {node: '>= 0.4'} - foreground-child@3.3.1: resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} engines: {node: '>=14'} @@ -5430,9 +5404,6 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - has-property-descriptors@1.0.2: - resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} - has-symbols@1.1.0: resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} engines: {node: '>= 0.4'} @@ -5540,10 +5511,6 @@ packages: is-alphanumerical@1.0.4: resolution: {integrity: sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==} - is-arguments@1.2.0: - resolution: {integrity: sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==} - engines: {node: '>= 0.4'} - is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} @@ -5555,10 +5522,6 @@ packages: resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==} engines: {node: '>=4'} - is-callable@1.2.7: - resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} - engines: {node: '>= 0.4'} - is-core-module@2.16.1: resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==} engines: {node: '>= 0.4'} @@ -5584,10 +5547,6 @@ packages: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} engines: {node: '>=8'} - is-generator-function@1.1.0: - resolution: {integrity: sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==} - engines: {node: '>= 0.4'} - is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -5629,18 +5588,10 @@ packages: is-reference@1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} - is-regex@1.2.1: - resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==} - engines: {node: '>= 0.4'} - is-stream@2.0.1: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} engines: {node: '>=8'} - is-typed-array@1.1.15: - resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==} - engines: {node: '>= 0.4'} - is-unicode-supported@0.1.0: resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} engines: {node: '>=10'} @@ -6375,10 +6326,6 @@ packages: resolution: {integrity: sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - possible-typed-array-names@1.1.0: - resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==} - engines: {node: '>= 0.4'} - postcss@8.5.3: resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==} engines: {node: ^10 || ^12 || >=14} @@ -6624,10 +6571,6 @@ packages: safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - safe-regex-test@1.1.0: - resolution: {integrity: sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==} - engines: {node: '>= 0.4'} - safe-stable-stringify@2.5.0: resolution: {integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==} engines: {node: '>=10'} @@ -6664,10 +6607,6 @@ packages: resolution: {integrity: sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==} engines: {node: '>= 0.8.0'} - set-function-length@1.2.2: - resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} - engines: {node: '>= 0.4'} - setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} @@ -7140,9 +7079,6 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - util@0.12.5: - resolution: {integrity: sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==} - utils-merge@1.0.1: resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} @@ -7254,10 +7190,6 @@ packages: whatwg-url@5.0.0: resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} - which-typed-array@1.1.19: - resolution: {integrity: sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==} - engines: {node: '>= 0.4'} - which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -7767,23 +7699,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@azure/monitor-opentelemetry-exporter@1.0.0-beta.28': - dependencies: - '@azure/core-auth': 1.9.0 - '@azure/core-client': 1.9.3 - '@azure/core-rest-pipeline': 1.19.1 - '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.57.2 - '@opentelemetry/core': 1.30.1(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.30.1(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-logs': 0.57.2(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-metrics': 1.30.1(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.30.1(@opentelemetry/api@1.9.0) - '@opentelemetry/semantic-conventions': 1.30.0 - tslib: 2.8.1 - transitivePeerDependencies: - - supports-color - '@azure/msal-browser@3.28.1': dependencies: '@azure/msal-common': 14.16.0 @@ -20413,25 +20328,18 @@ snapshots: '@azure/msal-browser': 4.8.0 '@azure/msal-node': 3.3.0 '@types/jsonwebtoken': 9.0.9 - '@types/jws': 3.2.10 '@types/ms': 2.1.0 '@types/node': 18.19.86 - '@types/stoppable': 1.1.3 '@vitest/browser': 3.1.1(playwright@1.51.1)(vite@6.2.5(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.1) '@vitest/coverage-istanbul': 3.1.1(vitest@3.1.1) dotenv: 16.4.7 eslint: 9.24.0 - events: 3.3.0 - inherits: 2.0.4 jsonwebtoken: 9.0.2 - jws: 4.0.0 ms: 2.1.3 open: 10.1.0 playwright: 1.51.1 - stoppable: 1.1.0 tslib: 2.8.1 typescript: 5.8.2 - util: 0.12.5 vitest: 3.1.1(@types/debug@4.1.12)(@types/node@18.19.86)(@vitest/browser@3.1.1)(tsx@4.19.3)(yaml@2.7.1) transitivePeerDependencies: - '@edge-runtime/vm' @@ -21221,7 +21129,6 @@ snapshots: dependencies: '@azure/functions': 4.7.0 '@azure/functions-old': '@azure/functions@3.5.1' - '@azure/monitor-opentelemetry-exporter': 1.0.0-beta.28 '@microsoft/applicationinsights-web-snippet': 1.2.1 '@opentelemetry/api': 1.9.0 '@opentelemetry/api-logs': 0.57.2 @@ -23198,10 +23105,6 @@ snapshots: '@types/ms': 2.1.0 '@types/node': 18.19.86 - '@types/jws@3.2.10': - dependencies: - '@types/node': 18.19.86 - '@types/linkify-it@5.0.0': {} '@types/markdown-it@14.1.2': @@ -23302,10 +23205,6 @@ snapshots: '@types/sinonjs__fake-timers@8.1.5': {} - '@types/stoppable@1.1.3': - dependencies: - '@types/node': 18.19.86 - '@types/through@0.0.33': dependencies: '@types/node': 18.19.86 @@ -23629,10 +23528,6 @@ snapshots: autorest@3.7.1: {} - available-typed-arrays@1.0.7: - dependencies: - possible-typed-array-names: 1.1.0 - avsc@5.7.7: {} balanced-match@1.0.2: {} @@ -23715,13 +23610,6 @@ snapshots: es-errors: 1.3.0 function-bind: 1.1.2 - call-bind@1.0.8: - dependencies: - call-bind-apply-helpers: 1.0.2 - es-define-property: 1.0.1 - get-intrinsic: 1.3.0 - set-function-length: 1.2.2 - call-bound@1.0.4: dependencies: call-bind-apply-helpers: 1.0.2 @@ -24022,12 +23910,6 @@ snapshots: dependencies: clone: 1.0.4 - define-data-property@1.1.4: - dependencies: - es-define-property: 1.0.1 - es-errors: 1.3.0 - gopd: 1.2.0 - define-lazy-prop@2.0.0: {} define-lazy-prop@3.0.0: {} @@ -24421,10 +24303,6 @@ snapshots: flatted@3.3.3: {} - for-each@0.3.5: - dependencies: - is-callable: 1.2.7 - foreground-child@3.3.1: dependencies: cross-spawn: 7.0.6 @@ -24575,10 +24453,6 @@ snapshots: has-flag@4.0.0: {} - has-property-descriptors@1.0.2: - dependencies: - es-define-property: 1.0.1 - has-symbols@1.1.0: {} has-tostringtag@1.0.2: @@ -24692,11 +24566,6 @@ snapshots: is-alphabetical: 1.0.4 is-decimal: 1.0.4 - is-arguments@1.2.0: - dependencies: - call-bound: 1.0.4 - has-tostringtag: 1.0.2 - is-arrayish@0.2.1: {} is-binary-path@2.1.0: @@ -24705,8 +24574,6 @@ snapshots: is-buffer@2.0.5: {} - is-callable@1.2.7: {} - is-core-module@2.16.1: dependencies: hasown: 2.0.2 @@ -24721,13 +24588,6 @@ snapshots: is-fullwidth-code-point@3.0.0: {} - is-generator-function@1.1.0: - dependencies: - call-bound: 1.0.4 - get-proto: 1.0.1 - has-tostringtag: 1.0.2 - safe-regex-test: 1.1.0 - is-glob@4.0.3: dependencies: is-extglob: 2.1.1 @@ -24756,19 +24616,8 @@ snapshots: dependencies: '@types/estree': 1.0.7 - is-regex@1.2.1: - dependencies: - call-bound: 1.0.4 - gopd: 1.2.0 - has-tostringtag: 1.0.2 - hasown: 2.0.2 - is-stream@2.0.1: {} - is-typed-array@1.1.15: - dependencies: - which-typed-array: 1.1.19 - is-unicode-supported@0.1.0: {} is-wsl@2.2.0: @@ -25522,8 +25371,6 @@ snapshots: polite-json@5.0.0: {} - possible-typed-array-names@1.1.0: {} - postcss@8.5.3: dependencies: nanoid: 3.3.11 @@ -25822,12 +25669,6 @@ snapshots: safe-buffer@5.2.1: {} - safe-regex-test@1.1.0: - dependencies: - call-bound: 1.0.4 - es-errors: 1.3.0 - is-regex: 1.2.1 - safe-stable-stringify@2.5.0: {} safer-buffer@2.1.2: {} @@ -25869,15 +25710,6 @@ snapshots: parseurl: 1.3.3 send: 0.19.0 - set-function-length@1.2.2: - dependencies: - define-data-property: 1.1.4 - es-errors: 1.3.0 - function-bind: 1.1.2 - get-intrinsic: 1.3.0 - gopd: 1.2.0 - has-property-descriptors: 1.0.2 - setprototypeof@1.2.0: {} shebang-command@2.0.0: @@ -26322,14 +26154,6 @@ snapshots: util-deprecate@1.0.2: {} - util@0.12.5: - dependencies: - inherits: 2.0.4 - is-arguments: 1.2.0 - is-generator-function: 1.1.0 - is-typed-array: 1.1.15 - which-typed-array: 1.1.19 - utils-merge@1.0.1: {} uuid@8.3.2: {} @@ -26576,16 +26400,6 @@ snapshots: tr46: 0.0.3 webidl-conversions: 3.0.1 - which-typed-array@1.1.19: - dependencies: - available-typed-arrays: 1.0.7 - call-bind: 1.0.8 - call-bound: 1.0.4 - for-each: 0.3.5 - get-proto: 1.0.1 - gopd: 1.2.0 - has-tostringtag: 1.0.2 - which@2.0.2: dependencies: isexe: 2.0.0 diff --git a/sdk/resourceconnector/arm-resourceconnector/CHANGELOG.md b/sdk/resourceconnector/arm-resourceconnector/CHANGELOG.md index cdcd5f9c7c3a..3487b6671a0e 100644 --- a/sdk/resourceconnector/arm-resourceconnector/CHANGELOG.md +++ b/sdk/resourceconnector/arm-resourceconnector/CHANGELOG.md @@ -1,7 +1,22 @@ # Release History -## 1.0.0 (2023-08-14) - +## 2.0.0 (2025-04-09) + ### Features Added -The package of @azure/arm-resourceconnector is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). + - Interface AppliancesListKeysOptionalParams has a new optional parameter artifactType + - Enum KnownStatus has a new value EtcdSnapshotFailed + - Enum KnownStatus has a new value ValidatingEtcdHealth + - Enum KnownStatus has a new value ValidatingImageDownload + - Enum KnownStatus has a new value ValidatingImageUpload + - Enum KnownStatus has a new value ValidatingSFSConnectivity + +### Breaking Changes + + - Enum KnownProvider no longer has value KubeVirt + - Enum KnownProvider no longer has value OpenStack + + +## 1.0.0 (2023-08-14) + +The package of @azure/arm-resourceconnector is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/resourceconnector/arm-resourceconnector/LICENSE b/sdk/resourceconnector/arm-resourceconnector/LICENSE index b2f52a2bad4e..63447fd8bbbf 100644 --- a/sdk/resourceconnector/arm-resourceconnector/LICENSE +++ b/sdk/resourceconnector/arm-resourceconnector/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/resourceconnector/arm-resourceconnector/README.md b/sdk/resourceconnector/arm-resourceconnector/README.md index eb7f7b4fe456..02741762ea1e 100644 --- a/sdk/resourceconnector/arm-resourceconnector/README.md +++ b/sdk/resourceconnector/arm-resourceconnector/README.md @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure ResourceConnectorManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur import { InteractiveBrowserCredential } from "@azure/identity"; import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new InteractiveBrowserCredential({ tenantId: "", - clientId: "", -}); + clientId: "" + }); const client = new ResourceConnectorManagementClient(credential, subscriptionId); ``` ### JavaScript Bundle - To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). ## Key concepts @@ -109,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - [azure_cli]: https://learn.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/resourceconnector/arm-resourceconnector/_meta.json b/sdk/resourceconnector/arm-resourceconnector/_meta.json index 86e883a678df..f56b6c04e1d9 100644 --- a/sdk/resourceconnector/arm-resourceconnector/_meta.json +++ b/sdk/resourceconnector/arm-resourceconnector/_meta.json @@ -1,8 +1,8 @@ { - "commit": "6c6b16dc98d720304633b76c8e82c282ffa9cc08", + "commit": "ad541c189361c63b8b4aed2cb3f4f10d80fd2ebb", "readme": "specification/resourceconnector/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\resourceconnector\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resourceconnector/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.23", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/resourceconnector/arm-resourceconnector/api-extractor.json b/sdk/resourceconnector/arm-resourceconnector/api-extractor.json index 1c19589fb076..5adf2f8e4305 100644 --- a/sdk/resourceconnector/arm-resourceconnector/api-extractor.json +++ b/sdk/resourceconnector/arm-resourceconnector/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "dist/esm/index.d.ts", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "dist/arm-resourceconnector.d.ts" + "publicTrimmedFilePath": "./types/arm-resourceconnector.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/resourceconnector/arm-resourceconnector/assets.json b/sdk/resourceconnector/arm-resourceconnector/assets.json deleted file mode 100644 index 5c1874cf73fc..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/resourceconnector/arm-resourceconnector", - "Tag": "js/resourceconnector/arm-resourceconnector_f519a726c0" -} diff --git a/sdk/resourceconnector/arm-resourceconnector/package.json b/sdk/resourceconnector/arm-resourceconnector/package.json index e68d3224fb0b..db28f96647f6 100644 --- a/sdk/resourceconnector/arm-resourceconnector/package.json +++ b/sdk/resourceconnector/arm-resourceconnector/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ResourceConnectorManagementClient.", - "version": "1.0.0", + "version": "2.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.9.0", - "@azure/core-client": "^1.9.2", - "@azure/core-lro": "^2.5.3", + "@azure/core-client": "^1.9.3", + "@azure/core-lro": "^2.5.4", "@azure/core-paging": "^1.6.2", - "@azure/core-rest-pipeline": "^1.19.0", + "@azure/core-rest-pipeline": "^1.19.1", "tslib": "^2.8.1" }, "keywords": [ @@ -25,20 +25,20 @@ ], "license": "MIT", "main": "./dist/commonjs/index.js", - "module": "./dist/esm/index.js", + "module": "./dist-esm/src/index.js", "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.6.0", + "@azure/identity": "^4.8.0", "@azure/logger": "^1.1.4", "@types/node": "^18.0.0", "@vitest/browser": "^3.0.9", "@vitest/coverage-istanbul": "^3.0.9", "dotenv": "^16.0.0", - "playwright": "^1.50.1", + "playwright": "^1.51.1", "typescript": "~5.8.2", "vitest": "^3.0.9" }, @@ -93,14 +93,6 @@ }, "autoPublish": true, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourceconnector/arm-resourceconnector", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-resourceconnector?view=azure-node-preview" - }, "type": "module", "tshy": { "project": "./tsconfig.src.json", @@ -141,4 +133,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/resourceconnector/arm-resourceconnector/review/arm-resourceconnector.api.md b/sdk/resourceconnector/arm-resourceconnector/review/arm-resourceconnector.api.md index 398c8d41c251..b4cec8993536 100644 --- a/sdk/resourceconnector/arm-resourceconnector/review/arm-resourceconnector.api.md +++ b/sdk/resourceconnector/arm-resourceconnector/review/arm-resourceconnector.api.md @@ -170,6 +170,7 @@ export type AppliancesListClusterUserCredentialResponse = ApplianceListCredentia // @public export interface AppliancesListKeysOptionalParams extends coreClient.OperationOptions { + artifactType?: string; } // @public @@ -278,8 +279,6 @@ export enum KnownDistro { // @public export enum KnownProvider { HCI = "HCI", - KubeVirt = "KubeVirt", - OpenStack = "OpenStack", Scvmm = "SCVMM", VMWare = "VMWare" } @@ -302,6 +301,7 @@ export enum KnownSSHKeyType { export enum KnownStatus { Connected = "Connected", Connecting = "Connecting", + EtcdSnapshotFailed = "ETCDSnapshotFailed", ImageDeprovisioning = "ImageDeprovisioning", ImageDownloaded = "ImageDownloaded", ImageDownloading = "ImageDownloading", @@ -324,6 +324,10 @@ export enum KnownStatus { UpgradePrerequisitesCompleted = "UpgradePrerequisitesCompleted", UpgradingKvaio = "UpgradingKVAIO", Validating = "Validating", + ValidatingEtcdHealth = "ValidatingETCDHealth", + ValidatingImageDownload = "ValidatingImageDownload", + ValidatingImageUpload = "ValidatingImageUpload", + ValidatingSFSConnectivity = "ValidatingSFSConnectivity", WaitingForCloudOperator = "WaitingForCloudOperator", WaitingForHeartbeat = "WaitingForHeartbeat", WaitingForKvaio = "WaitingForKVAIO" diff --git a/sdk/resourceconnector/arm-resourceconnector/sample.env b/sdk/resourceconnector/arm-resourceconnector/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/resourceconnector/arm-resourceconnector/sample.env +++ b/sdk/resourceconnector/arm-resourceconnector/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesCreateOrUpdateSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesCreateOrUpdateSample.ts deleted file mode 100644 index bbb617e7f56c..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesCreateOrUpdateSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import type { Appliance } from "@azure/arm-resourceconnector"; -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Creates or updates an Appliance in the specified Subscription and Resource Group. - * - * @summary Creates or updates an Appliance in the specified Subscription and Resource Group. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesCreate_Update.json - */ -async function createOrUpdateAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const parameters: Appliance = { - distro: "AKSEdge", - infrastructureConfig: { provider: "VMWare" }, - location: "West US", - }; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.beginCreateOrUpdateAndWait( - resourceGroupName, - resourceName, - parameters, - ); - console.log(result); -} - -async function main(): Promise { - await createOrUpdateAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesDeleteSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesDeleteSample.ts deleted file mode 100644 index 39e6b1553c14..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesDeleteSample.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. - * - * @summary Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesDelete.json - */ -async function deleteAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.beginDeleteAndWait(resourceGroupName, resourceName); - console.log(result); -} - -async function main(): Promise { - await deleteAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesGetSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesGetSample.ts deleted file mode 100644 index 25b2190cd934..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesGetSample.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Gets the details of an Appliance with a specified resource group and name. - * - * @summary Gets the details of an Appliance with a specified resource group and name. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesGet.json - */ -async function getAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.get(resourceGroupName, resourceName); - console.log(result); -} - -async function main(): Promise { - await getAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesGetTelemetryConfigSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesGetTelemetryConfigSample.ts deleted file mode 100644 index c418546a8ec3..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesGetTelemetryConfigSample.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Gets the telemetry config. - * - * @summary Gets the telemetry config. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/TelemetryConfig.json - */ -async function getTelemetryConfigAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.getTelemetryConfig(); - console.log(result); -} - -async function main(): Promise { - await getTelemetryConfigAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesGetUpgradeGraphSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesGetUpgradeGraphSample.ts deleted file mode 100644 index 51b169f97540..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesGetUpgradeGraphSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train. - * - * @summary Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/UpgradeGraph.json - */ -async function getApplianceUpgradeGraph(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const upgradeGraph = "stable"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.getUpgradeGraph( - resourceGroupName, - resourceName, - upgradeGraph, - ); - console.log(result); -} - -async function main(): Promise { - await getApplianceUpgradeGraph(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListByResourceGroupSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListByResourceGroupSample.ts deleted file mode 100644 index c75a4c881377..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListByResourceGroupSample.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance. - * - * @summary Gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListByResourceGroup.json - */ -async function listAppliancesByResourceGroup(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.appliances.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main(): Promise { - await listAppliancesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListBySubscriptionSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListBySubscriptionSample.ts deleted file mode 100644 index 6f7e6ce733f9..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListBySubscriptionSample.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Gets a list of Appliances in the specified subscription. The operation returns properties of each Appliance - * - * @summary Gets a list of Appliances in the specified subscription. The operation returns properties of each Appliance - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListBySubscription.json - */ -async function listAppliancesBySubscription(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.appliances.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main(): Promise { - await listAppliancesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListClusterUserCredentialSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListClusterUserCredentialSample.ts deleted file mode 100644 index e6f2e591009c..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListClusterUserCredentialSample.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Returns the cluster user credentials for the dedicated appliance. - * - * @summary Returns the cluster user credentials for the dedicated appliance. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListClusterUserCredential.json - */ -async function listClusterUserCredentialAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.listClusterUserCredential(resourceGroupName, resourceName); - console.log(result); -} - -async function main(): Promise { - await listClusterUserCredentialAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListKeysSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListKeysSample.ts deleted file mode 100644 index 99a98554390e..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListKeysSample.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Returns the cluster customer credentials for the dedicated appliance. - * - * @summary Returns the cluster customer credentials for the dedicated appliance. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListKeys.json - */ -async function listKeysAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.listKeys(resourceGroupName, resourceName); - console.log(result); -} - -async function main(): Promise { - await listKeysAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListOperationsSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListOperationsSample.ts deleted file mode 100644 index 76238d0bd2ab..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesListOperationsSample.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Lists all available Appliances operations. - * - * @summary Lists all available Appliances operations. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListOperations.json - */ -async function listAppliancesOperations(): Promise { - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential); - const resArray = new Array(); - for await (const item of client.appliances.listOperations()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main(): Promise { - await listAppliancesOperations(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesUpdateSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesUpdateSample.ts deleted file mode 100644 index 462392529ff2..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples-dev/appliancesUpdateSample.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import type { AppliancesUpdateOptionalParams } from "@azure/arm-resourceconnector"; -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription. - * - * @summary Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesPatch.json - */ -async function updateAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const tags = { key: "value" }; - const options: AppliancesUpdateOptionalParams = { tags }; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.update(resourceGroupName, resourceName, options); - console.log(result); -} - -async function main(): Promise { - await updateAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/README.md b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/README.md deleted file mode 100644 index da4c4310047a..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/README.md +++ /dev/null @@ -1,70 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [appliancesCreateOrUpdateSample.js][appliancescreateorupdatesample] | Creates or updates an Appliance in the specified Subscription and Resource Group. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesCreate_Update.json | -| [appliancesDeleteSample.js][appliancesdeletesample] | Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesDelete.json | -| [appliancesGetSample.js][appliancesgetsample] | Gets the details of an Appliance with a specified resource group and name. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesGet.json | -| [appliancesGetTelemetryConfigSample.js][appliancesgettelemetryconfigsample] | Gets the telemetry config. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/TelemetryConfig.json | -| [appliancesGetUpgradeGraphSample.js][appliancesgetupgradegraphsample] | Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/UpgradeGraph.json | -| [appliancesListByResourceGroupSample.js][applianceslistbyresourcegroupsample] | Gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListByResourceGroup.json | -| [appliancesListBySubscriptionSample.js][applianceslistbysubscriptionsample] | Gets a list of Appliances in the specified subscription. The operation returns properties of each Appliance x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListBySubscription.json | -| [appliancesListClusterUserCredentialSample.js][applianceslistclusterusercredentialsample] | Returns the cluster user credentials for the dedicated appliance. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListClusterUserCredential.json | -| [appliancesListKeysSample.js][applianceslistkeyssample] | Returns the cluster customer credentials for the dedicated appliance. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListKeys.json | -| [appliancesListOperationsSample.js][applianceslistoperationssample] | Lists all available Appliances operations. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListOperations.json | -| [appliancesUpdateSample.js][appliancesupdatesample] | Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesPatch.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node appliancesCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env RESOURCECONNECTOR_SUBSCRIPTION_ID="" RESOURCECONNECTOR_RESOURCE_GROUP="" node appliancesCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[appliancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesCreateOrUpdateSample.js -[appliancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesDeleteSample.js -[appliancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetSample.js -[appliancesgettelemetryconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetTelemetryConfigSample.js -[appliancesgetupgradegraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetUpgradeGraphSample.js -[applianceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListByResourceGroupSample.js -[applianceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListBySubscriptionSample.js -[applianceslistclusterusercredentialsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListClusterUserCredentialSample.js -[applianceslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListKeysSample.js -[applianceslistoperationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListOperationsSample.js -[appliancesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesUpdateSample.js -[apiref]: https://learn.microsoft.com/javascript/api/@azure/arm-resourceconnector?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourceconnector/arm-resourceconnector/README.md diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesCreateOrUpdateSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesCreateOrUpdateSample.js deleted file mode 100644 index 343c8d660588..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesCreateOrUpdateSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates an Appliance in the specified Subscription and Resource Group. - * - * @summary Creates or updates an Appliance in the specified Subscription and Resource Group. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesCreate_Update.json - */ -async function createOrUpdateAppliance() { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const parameters = { - distro: "AKSEdge", - infrastructureConfig: { provider: "VMWare" }, - location: "West US", - }; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.beginCreateOrUpdateAndWait( - resourceGroupName, - resourceName, - parameters - ); - console.log(result); -} - -async function main() { - createOrUpdateAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesDeleteSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesDeleteSample.js deleted file mode 100644 index 9df82e2b6ec5..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. - * - * @summary Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesDelete.json - */ -async function deleteAppliance() { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.beginDeleteAndWait(resourceGroupName, resourceName); - console.log(result); -} - -async function main() { - deleteAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetSample.js deleted file mode 100644 index 63e957a541f4..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the details of an Appliance with a specified resource group and name. - * - * @summary Gets the details of an Appliance with a specified resource group and name. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesGet.json - */ -async function getAppliance() { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.get(resourceGroupName, resourceName); - console.log(result); -} - -async function main() { - getAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetTelemetryConfigSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetTelemetryConfigSample.js deleted file mode 100644 index 49f4ef26bdc6..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetTelemetryConfigSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the telemetry config. - * - * @summary Gets the telemetry config. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/TelemetryConfig.json - */ -async function getTelemetryConfigAppliance() { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.getTelemetryConfig(); - console.log(result); -} - -async function main() { - getTelemetryConfigAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetUpgradeGraphSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetUpgradeGraphSample.js deleted file mode 100644 index 9516afc89b16..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesGetUpgradeGraphSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train. - * - * @summary Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/UpgradeGraph.json - */ -async function getApplianceUpgradeGraph() { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const upgradeGraph = "stable"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.getUpgradeGraph( - resourceGroupName, - resourceName, - upgradeGraph - ); - console.log(result); -} - -async function main() { - getApplianceUpgradeGraph(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListByResourceGroupSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListByResourceGroupSample.js deleted file mode 100644 index 9290941f9766..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance. - * - * @summary Gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListByResourceGroup.json - */ -async function listAppliancesByResourceGroup() { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.appliances.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAppliancesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListBySubscriptionSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListBySubscriptionSample.js deleted file mode 100644 index 2dd076d2a0cb..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a list of Appliances in the specified subscription. The operation returns properties of each Appliance - * - * @summary Gets a list of Appliances in the specified subscription. The operation returns properties of each Appliance - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListBySubscription.json - */ -async function listAppliancesBySubscription() { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.appliances.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAppliancesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListClusterUserCredentialSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListClusterUserCredentialSample.js deleted file mode 100644 index e498901dd7fc..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListClusterUserCredentialSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns the cluster user credentials for the dedicated appliance. - * - * @summary Returns the cluster user credentials for the dedicated appliance. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListClusterUserCredential.json - */ -async function listClusterUserCredentialAppliance() { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.listClusterUserCredential(resourceGroupName, resourceName); - console.log(result); -} - -async function main() { - listClusterUserCredentialAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListKeysSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListKeysSample.js deleted file mode 100644 index 4b9673f30e87..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListKeysSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns the cluster customer credentials for the dedicated appliance. - * - * @summary Returns the cluster customer credentials for the dedicated appliance. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListKeys.json - */ -async function listKeysAppliance() { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.listKeys(resourceGroupName, resourceName); - console.log(result); -} - -async function main() { - listKeysAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListOperationsSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListOperationsSample.js deleted file mode 100644 index d941c9f001e2..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesListOperationsSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all available Appliances operations. - * - * @summary Lists all available Appliances operations. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListOperations.json - */ -async function listAppliancesOperations() { - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential); - const resArray = new Array(); - for await (let item of client.appliances.listOperations()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAppliancesOperations(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesUpdateSample.js b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesUpdateSample.js deleted file mode 100644 index 73cc0d22d12a..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/appliancesUpdateSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ResourceConnectorManagementClient } = require("@azure/arm-resourceconnector"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription. - * - * @summary Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesPatch.json - */ -async function updateAppliance() { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const tags = { key: "value" }; - const options = { tags }; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); - const result = await client.appliances.update(resourceGroupName, resourceName, options); - console.log(result); -} - -async function main() { - updateAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/package.json b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/package.json deleted file mode 100644 index edf1baae4126..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-resourceconnector-js", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/resourceconnector/arm-resourceconnector" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourceconnector/arm-resourceconnector", - "dependencies": { - "@azure/arm-resourceconnector": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/sample.env b/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/README.md b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/README.md deleted file mode 100644 index 6078be19c8fc..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/README.md +++ /dev/null @@ -1,83 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [appliancesCreateOrUpdateSample.ts][appliancescreateorupdatesample] | Creates or updates an Appliance in the specified Subscription and Resource Group. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesCreate_Update.json | -| [appliancesDeleteSample.ts][appliancesdeletesample] | Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesDelete.json | -| [appliancesGetSample.ts][appliancesgetsample] | Gets the details of an Appliance with a specified resource group and name. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesGet.json | -| [appliancesGetTelemetryConfigSample.ts][appliancesgettelemetryconfigsample] | Gets the telemetry config. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/TelemetryConfig.json | -| [appliancesGetUpgradeGraphSample.ts][appliancesgetupgradegraphsample] | Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/UpgradeGraph.json | -| [appliancesListByResourceGroupSample.ts][applianceslistbyresourcegroupsample] | Gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListByResourceGroup.json | -| [appliancesListBySubscriptionSample.ts][applianceslistbysubscriptionsample] | Gets a list of Appliances in the specified subscription. The operation returns properties of each Appliance x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListBySubscription.json | -| [appliancesListClusterUserCredentialSample.ts][applianceslistclusterusercredentialsample] | Returns the cluster user credentials for the dedicated appliance. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListClusterUserCredential.json | -| [appliancesListKeysSample.ts][applianceslistkeyssample] | Returns the cluster customer credentials for the dedicated appliance. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListKeys.json | -| [appliancesListOperationsSample.ts][applianceslistoperationssample] | Lists all available Appliances operations. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListOperations.json | -| [appliancesUpdateSample.ts][appliancesupdatesample] | Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription. x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesPatch.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/appliancesCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env RESOURCECONNECTOR_SUBSCRIPTION_ID="" RESOURCECONNECTOR_RESOURCE_GROUP="" node dist/appliancesCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[appliancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesCreateOrUpdateSample.ts -[appliancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesDeleteSample.ts -[appliancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetSample.ts -[appliancesgettelemetryconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetTelemetryConfigSample.ts -[appliancesgetupgradegraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetUpgradeGraphSample.ts -[applianceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListByResourceGroupSample.ts -[applianceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListBySubscriptionSample.ts -[applianceslistclusterusercredentialsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListClusterUserCredentialSample.ts -[applianceslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListKeysSample.ts -[applianceslistoperationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListOperationsSample.ts -[appliancesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesUpdateSample.ts -[apiref]: https://learn.microsoft.com/javascript/api/@azure/arm-resourceconnector?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourceconnector/arm-resourceconnector/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/package.json b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/package.json deleted file mode 100644 index a03e082d25dc..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-resourceconnector-ts", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/resourceconnector/arm-resourceconnector" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourceconnector/arm-resourceconnector", - "dependencies": { - "@azure/arm-resourceconnector": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.8.2", - "rimraf": "latest" - } -} diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/sample.env b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesCreateOrUpdateSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesCreateOrUpdateSample.ts deleted file mode 100644 index 68dccfb858c4..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesCreateOrUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - Appliance, - ResourceConnectorManagementClient -} from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Creates or updates an Appliance in the specified Subscription and Resource Group. - * - * @summary Creates or updates an Appliance in the specified Subscription and Resource Group. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesCreate_Update.json - */ -async function createOrUpdateAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || - "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = - process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const parameters: Appliance = { - distro: "AKSEdge", - infrastructureConfig: { provider: "VMWare" }, - location: "West US" - }; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient( - credential, - subscriptionId - ); - const result = await client.appliances.beginCreateOrUpdateAndWait( - resourceGroupName, - resourceName, - parameters - ); - console.log(result); -} - -async function main(): Promise { - createOrUpdateAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesDeleteSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesDeleteSample.ts deleted file mode 100644 index d3f303e84810..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesDeleteSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. - * - * @summary Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesDelete.json - */ -async function deleteAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || - "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = - process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient( - credential, - subscriptionId - ); - const result = await client.appliances.beginDeleteAndWait( - resourceGroupName, - resourceName - ); - console.log(result); -} - -async function main(): Promise { - deleteAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetSample.ts deleted file mode 100644 index d3343d895ce3..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Gets the details of an Appliance with a specified resource group and name. - * - * @summary Gets the details of an Appliance with a specified resource group and name. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesGet.json - */ -async function getAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || - "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = - process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient( - credential, - subscriptionId - ); - const result = await client.appliances.get(resourceGroupName, resourceName); - console.log(result); -} - -async function main(): Promise { - getAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetTelemetryConfigSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetTelemetryConfigSample.ts deleted file mode 100644 index 345d939981fb..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetTelemetryConfigSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Gets the telemetry config. - * - * @summary Gets the telemetry config. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/TelemetryConfig.json - */ -async function getTelemetryConfigAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || - "11111111-2222-3333-4444-555555555555"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient( - credential, - subscriptionId - ); - const result = await client.appliances.getTelemetryConfig(); - console.log(result); -} - -async function main(): Promise { - getTelemetryConfigAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetUpgradeGraphSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetUpgradeGraphSample.ts deleted file mode 100644 index 164766f3ea18..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesGetUpgradeGraphSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train. - * - * @summary Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/UpgradeGraph.json - */ -async function getApplianceUpgradeGraph(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || - "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = - process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const upgradeGraph = "stable"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient( - credential, - subscriptionId - ); - const result = await client.appliances.getUpgradeGraph( - resourceGroupName, - resourceName, - upgradeGraph - ); - console.log(result); -} - -async function main(): Promise { - getApplianceUpgradeGraph(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListByResourceGroupSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListByResourceGroupSample.ts deleted file mode 100644 index 071439299714..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListByResourceGroupSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance. - * - * @summary Gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListByResourceGroup.json - */ -async function listAppliancesByResourceGroup(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || - "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = - process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.appliances.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main(): Promise { - listAppliancesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListBySubscriptionSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListBySubscriptionSample.ts deleted file mode 100644 index d86d34846b2b..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListBySubscriptionSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Gets a list of Appliances in the specified subscription. The operation returns properties of each Appliance - * - * @summary Gets a list of Appliances in the specified subscription. The operation returns properties of each Appliance - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListBySubscription.json - */ -async function listAppliancesBySubscription(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || - "11111111-2222-3333-4444-555555555555"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.appliances.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main(): Promise { - listAppliancesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListClusterUserCredentialSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListClusterUserCredentialSample.ts deleted file mode 100644 index 62610b72085f..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListClusterUserCredentialSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Returns the cluster user credentials for the dedicated appliance. - * - * @summary Returns the cluster user credentials for the dedicated appliance. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListClusterUserCredential.json - */ -async function listClusterUserCredentialAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || - "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = - process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient( - credential, - subscriptionId - ); - const result = await client.appliances.listClusterUserCredential( - resourceGroupName, - resourceName - ); - console.log(result); -} - -async function main(): Promise { - listClusterUserCredentialAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListKeysSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListKeysSample.ts deleted file mode 100644 index 7c2ff3ddb3c9..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListKeysSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Returns the cluster customer credentials for the dedicated appliance. - * - * @summary Returns the cluster customer credentials for the dedicated appliance. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListKeys.json - */ -async function listKeysAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || - "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = - process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient( - credential, - subscriptionId - ); - const result = await client.appliances.listKeys( - resourceGroupName, - resourceName - ); - console.log(result); -} - -async function main(): Promise { - listKeysAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListOperationsSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListOperationsSample.ts deleted file mode 100644 index 66dc0b51af04..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesListOperationsSample.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Lists all available Appliances operations. - * - * @summary Lists all available Appliances operations. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListOperations.json - */ -async function listAppliancesOperations(): Promise { - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient(credential); - const resArray = new Array(); - for await (let item of client.appliances.listOperations()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main(): Promise { - listAppliancesOperations(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesUpdateSample.ts b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesUpdateSample.ts deleted file mode 100644 index 295d43bc5ed1..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/src/appliancesUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AppliancesUpdateOptionalParams, - ResourceConnectorManagementClient -} from "@azure/arm-resourceconnector"; -import { DefaultAzureCredential } from "@azure/identity"; -import "dotenv/config"; - -/** - * This sample demonstrates how to Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription. - * - * @summary Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription. - * x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesPatch.json - */ -async function updateAppliance(): Promise { - const subscriptionId = - process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || - "11111111-2222-3333-4444-555555555555"; - const resourceGroupName = - process.env["RESOURCECONNECTOR_RESOURCE_GROUP"] || "testresourcegroup"; - const resourceName = "appliance01"; - const tags = { key: "value" }; - const options: AppliancesUpdateOptionalParams = { tags }; - const credential = new DefaultAzureCredential(); - const client = new ResourceConnectorManagementClient( - credential, - subscriptionId - ); - const result = await client.appliances.update( - resourceGroupName, - resourceName, - options - ); - console.log(result); -} - -async function main(): Promise { - updateAppliance(); -} - -main().catch(console.error); diff --git a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/tsconfig.json b/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/tsconfig.json deleted file mode 100644 index 984eed535aa8..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/samples/v1/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts" - ] -} diff --git a/sdk/resourceconnector/arm-resourceconnector/src/lroImpl.ts b/sdk/resourceconnector/arm-resourceconnector/src/lroImpl.ts index a1dab276a1b7..5f88efab981b 100644 --- a/sdk/resourceconnector/arm-resourceconnector/src/lroImpl.ts +++ b/sdk/resourceconnector/arm-resourceconnector/src/lroImpl.ts @@ -5,6 +5,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; @@ -24,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/resourceconnector/arm-resourceconnector/src/models/index.ts b/sdk/resourceconnector/arm-resourceconnector/src/models/index.ts index 2e89be634b67..d30746f98f3a 100644 --- a/sdk/resourceconnector/arm-resourceconnector/src/models/index.ts +++ b/sdk/resourceconnector/arm-resourceconnector/src/models/index.ts @@ -437,7 +437,7 @@ export enum KnownResourceIdentityType { /** SystemAssigned */ SystemAssigned = "SystemAssigned", /** None */ - None = "None" + None = "None", } /** @@ -453,7 +453,7 @@ export type ResourceIdentityType = string; /** Known values of {@link Distro} that the service accepts. */ export enum KnownDistro { /** AKSEdge */ - AKSEdge = "AKSEdge" + AKSEdge = "AKSEdge", } /** @@ -473,10 +473,6 @@ export enum KnownProvider { HCI = "HCI", /** Scvmm */ Scvmm = "SCVMM", - /** KubeVirt */ - KubeVirt = "KubeVirt", - /** OpenStack */ - OpenStack = "OpenStack" } /** @@ -486,9 +482,7 @@ export enum KnownProvider { * ### Known values supported by the service * **VMWare** \ * **HCI** \ - * **SCVMM** \ - * **KubeVirt** \ - * **OpenStack** + * **SCVMM** */ export type Provider = string; @@ -506,8 +500,18 @@ export enum KnownStatus { Running = "Running", /** PreparingForUpgrade */ PreparingForUpgrade = "PreparingForUpgrade", + /** EtcdSnapshotFailed */ + EtcdSnapshotFailed = "ETCDSnapshotFailed", /** UpgradePrerequisitesCompleted */ UpgradePrerequisitesCompleted = "UpgradePrerequisitesCompleted", + /** ValidatingSFSConnectivity */ + ValidatingSFSConnectivity = "ValidatingSFSConnectivity", + /** ValidatingImageDownload */ + ValidatingImageDownload = "ValidatingImageDownload", + /** ValidatingImageUpload */ + ValidatingImageUpload = "ValidatingImageUpload", + /** ValidatingEtcdHealth */ + ValidatingEtcdHealth = "ValidatingETCDHealth", /** PreUpgrade */ PreUpgrade = "PreUpgrade", /** UpgradingKvaio */ @@ -547,7 +551,7 @@ export enum KnownStatus { /** Offline */ Offline = "Offline", /** None */ - None = "None" + None = "None", } /** @@ -561,7 +565,12 @@ export enum KnownStatus { * **Connected** \ * **Running** \ * **PreparingForUpgrade** \ + * **ETCDSnapshotFailed** \ * **UpgradePrerequisitesCompleted** \ + * **ValidatingSFSConnectivity** \ + * **ValidatingImageDownload** \ + * **ValidatingImageUpload** \ + * **ValidatingETCDHealth** \ * **PreUpgrade** \ * **UpgradingKVAIO** \ * **WaitingForKVAIO** \ @@ -594,7 +603,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -614,7 +623,7 @@ export enum KnownAccessProfileType { /** ClusterUser */ ClusterUser = "clusterUser", /** ClusterCustomerUser */ - ClusterCustomerUser = "clusterCustomerUser" + ClusterCustomerUser = "clusterCustomerUser", } /** @@ -630,7 +639,7 @@ export type AccessProfileType = string; /** Known values of {@link ArtifactType} that the service accepts. */ export enum KnownArtifactType { /** LogsArtifactType */ - LogsArtifactType = "LogsArtifactType" + LogsArtifactType = "LogsArtifactType", } /** @@ -651,7 +660,7 @@ export enum KnownSSHKeyType { /** LogsKey */ LogsKey = "LogsKey", /** ScopedAccessKey */ - ScopedAccessKey = "ScopedAccessKey" + ScopedAccessKey = "ScopedAccessKey", } /** @@ -685,7 +694,8 @@ export interface AppliancesGetTelemetryConfigOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getTelemetryConfig operation. */ -export type AppliancesGetTelemetryConfigResponse = ApplianceGetTelemetryConfigResult; +export type AppliancesGetTelemetryConfigResponse = + ApplianceGetTelemetryConfigResult; /** Optional parameters. */ export interface AppliancesListByResourceGroupOptionalParams @@ -737,11 +747,15 @@ export interface AppliancesListClusterUserCredentialOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listClusterUserCredential operation. */ -export type AppliancesListClusterUserCredentialResponse = ApplianceListCredentialResults; +export type AppliancesListClusterUserCredentialResponse = + ApplianceListCredentialResults; /** Optional parameters. */ export interface AppliancesListKeysOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** This sets the type of artifact being returned, when empty no artifact endpoint is returned. */ + artifactType?: string; +} /** Contains response data for the listKeys operation. */ export type AppliancesListKeysResponse = ApplianceListKeysResults; diff --git a/sdk/resourceconnector/arm-resourceconnector/src/models/mappers.ts b/sdk/resourceconnector/arm-resourceconnector/src/models/mappers.ts index 070c703e3ae0..cba5dcaaf14d 100644 --- a/sdk/resourceconnector/arm-resourceconnector/src/models/mappers.ts +++ b/sdk/resourceconnector/arm-resourceconnector/src/models/mappers.ts @@ -16,8 +16,8 @@ export const ApplianceOperationsList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -27,13 +27,13 @@ export const ApplianceOperationsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplianceOperation" - } - } - } - } - } - } + className: "ApplianceOperation", + }, + }, + }, + }, + }, + }, }; export const ApplianceOperation: coreClient.CompositeMapper = { @@ -45,53 +45,53 @@ export const ApplianceOperation: coreClient.CompositeMapper = { serializedName: "isDataAction", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, origin: { serializedName: "origin", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "display.description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "display.operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provider: { serializedName: "display.provider", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "display.resource", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -103,11 +103,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -119,22 +119,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -144,10 +144,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -157,13 +157,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -175,19 +175,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const ApplianceListResult: coreClient.CompositeMapper = { @@ -199,8 +199,8 @@ export const ApplianceListResult: coreClient.CompositeMapper = { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -210,13 +210,13 @@ export const ApplianceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Appliance" - } - } - } - } - } - } + className: "Appliance", + }, + }, + }, + }, + }, + }, }; export const Identity: coreClient.CompositeMapper = { @@ -228,40 +228,41 @@ export const Identity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AppliancePropertiesInfrastructureConfig: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AppliancePropertiesInfrastructureConfig", - modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - } - } - } -}; +export const AppliancePropertiesInfrastructureConfig: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AppliancePropertiesInfrastructureConfig", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String", + }, + }, + }, + }, + }; export const Resource: coreClient.CompositeMapper = { type: { @@ -272,32 +273,32 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -308,41 +309,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const ApplianceGetTelemetryConfigResult: coreClient.CompositeMapper = { @@ -354,11 +355,11 @@ export const ApplianceGetTelemetryConfigResult: coreClient.CompositeMapper = { serializedName: "telemetryInstrumentationKey", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PatchableAppliance: coreClient.CompositeMapper = { @@ -370,11 +371,11 @@ export const PatchableAppliance: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ApplianceListCredentialResults: coreClient.CompositeMapper = { @@ -386,8 +387,8 @@ export const ApplianceListCredentialResults: coreClient.CompositeMapper = { serializedName: "hybridConnectionConfig", type: { name: "Composite", - className: "HybridConnectionConfig" - } + className: "HybridConnectionConfig", + }, }, kubeconfigs: { serializedName: "kubeconfigs", @@ -397,13 +398,13 @@ export const ApplianceListCredentialResults: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplianceCredentialKubeconfig" - } - } - } - } - } - } + className: "ApplianceCredentialKubeconfig", + }, + }, + }, + }, + }, + }, }; export const HybridConnectionConfig: coreClient.CompositeMapper = { @@ -415,32 +416,32 @@ export const HybridConnectionConfig: coreClient.CompositeMapper = { serializedName: "expirationTime", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, hybridConnectionName: { serializedName: "hybridConnectionName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, relay: { serializedName: "relay", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, token: { serializedName: "token", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApplianceCredentialKubeconfig: coreClient.CompositeMapper = { @@ -452,18 +453,18 @@ export const ApplianceCredentialKubeconfig: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApplianceListKeysResults: coreClient.CompositeMapper = { @@ -476,8 +477,8 @@ export const ApplianceListKeysResults: coreClient.CompositeMapper = { readOnly: true, type: { name: "Dictionary", - value: { type: { name: "Composite", className: "ArtifactProfile" } } - } + value: { type: { name: "Composite", className: "ArtifactProfile" } }, + }, }, kubeconfigs: { serializedName: "kubeconfigs", @@ -487,21 +488,21 @@ export const ApplianceListKeysResults: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplianceCredentialKubeconfig" - } - } - } + className: "ApplianceCredentialKubeconfig", + }, + }, + }, }, sshKeys: { serializedName: "sshKeys", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "Composite", className: "SSHKey" } } - } - } - } - } + value: { type: { name: "Composite", className: "SSHKey" } }, + }, + }, + }, + }, }; export const ArtifactProfile: coreClient.CompositeMapper = { @@ -513,11 +514,11 @@ export const ArtifactProfile: coreClient.CompositeMapper = { serializedName: "endpoint", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SSHKey: coreClient.CompositeMapper = { @@ -529,39 +530,39 @@ export const SSHKey: coreClient.CompositeMapper = { serializedName: "certificate", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationTimeStamp: { serializedName: "creationTimeStamp", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, expirationTimeStamp: { serializedName: "expirationTimeStamp", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, privateKey: { serializedName: "privateKey", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, publicKey: { serializedName: "publicKey", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpgradeGraph: coreClient.CompositeMapper = { @@ -573,25 +574,25 @@ export const UpgradeGraph: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "UpgradeGraphProperties" - } - } - } - } + className: "UpgradeGraphProperties", + }, + }, + }, + }, }; export const UpgradeGraphProperties: coreClient.CompositeMapper = { @@ -603,8 +604,8 @@ export const UpgradeGraphProperties: coreClient.CompositeMapper = { serializedName: "applianceVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, supportedVersions: { serializedName: "supportedVersions", @@ -614,13 +615,13 @@ export const UpgradeGraphProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedVersion" - } - } - } - } - } - } + className: "SupportedVersion", + }, + }, + }, + }, + }, + }, }; export const SupportedVersion: coreClient.CompositeMapper = { @@ -632,18 +633,18 @@ export const SupportedVersion: coreClient.CompositeMapper = { serializedName: "metadata", type: { name: "Composite", - className: "SupportedVersionMetadata" - } + className: "SupportedVersionMetadata", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedVersionMetadata: coreClient.CompositeMapper = { @@ -655,11 +656,11 @@ export const SupportedVersionMetadata: coreClient.CompositeMapper = { serializedName: "catalogVersion", type: { name: "Composite", - className: "SupportedVersionCatalogVersion" - } - } - } - } + className: "SupportedVersionCatalogVersion", + }, + }, + }, + }, }; export const SupportedVersionCatalogVersion: coreClient.CompositeMapper = { @@ -671,25 +672,25 @@ export const SupportedVersionCatalogVersion: coreClient.CompositeMapper = { serializedName: "data", type: { name: "Composite", - className: "SupportedVersionCatalogVersionData" - } + className: "SupportedVersionCatalogVersionData", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, namespace: { serializedName: "namespace", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedVersionCatalogVersionData: coreClient.CompositeMapper = { @@ -701,32 +702,32 @@ export const SupportedVersionCatalogVersionData: coreClient.CompositeMapper = { serializedName: "audience", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, catalog: { serializedName: "catalog", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -739,18 +740,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Appliance: coreClient.CompositeMapper = { @@ -763,49 +764,49 @@ export const Appliance: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "Identity" - } + className: "Identity", + }, }, distro: { defaultValue: "AKSEdge", serializedName: "properties.distro", type: { - name: "String" - } + name: "String", + }, }, infrastructureConfig: { serializedName: "properties.infrastructureConfig", type: { name: "Composite", - className: "AppliancePropertiesInfrastructureConfig" - } + className: "AppliancePropertiesInfrastructureConfig", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, publicKey: { serializedName: "properties.publicKey", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "properties.version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/resourceconnector/arm-resourceconnector/src/models/parameters.ts b/sdk/resourceconnector/arm-resourceconnector/src/models/parameters.ts index 70a9f4d6764c..920b37fe34ce 100644 --- a/sdk/resourceconnector/arm-resourceconnector/src/models/parameters.ts +++ b/sdk/resourceconnector/arm-resourceconnector/src/models/parameters.ts @@ -9,11 +9,11 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { Appliance as ApplianceMapper, - PatchableAppliance as PatchableApplianceMapper + PatchableAppliance as PatchableApplianceMapper, } from "../models/mappers.js"; export const accept: OperationParameter = { @@ -23,9 +23,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -34,10 +34,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { @@ -47,23 +47,23 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -71,14 +71,14 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceName: OperationURLParameter = { @@ -86,17 +86,17 @@ export const resourceName: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp( - "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$" + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", ), MaxLength: 63, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -106,19 +106,29 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: ApplianceMapper + mapper: ApplianceMapper, }; export const tags: OperationParameter = { parameterPath: ["options", "tags"], - mapper: PatchableApplianceMapper + mapper: PatchableApplianceMapper, +}; + +export const artifactType: OperationQueryParameter = { + parameterPath: ["options", "artifactType"], + mapper: { + serializedName: "artifactType", + type: { + name: "String", + }, + }, }; export const upgradeGraph: OperationURLParameter = { @@ -127,9 +137,9 @@ export const upgradeGraph: OperationURLParameter = { serializedName: "upgradeGraph", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -138,8 +148,8 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; diff --git a/sdk/resourceconnector/arm-resourceconnector/src/operations/appliances.ts b/sdk/resourceconnector/arm-resourceconnector/src/operations/appliances.ts index f1d6c1a852b1..664276aeadbf 100644 --- a/sdk/resourceconnector/arm-resourceconnector/src/operations/appliances.ts +++ b/sdk/resourceconnector/arm-resourceconnector/src/operations/appliances.ts @@ -16,7 +16,7 @@ import { ResourceConnectorManagementClient } from "../resourceConnectorManagemen import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { @@ -48,7 +48,7 @@ import { AppliancesGetUpgradeGraphResponse, AppliancesListOperationsNextResponse, AppliancesListBySubscriptionNextResponse, - AppliancesListByResourceGroupNextResponse + AppliancesListByResourceGroupNextResponse, } from "../models/index.js"; /// @@ -69,7 +69,7 @@ export class AppliancesImpl implements Appliances { * @param options The options parameters. */ public listOperations( - options?: AppliancesListOperationsOptionalParams + options?: AppliancesListOperationsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOperationsPagingAll(options); return { @@ -84,13 +84,13 @@ export class AppliancesImpl implements Appliances { throw new Error("maxPageSize is not supported by this operation."); } return this.listOperationsPagingPage(options, settings); - } + }, }; } private async *listOperationsPagingPage( options?: AppliancesListOperationsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AppliancesListOperationsResponse; let continuationToken = settings?.continuationToken; @@ -111,7 +111,7 @@ export class AppliancesImpl implements Appliances { } private async *listOperationsPagingAll( - options?: AppliancesListOperationsOptionalParams + options?: AppliancesListOperationsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOperationsPagingPage(options)) { yield* page; @@ -124,7 +124,7 @@ export class AppliancesImpl implements Appliances { * @param options The options parameters. */ public listBySubscription( - options?: AppliancesListBySubscriptionOptionalParams + options?: AppliancesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -139,13 +139,13 @@ export class AppliancesImpl implements Appliances { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: AppliancesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AppliancesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -166,7 +166,7 @@ export class AppliancesImpl implements Appliances { } private async *listBySubscriptionPagingAll( - options?: AppliancesListBySubscriptionOptionalParams + options?: AppliancesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -181,7 +181,7 @@ export class AppliancesImpl implements Appliances { */ public listByResourceGroup( resourceGroupName: string, - options?: AppliancesListByResourceGroupOptionalParams + options?: AppliancesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -198,16 +198,16 @@ export class AppliancesImpl implements Appliances { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: AppliancesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AppliancesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -222,7 +222,7 @@ export class AppliancesImpl implements Appliances { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -233,11 +233,11 @@ export class AppliancesImpl implements Appliances { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: AppliancesListByResourceGroupOptionalParams + options?: AppliancesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -248,11 +248,11 @@ export class AppliancesImpl implements Appliances { * @param options The options parameters. */ private _listOperations( - options?: AppliancesListOperationsOptionalParams + options?: AppliancesListOperationsOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listOperationsOperationSpec + listOperationsOperationSpec, ); } @@ -262,11 +262,11 @@ export class AppliancesImpl implements Appliances { * @param options The options parameters. */ private _listBySubscription( - options?: AppliancesListBySubscriptionOptionalParams + options?: AppliancesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -275,11 +275,11 @@ export class AppliancesImpl implements Appliances { * @param options The options parameters. */ getTelemetryConfig( - options?: AppliancesGetTelemetryConfigOptionalParams + options?: AppliancesGetTelemetryConfigOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - getTelemetryConfigOperationSpec + getTelemetryConfigOperationSpec, ); } @@ -291,11 +291,11 @@ export class AppliancesImpl implements Appliances { */ private _listByResourceGroup( resourceGroupName: string, - options?: AppliancesListByResourceGroupOptionalParams + options?: AppliancesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -308,11 +308,11 @@ export class AppliancesImpl implements Appliances { get( resourceGroupName: string, resourceName: string, - options?: AppliancesGetOptionalParams + options?: AppliancesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -327,7 +327,7 @@ export class AppliancesImpl implements Appliances { resourceGroupName: string, resourceName: string, parameters: Appliance, - options?: AppliancesCreateOrUpdateOptionalParams + options?: AppliancesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -336,21 +336,20 @@ export class AppliancesImpl implements Appliances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -359,8 +358,8 @@ export class AppliancesImpl implements Appliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -368,15 +367,15 @@ export class AppliancesImpl implements Appliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< AppliancesCreateOrUpdateResponse, @@ -384,7 +383,7 @@ export class AppliancesImpl implements Appliances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -401,13 +400,13 @@ export class AppliancesImpl implements Appliances { resourceGroupName: string, resourceName: string, parameters: Appliance, - options?: AppliancesCreateOrUpdateOptionalParams + options?: AppliancesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, resourceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -421,25 +420,24 @@ export class AppliancesImpl implements Appliances { async beginDelete( resourceGroupName: string, resourceName: string, - options?: AppliancesDeleteOptionalParams + options?: AppliancesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -448,8 +446,8 @@ export class AppliancesImpl implements Appliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -457,20 +455,20 @@ export class AppliancesImpl implements Appliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -485,12 +483,12 @@ export class AppliancesImpl implements Appliances { async beginDeleteAndWait( resourceGroupName: string, resourceName: string, - options?: AppliancesDeleteOptionalParams + options?: AppliancesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -505,11 +503,11 @@ export class AppliancesImpl implements Appliances { update( resourceGroupName: string, resourceName: string, - options?: AppliancesUpdateOptionalParams + options?: AppliancesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -522,11 +520,11 @@ export class AppliancesImpl implements Appliances { listClusterUserCredential( resourceGroupName: string, resourceName: string, - options?: AppliancesListClusterUserCredentialOptionalParams + options?: AppliancesListClusterUserCredentialOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listClusterUserCredentialOperationSpec + listClusterUserCredentialOperationSpec, ); } @@ -539,11 +537,11 @@ export class AppliancesImpl implements Appliances { listKeys( resourceGroupName: string, resourceName: string, - options?: AppliancesListKeysOptionalParams + options?: AppliancesListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listKeysOperationSpec + listKeysOperationSpec, ); } @@ -559,11 +557,11 @@ export class AppliancesImpl implements Appliances { resourceGroupName: string, resourceName: string, upgradeGraph: string, - options?: AppliancesGetUpgradeGraphOptionalParams + options?: AppliancesGetUpgradeGraphOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, upgradeGraph, options }, - getUpgradeGraphOperationSpec + getUpgradeGraphOperationSpec, ); } @@ -574,11 +572,11 @@ export class AppliancesImpl implements Appliances { */ private _listOperationsNext( nextLink: string, - options?: AppliancesListOperationsNextOptionalParams + options?: AppliancesListOperationsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listOperationsNextOperationSpec + listOperationsNextOperationSpec, ); } @@ -589,11 +587,11 @@ export class AppliancesImpl implements Appliances { */ private _listBySubscriptionNext( nextLink: string, - options?: AppliancesListBySubscriptionNextOptionalParams + options?: AppliancesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -606,11 +604,11 @@ export class AppliancesImpl implements Appliances { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: AppliancesListByResourceGroupNextOptionalParams + options?: AppliancesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -622,114 +620,109 @@ const listOperationsOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplianceOperationsList + bodyMapper: Mappers.ApplianceOperationsList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/appliances", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/appliances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplianceListResult + bodyMapper: Mappers.ApplianceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getTelemetryConfigOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/telemetryconfig", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/telemetryconfig", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplianceGetTelemetryConfigResult + bodyMapper: Mappers.ApplianceGetTelemetryConfigResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplianceListResult + bodyMapper: Mappers.ApplianceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Appliance + bodyMapper: Mappers.Appliance, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Appliance + bodyMapper: Mappers.Appliance, }, 201: { - bodyMapper: Mappers.Appliance + bodyMapper: Mappers.Appliance, }, 202: { - bodyMapper: Mappers.Appliance + bodyMapper: Mappers.Appliance, }, 204: { - bodyMapper: Mappers.Appliance + bodyMapper: Mappers.Appliance, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -737,15 +730,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -753,101 +745,97 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Appliance + bodyMapper: Mappers.Appliance, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: { parameterPath: { tags: ["options", "tags"] }, - mapper: { ...Mappers.PatchableAppliance, required: true } + mapper: { ...Mappers.PatchableAppliance, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listClusterUserCredentialOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApplianceListCredentialResults + bodyMapper: Mappers.ApplianceListCredentialResults, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listkeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listkeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApplianceListKeysResults + bodyMapper: Mappers.ApplianceListKeysResults, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.artifactType], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getUpgradeGraphOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/upgradeGraphs/{upgradeGraph}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/upgradeGraphs/{upgradeGraph}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UpgradeGraph + bodyMapper: Mappers.UpgradeGraph, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -855,62 +843,62 @@ const getUpgradeGraphOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.upgradeGraph + Parameters.upgradeGraph, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplianceOperationsList + bodyMapper: Mappers.ApplianceOperationsList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplianceListResult + bodyMapper: Mappers.ApplianceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplianceListResult + bodyMapper: Mappers.ApplianceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourceconnector/arm-resourceconnector/src/operationsInterfaces/appliances.ts b/sdk/resourceconnector/arm-resourceconnector/src/operationsInterfaces/appliances.ts index 88a9784a8328..b88ec3b32481 100644 --- a/sdk/resourceconnector/arm-resourceconnector/src/operationsInterfaces/appliances.ts +++ b/sdk/resourceconnector/arm-resourceconnector/src/operationsInterfaces/appliances.ts @@ -28,7 +28,7 @@ import { AppliancesListKeysOptionalParams, AppliancesListKeysResponse, AppliancesGetUpgradeGraphOptionalParams, - AppliancesGetUpgradeGraphResponse + AppliancesGetUpgradeGraphResponse, } from "../models/index.js"; /// @@ -39,7 +39,7 @@ export interface Appliances { * @param options The options parameters. */ listOperations( - options?: AppliancesListOperationsOptionalParams + options?: AppliancesListOperationsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of Appliances in the specified subscription. The operation returns properties of each @@ -47,7 +47,7 @@ export interface Appliances { * @param options The options parameters. */ listBySubscription( - options?: AppliancesListBySubscriptionOptionalParams + options?: AppliancesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of Appliances in the specified subscription and resource group. The operation returns @@ -57,14 +57,14 @@ export interface Appliances { */ listByResourceGroup( resourceGroupName: string, - options?: AppliancesListByResourceGroupOptionalParams + options?: AppliancesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the telemetry config. * @param options The options parameters. */ getTelemetryConfig( - options?: AppliancesGetTelemetryConfigOptionalParams + options?: AppliancesGetTelemetryConfigOptionalParams, ): Promise; /** * Gets the details of an Appliance with a specified resource group and name. @@ -75,7 +75,7 @@ export interface Appliances { get( resourceGroupName: string, resourceName: string, - options?: AppliancesGetOptionalParams + options?: AppliancesGetOptionalParams, ): Promise; /** * Creates or updates an Appliance in the specified Subscription and Resource Group. @@ -88,7 +88,7 @@ export interface Appliances { resourceGroupName: string, resourceName: string, parameters: Appliance, - options?: AppliancesCreateOrUpdateOptionalParams + options?: AppliancesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -106,7 +106,7 @@ export interface Appliances { resourceGroupName: string, resourceName: string, parameters: Appliance, - options?: AppliancesCreateOrUpdateOptionalParams + options?: AppliancesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. @@ -117,7 +117,7 @@ export interface Appliances { beginDelete( resourceGroupName: string, resourceName: string, - options?: AppliancesDeleteOptionalParams + options?: AppliancesDeleteOptionalParams, ): Promise, void>>; /** * Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. @@ -128,7 +128,7 @@ export interface Appliances { beginDeleteAndWait( resourceGroupName: string, resourceName: string, - options?: AppliancesDeleteOptionalParams + options?: AppliancesDeleteOptionalParams, ): Promise; /** * Updates an Appliance with the specified Resource Name in the specified Resource Group and @@ -140,7 +140,7 @@ export interface Appliances { update( resourceGroupName: string, resourceName: string, - options?: AppliancesUpdateOptionalParams + options?: AppliancesUpdateOptionalParams, ): Promise; /** * Returns the cluster user credentials for the dedicated appliance. @@ -151,7 +151,7 @@ export interface Appliances { listClusterUserCredential( resourceGroupName: string, resourceName: string, - options?: AppliancesListClusterUserCredentialOptionalParams + options?: AppliancesListClusterUserCredentialOptionalParams, ): Promise; /** * Returns the cluster customer credentials for the dedicated appliance. @@ -162,7 +162,7 @@ export interface Appliances { listKeys( resourceGroupName: string, resourceName: string, - options?: AppliancesListKeysOptionalParams + options?: AppliancesListKeysOptionalParams, ): Promise; /** * Gets the upgrade graph of an Appliance with a specified resource group and name and specific release @@ -176,6 +176,6 @@ export interface Appliances { resourceGroupName: string, resourceName: string, upgradeGraph: string, - options?: AppliancesGetUpgradeGraphOptionalParams + options?: AppliancesGetUpgradeGraphOptionalParams, ): Promise; } diff --git a/sdk/resourceconnector/arm-resourceconnector/src/pagingHelper.ts b/sdk/resourceconnector/arm-resourceconnector/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/resourceconnector/arm-resourceconnector/src/pagingHelper.ts +++ b/sdk/resourceconnector/arm-resourceconnector/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/resourceconnector/arm-resourceconnector/src/resourceConnectorManagementClient.ts b/sdk/resourceconnector/arm-resourceconnector/src/resourceConnectorManagementClient.ts index 5dd29100fec9..1a8ee59bbc25 100644 --- a/sdk/resourceconnector/arm-resourceconnector/src/resourceConnectorManagementClient.ts +++ b/sdk/resourceconnector/arm-resourceconnector/src/resourceConnectorManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { AppliancesImpl } from "./operations/index.js"; @@ -32,18 +32,18 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ResourceConnectorManagementClientOptionalParams + options?: ResourceConnectorManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: ResourceConnectorManagementClientOptionalParams + options?: ResourceConnectorManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: | ResourceConnectorManagementClientOptionalParams | string, - options?: ResourceConnectorManagementClientOptionalParams + options?: ResourceConnectorManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -63,10 +63,10 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient } const defaults: ResourceConnectorManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0`; + const packageDetails = `azsdk-js-arm-resourceconnector/2.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -76,20 +76,21 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -99,7 +100,7 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -109,9 +110,9 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -133,7 +134,7 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -147,7 +148,7 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/resourceconnector/arm-resourceconnector/test/resourceconnnector__operations_test.spec.ts b/sdk/resourceconnector/arm-resourceconnector/test/resourceconnnector__operations_test.spec.ts deleted file mode 100644 index b009f848dab3..000000000000 --- a/sdk/resourceconnector/arm-resourceconnector/test/resourceconnnector__operations_test.spec.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { env, Recorder, RecorderStartOptions, isPlaybackMode } from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { ResourceConnectorManagementClient } from "../src/resourceConnectorManagementClient.js"; -import { describe, it, assert, beforeEach, afterEach } from "vitest"; - -const replaceableVariables: Record = { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id", -}; - -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("ResourceConnector test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: ResourceConnectorManagementClient; - let location: string; - let resourceGroup: string; - let resourcename: string; - - beforeEach(async (ctx) => { - recorder = new Recorder(ctx); - await recorder.start(recorderOptions); - subscriptionId = env.SUBSCRIPTION_ID || ""; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new ResourceConnectorManagementClient( - credential, - subscriptionId, - recorder.configureClientOptions({}), - ); - location = "eastus"; - resourceGroup = "czwjstest"; - resourcename = "resourcetest"; - }); - - afterEach(async () => { - await recorder.stop(); - }); - - it("appliances create test", async () => { - const res = await client.appliances.beginCreateOrUpdateAndWait( - resourceGroup, - resourcename, - { - identity: { type: "SystemAssigned" }, - distro: "AKSEdge", - infrastructureConfig: { provider: "VMWare" }, - location, - }, - testPollingOptions, - ); - assert.equal(res.name, resourcename); - }); - - it("appliances get test", async () => { - const res = await client.appliances.get(resourceGroup, resourcename); - assert.equal(res.name, resourcename); - }); - - it("appliances list test", async () => { - const resArray = new Array(); - for await (let item of client.appliances.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 1); - }); - - it("appliances delete test", async () => { - const resArray = new Array(); - await client.appliances.beginDeleteAndWait(resourceGroup, resourcename, testPollingOptions); - for await (let item of client.appliances.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 0); - }); -}); diff --git a/sdk/resourceconnector/arm-resourceconnector/test/sampleTest.ts b/sdk/resourceconnector/arm-resourceconnector/test/sampleTest.ts new file mode 100644 index 000000000000..a1cf7c25afd2 --- /dev/null +++ b/sdk/resourceconnector/arm-resourceconnector/test/sampleTest.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, +} from "@azure-tools/test-recorder"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async (ctx) => { + recorder = new Recorder(ctx); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/resourceconnector/arm-resourceconnector/test/snippets.spec.ts b/sdk/resourceconnector/arm-resourceconnector/test/snippets.spec.ts index 2b816032497c..3727220c0326 100644 --- a/sdk/resourceconnector/arm-resourceconnector/test/snippets.spec.ts +++ b/sdk/resourceconnector/arm-resourceconnector/test/snippets.spec.ts @@ -1,8 +1,16 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ import { ResourceConnectorManagementClient } from "../src/index.js"; -import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity"; +import { + DefaultAzureCredential, + InteractiveBrowserCredential, +} from "@azure/identity"; import { setLogLevel } from "@azure/logger"; import { describe, it } from "vitest"; @@ -21,7 +29,10 @@ describe("snippets", () => { tenantId: "", clientId: "", }); - const client = new ResourceConnectorManagementClient(credential, subscriptionId); + const client = new ResourceConnectorManagementClient( + credential, + subscriptionId, + ); }); it("SetLogLevel", async () => { diff --git a/sdk/resourceconnector/arm-resourceconnector/tsconfig.json b/sdk/resourceconnector/arm-resourceconnector/tsconfig.json index 19ceb382b521..59ea83c046bf 100644 --- a/sdk/resourceconnector/arm-resourceconnector/tsconfig.json +++ b/sdk/resourceconnector/arm-resourceconnector/tsconfig.json @@ -3,11 +3,8 @@ { "path": "./tsconfig.src.json" }, - { - "path": "./tsconfig.samples.json" - }, { "path": "./tsconfig.test.json" } ] -} +} \ No newline at end of file