diff --git a/.prettierignore b/.prettierignore index 951512e228..b2b6a91cfc 100644 --- a/.prettierignore +++ b/.prettierignore @@ -341,3 +341,6 @@ packages/extensions/core/test/plugins/*/expected/*.json # Generated typespec and examples packages/extensions/openapi-to-typespec/test/**/*.tsp packages/extensions/openapi-to-typespec/test/**/*.json + +# TypeSpec assets +packages/extensions/openapi-to-typespec/src/assets/**/*.tsp \ No newline at end of file diff --git a/common/changes/@autorest/openapi-to-typespec/multiPath_2025-01-17-05-35.json b/common/changes/@autorest/openapi-to-typespec/multiPath_2025-01-17-05-35.json new file mode 100644 index 0000000000..19d9c168e6 --- /dev/null +++ b/common/changes/@autorest/openapi-to-typespec/multiPath_2025-01-17-05-35.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@autorest/openapi-to-typespec", + "comment": "add multi path support", + "type": "patch" + } + ], + "packageName": "@autorest/openapi-to-typespec" +} \ No newline at end of file diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index dfedec8db1..83be8ae9c8 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -221,6 +221,9 @@ dependencies: copy-webpack-plugin: specifier: ^11.0.0 version: 11.0.0(webpack@5.89.0) + copyfiles: + specifier: 2.4.1 + version: 2.4.1 cpy-cli: specifier: ~5.0.0 version: 5.0.0 @@ -2355,6 +2358,13 @@ packages: type-fest: 0.21.3 dev: false + /ansi-green@0.1.1: + resolution: {integrity: sha512-WJ70OI4jCaMy52vGa/ypFSKFb/TrYNPaQ2xco5nUwE0C5H8piume/uAZNNdXXiMQ6DbRmiE7l8oNBHu05ZKkrw==} + engines: {node: '>=0.10.0'} + dependencies: + ansi-wrap: 0.1.0 + dev: false + /ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} @@ -2389,6 +2399,11 @@ packages: engines: {node: '>=12'} dev: false + /ansi-wrap@0.1.0: + resolution: {integrity: sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==} + engines: {node: '>=0.10.0'} + dev: false + /anymatch@2.0.0: resolution: {integrity: sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==} dependencies: @@ -2519,6 +2534,15 @@ packages: engines: {node: '>=0.10.0'} dev: false + /async-array-reduce@0.2.1: + resolution: {integrity: sha512-/ywTADOcaEnwiAnOEi0UB/rAcIq5bTFfCV9euv3jLYFUMmy6KvKccTQUnLlp8Ensmfj43wHSmbGiPqjsZ6RhNA==} + engines: {node: '>=0.10.0'} + dev: false + + /async-each@1.0.6: + resolution: {integrity: sha512-c646jH1avxr+aVpndVMeAfYw7wAa6idufrlN3LPA4PmKS0QEGp6PIC9nwz0WQkkvBGAMEki3pFdtxaF39J9vvg==} + dev: false + /async@3.2.5: resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} dev: false @@ -3003,6 +3027,15 @@ packages: shallow-clone: 3.0.1 dev: false + /clone-stats@0.0.1: + resolution: {integrity: sha512-dhUqc57gSMCo6TX85FLfe51eC/s+Im2MLkAgJwfaRRexR2tA4dd3eLEW4L6efzHc2iNorrRRXITifnDLlRrhaA==} + dev: false + + /clone@1.0.4: + resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} + engines: {node: '>=0.8'} + dev: false + /co@4.6.0: resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} @@ -3170,6 +3203,40 @@ packages: webpack: 5.89.0(webpack-cli@5.1.4) dev: false + /copy@0.3.2: + resolution: {integrity: sha512-drDFuUZctIuvSuvL9dOF/v5GxrwB1Q8eMIRlYONC0lSMEq+L2xabXP3jme8cQFdDO8cgP8JsuYhQg7JtTwezmg==} + engines: {node: '>=0.10.0'} + hasBin: true + dependencies: + async-each: 1.0.6 + bluebird: 3.7.2 + extend-shallow: 2.0.1 + file-contents: 0.3.2 + glob-parent: 2.0.0 + graceful-fs: 4.2.11 + has-glob: 0.1.1 + is-absolute: 0.2.6 + lazy-cache: 2.0.2 + log-ok: 0.1.1 + matched: 0.4.4 + mkdirp: 0.5.6 + resolve-dir: 0.1.1 + to-file: 0.2.0 + dev: false + + /copyfiles@2.4.1: + resolution: {integrity: sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==} + hasBin: true + dependencies: + glob: 7.1.7 + minimatch: 3.1.2 + mkdirp: 1.0.4 + noms: 0.0.0 + through2: 2.0.5 + untildify: 4.0.0 + yargs: 16.2.0 + dev: false + /core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} dev: false @@ -3982,6 +4049,13 @@ packages: engines: {node: '>=6'} dev: false + /expand-tilde@1.2.2: + resolution: {integrity: sha512-rtmc+cjLZqnu9dSYosX9EWmSJhTwpACgJQTfj4hgg2JjOD/6SIQalZrt4a3aQeh++oNxkazcaxrhPUj6+g5G/Q==} + engines: {node: '>=0.10.0'} + dependencies: + os-homedir: 1.0.2 + dev: false + /expect@26.6.2: resolution: {integrity: sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==} engines: {node: '>= 10.14.2'} @@ -4102,6 +4176,37 @@ packages: resolution: {integrity: sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==} dev: false + /file-contents@0.2.4: + resolution: {integrity: sha512-PEz7U6YlXr+dvWCtW63DUY1LUTHOVs1rv4s1/I/39dpvvidQqMSTY6JklazQS60MMoI/ztpo5kMlpdvGagvLbA==} + engines: {node: '>=0.10.0'} + dependencies: + extend-shallow: 2.0.1 + file-stat: 0.1.3 + graceful-fs: 4.2.11 + is-buffer: 1.1.6 + is-utf8: 0.2.1 + lazy-cache: 0.2.7 + through2: 2.0.5 + dev: false + + /file-contents@0.3.2: + resolution: {integrity: sha512-7xaJjA+9eTve2l1FzoagBX26tICgaTwLPAY9vi/FDutEUKNeBR4YYvvQ8bgxuYJb09edaAQoEGIa6Juim88dpQ==} + engines: {node: '>=0.10.0'} + dependencies: + define-property: 0.2.5 + extend-shallow: 2.0.1 + file-stat: 0.2.3 + fs-exists-sync: 0.1.0 + graceful-fs: 4.2.11 + is-buffer: 1.1.6 + isobject: 2.1.0 + lazy-cache: 2.0.2 + strip-bom-buffer: 0.1.1 + strip-bom-string: 0.1.2 + through2: 2.0.5 + vinyl: 1.2.0 + dev: false + /file-entry-cache@6.0.1: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} @@ -4109,6 +4214,25 @@ packages: flat-cache: 3.2.0 dev: false + /file-stat@0.1.3: + resolution: {integrity: sha512-f72m4132aOd5DVtREdDX8I0Dd7Zf/3PiUYYvn4BFCxfsLqj6r8joBZzrRlfvsNvxhADw+jpEa0AnWPII9H0Fbg==} + engines: {node: '>=0.10.0'} + dependencies: + graceful-fs: 4.2.11 + lazy-cache: 0.2.7 + through2: 2.0.5 + dev: false + + /file-stat@0.2.3: + resolution: {integrity: sha512-wjHoKZzas90Jl1XOBfLnNGc5gl9JTm7sTceuoO4P3OdadlCz1ELrOxYmiamqLJP4S8+phD7wzW8S1oBj+8vnBQ==} + engines: {node: '>=0.10.0'} + dependencies: + fs-exists-sync: 0.1.0 + graceful-fs: 4.2.11 + lazy-cache: 2.0.2 + through2: 2.0.5 + dev: false + /file-uri-to-path@2.0.0: resolution: {integrity: sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg==} engines: {node: '>= 6'} @@ -4234,6 +4358,11 @@ packages: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} dev: false + /fs-exists-sync@0.1.0: + resolution: {integrity: sha512-cR/vflFyPZtrN6b38ZyWxpWdhlXrzZEBawlpBQMq7033xVY7/kg0GDMBK5jg8lDYQckdJ5x/YC88lM3C7VMsLg==} + engines: {node: '>=0.10.0'} + dev: false + /fs-extra@10.1.0: resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} engines: {node: '>=12'} @@ -4390,6 +4519,12 @@ packages: resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} dev: false + /glob-parent@2.0.0: + resolution: {integrity: sha512-JDYOvfxio/t42HKdxkAYaCiBN7oYiuxykOxKxdaUW5Qn0zaYN3gRQWolrwdnf0shM9/EP0ebuuTmyoXNr1cC5w==} + dependencies: + is-glob: 2.0.1 + dev: false + /glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -4431,6 +4566,24 @@ packages: path-is-absolute: 1.0.1 dev: false + /global-modules@0.2.3: + resolution: {integrity: sha512-JeXuCbvYzYXcwE6acL9V2bAOeSIGl4dD+iwLY9iUx2VBJJ80R18HCn+JCwHM9Oegdfya3lEkGCdaRkSyc10hDA==} + engines: {node: '>=0.10.0'} + dependencies: + global-prefix: 0.1.5 + is-windows: 0.2.0 + dev: false + + /global-prefix@0.1.5: + resolution: {integrity: sha512-gOPiyxcD9dJGCEArAhF4Hd0BAqvAe/JzERP7tYumE4yIkmIedPUVXcJFWbV3/p/ovIIvKjkrTk+f1UVkq7vvbw==} + engines: {node: '>=0.10.0'} + dependencies: + homedir-polyfill: 1.0.3 + ini: 1.3.8 + is-windows: 0.2.0 + which: 1.3.1 + dev: false + /globals@11.12.0: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} engines: {node: '>=4'} @@ -4528,6 +4681,13 @@ packages: engines: {node: '>=8'} dev: false + /has-glob@0.1.1: + resolution: {integrity: sha512-WMHzb7oCwDcMDngWy0b+viLjED8zvSi5d4/YdBetADHX/rLH+noJaRTytuyN6thTxxM7lK+FloogQHHdOOR+7g==} + engines: {node: '>=0.10.0'} + dependencies: + is-glob: 2.0.1 + dev: false + /has-property-descriptors@1.0.1: resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==} dependencies: @@ -4596,6 +4756,13 @@ packages: tslib: 2.6.2 dev: false + /homedir-polyfill@1.0.3: + resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} + engines: {node: '>=0.10.0'} + dependencies: + parse-passwd: 1.0.0 + dev: false + /hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} dev: false @@ -4771,6 +4938,14 @@ packages: resolution: {integrity: sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==} dev: false + /is-absolute@0.2.6: + resolution: {integrity: sha512-7Kr05z5LkcOpoMvxHN1PC11WbPabdNFmMYYo0eZvWu3BfVS0T03yoqYDczoCBx17xqk2x1XAZrcKiFVL88jxlQ==} + engines: {node: '>=0.10.0'} + dependencies: + is-relative: 0.2.1 + is-windows: 0.2.0 + dev: false + /is-accessor-descriptor@1.0.1: resolution: {integrity: sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==} engines: {node: '>= 0.10'} @@ -4891,6 +5066,11 @@ packages: is-plain-object: 2.0.4 dev: false + /is-extglob@1.0.0: + resolution: {integrity: sha512-7Q+VbVafe6x2T+Tu6NcOf6sRklazEPmBoB3IWk3WdGZM2iGUwU/Oe3Wtq5lSEkDTTlpp8yx+5t4pzO/i9Ty1ww==} + engines: {node: '>=0.10.0'} + dev: false + /is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} @@ -4906,6 +5086,13 @@ packages: engines: {node: '>=6'} dev: false + /is-glob@2.0.1: + resolution: {integrity: sha512-a1dBeB19NXsf/E0+FHqkagizel/LQw2DjSQpvQrj3zT+jYPpaUCryPnrQajXKFLCMuf4I6FhRpaGtw4lPrG6Eg==} + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: 1.0.0 + dev: false + /is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -4969,6 +5156,13 @@ packages: has-tostringtag: 1.0.0 dev: false + /is-relative@0.2.1: + resolution: {integrity: sha512-9AMzjRmLqcue629b4ezEVSK6kJsYJlUIhMcygmYORUgwUNJiavHcC3HkaGx0XYpyVKQSOqFbMEZmW42cY87sYw==} + engines: {node: '>=0.10.0'} + dependencies: + is-unc-path: 0.1.2 + dev: false + /is-shared-array-buffer@1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} dependencies: @@ -5011,12 +5205,33 @@ packages: which-typed-array: 1.1.13 dev: false + /is-unc-path@0.1.2: + resolution: {integrity: sha512-HhLc5VDMH4pu3oMtIuunz/DFQUIoR561kMME3U3Afhj8b7vH085vkIkemrz1kLXCEIuoMAmO3yVmafWdSbGW8w==} + engines: {node: '>=0.10.0'} + dependencies: + unc-path-regex: 0.1.2 + dev: false + + /is-utf8@0.2.1: + resolution: {integrity: sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==} + dev: false + + /is-valid-glob@0.3.0: + resolution: {integrity: sha512-CvG8EtJZ8FyzVOGPzrDorzyN65W1Ld8BVnqshRCah6pFIsprGx3dKgFtjLn/Vw9kGqR4OlR84U7yhT9ZVTyWIQ==} + engines: {node: '>=0.10.0'} + dev: false + /is-weakref@1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: call-bind: 1.0.5 dev: false + /is-windows@0.2.0: + resolution: {integrity: sha512-n67eJYmXbniZB7RF4I/FTjK1s6RPOCTxhYrVYLRaCt3lF0mpWZPKr3T2LSZAqyjQsxR2qMmGYXXzK0YWwcPM1Q==} + engines: {node: '>=0.10.0'} + dev: false + /is-windows@1.0.2: resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} engines: {node: '>=0.10.0'} @@ -5842,6 +6057,18 @@ packages: resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==} dev: false + /lazy-cache@0.2.7: + resolution: {integrity: sha512-gkX52wvU/R8DVMMt78ATVPFMJqfW8FPz1GZ1sVHBVQHmu/WvhIWE4cE1GBzhJNFicDeYhnwp6Rl35BcAIM3YOQ==} + engines: {node: '>=0.10.0'} + dev: false + + /lazy-cache@2.0.2: + resolution: {integrity: sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA==} + engines: {node: '>=0.10.0'} + dependencies: + set-getter: 0.1.1 + dev: false + /leven@3.1.0: resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} engines: {node: '>=6'} @@ -5894,6 +6121,14 @@ packages: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} dev: false + /log-ok@0.1.1: + resolution: {integrity: sha512-cc8VrkS6C+9TFuYAwuHpshrcrGRAv7d0tUJ0GdM72ZBlKXtlgjUZF84O+OhQUdiVHoF7U/nVxwpjOdwUJ8d3Vg==} + engines: {node: '>=0.10.0'} + dependencies: + ansi-green: 0.1.1 + success-symbol: 0.1.0 + dev: false + /logform@2.6.0: resolution: {integrity: sha512-1ulHeNPp6k/LD8H91o7VYFBng5i1BDE7HoKxVbZiGFidS1Rj65qcywLxX+pVfAPoQJEjRdvKcusKwOupHCVOVQ==} engines: {node: '>= 12.0.0'} @@ -6001,6 +6236,21 @@ packages: object-visit: 1.0.1 dev: false + /matched@0.4.4: + resolution: {integrity: sha512-zpasnbB5vQkvb0nfcKV0zEoGgMtV7atlWR1Vk3E8tEKh6EicMseKtVV+5vc+zsZwvDlcNMKlKK/CVOEeAalYRQ==} + engines: {node: '>= 0.12.0'} + dependencies: + arr-union: 3.1.0 + async-array-reduce: 0.2.1 + extend-shallow: 2.0.1 + fs-exists-sync: 0.1.0 + glob: 7.1.7 + has-glob: 0.1.1 + is-valid-glob: 0.3.0 + lazy-cache: 2.0.2 + resolve-dir: 0.1.1 + dev: false + /mdurl@1.0.1: resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} dev: false @@ -6363,6 +6613,13 @@ packages: engines: {node: '>=6'} dev: false + /noms@0.0.0: + resolution: {integrity: sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==} + dependencies: + inherits: 2.0.4 + readable-stream: 1.0.34 + dev: false + /nopt@7.2.0: resolution: {integrity: sha512-CVDtwCdhYIvnAzFoJ6NJ6dX3oga9/HyciQDnG1vQDjSLMeKLJ4A93ZqYKDrgYSr1FBY5/hMYC+2VCi24pgpkGA==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -6828,6 +7085,11 @@ packages: lines-and-columns: 1.2.4 dev: false + /parse-passwd@1.0.0: + resolution: {integrity: sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==} + engines: {node: '>=0.10.0'} + dev: false + /pascal-case@3.1.2: resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} dependencies: @@ -7147,6 +7409,15 @@ packages: type-fest: 0.6.0 dev: false + /readable-stream@1.0.34: + resolution: {integrity: sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==} + dependencies: + core-util-is: 1.0.3 + inherits: 2.0.4 + isarray: 0.0.1 + string_decoder: 0.10.31 + dev: false + /readable-stream@1.1.14: resolution: {integrity: sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==} dependencies: @@ -7240,6 +7511,11 @@ packages: engines: {node: '>=0.10'} dev: false + /replace-ext@0.0.1: + resolution: {integrity: sha512-AFBWBy9EVRTa/LhEcG8QDP3FvpwZqmvN2QFDuJswFeaVhWnZMp8q3E6Zd90SR04PlIwfGdyVjNyLPyen/ek5CQ==} + engines: {node: '>= 0.4'} + dev: false + /require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} @@ -7257,6 +7533,14 @@ packages: resolve-from: 5.0.0 dev: false + /resolve-dir@0.1.1: + resolution: {integrity: sha512-QxMPqI6le2u0dCLyiGzgy92kjkkL6zO0XyvHzjdTNH3zM6e5Hz3BwG6+aEyNgiQ5Xz6PwTwgQEj3U50dByPKIA==} + engines: {node: '>=0.10.0'} + dependencies: + expand-tilde: 1.2.2 + global-modules: 0.2.3 + dev: false + /resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} @@ -7498,6 +7782,13 @@ packages: has-property-descriptors: 1.0.1 dev: false + /set-getter@0.1.1: + resolution: {integrity: sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==} + engines: {node: '>=0.10.0'} + dependencies: + to-object-path: 0.3.0 + dev: false + /set-value@2.0.1: resolution: {integrity: sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==} engines: {node: '>=0.10.0'} @@ -7887,6 +8178,19 @@ packages: ansi-regex: 6.0.1 dev: false + /strip-bom-buffer@0.1.1: + resolution: {integrity: sha512-dbIOX/cOLFgLH/2ofd7n78uPD3uPkXyt3P1IgaVoGiPYEdOnb7D1mawyhOTXyYWva1kCuRxJY5FkMsVKYlZRRg==} + engines: {node: '>=0.10.0'} + dependencies: + is-buffer: 1.1.6 + is-utf8: 0.2.1 + dev: false + + /strip-bom-string@0.1.2: + resolution: {integrity: sha512-3DgNqQFTfOwWgxn3cXsa6h/WRgFa7dVb6/7YqwfJlBpLSSQbiU1VhaBNRKmtLI59CHjc9awLp9yGJREu7AnaMQ==} + engines: {node: '>=0.10.0'} + dev: false + /strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} @@ -7929,6 +8233,11 @@ packages: engines: {node: '>=8'} dev: false + /success-symbol@0.1.0: + resolution: {integrity: sha512-7S6uOTxPklNGxOSbDIg4KlVLBQw1UiGVyfCUYgYxrZUKRblUkmGj7r8xlfQoFudvqLv6Ap5gd76/IIFfI9JG2A==} + engines: {node: '>=0.10.0'} + dev: false + /supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} @@ -8110,6 +8419,20 @@ packages: engines: {node: '>=4'} dev: false + /to-file@0.2.0: + resolution: {integrity: sha512-xLyYVRKJQTwy2tKMOLD0M0yL+YSZVgMAzkaY9hh7GhzgBBHSIWARDkgPx8krPPm0mW5CgoIFsQEdKRFOyIRdqg==} + engines: {node: '>=0.10.0'} + dependencies: + define-property: 0.2.5 + extend-shallow: 2.0.1 + file-contents: 0.2.4 + glob-parent: 2.0.0 + is-valid-glob: 0.3.0 + isobject: 2.1.0 + lazy-cache: 2.0.2 + vinyl: 1.2.0 + dev: false + /to-object-path@0.3.0: resolution: {integrity: sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==} engines: {node: '>=0.10.0'} @@ -8447,6 +8770,11 @@ packages: which-boxed-primitive: 1.0.2 dev: false + /unc-path-regex@0.1.2: + resolution: {integrity: sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==} + engines: {node: '>=0.10.0'} + dev: false + /undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} dev: false @@ -8595,6 +8923,15 @@ packages: builtins: 5.0.1 dev: false + /vinyl@1.2.0: + resolution: {integrity: sha512-Ci3wnR2uuSAWFMSglZuB8Z2apBdtOyz8CV7dC6/U1XbltXBC+IuutUkXQISz01P+US2ouBuesSbV6zILZ6BuzQ==} + engines: {node: '>= 0.9'} + dependencies: + clone: 1.0.4 + clone-stats: 0.0.1 + replace-ext: 0.0.1 + dev: false + /vscode-jsonrpc@3.6.2: resolution: {integrity: sha512-T24Jb5V48e4VgYliUXMnZ379ItbrXgOimweKaJshD84z+8q7ZOZjJan0MeDe+Ugb+uqERDVV8SBmemaGMSMugA==} engines: {node: '>=4.0.0 || >=6.0.0'} @@ -8927,6 +9264,19 @@ packages: engines: {node: '>=12'} dev: false + /yargs@16.2.0: + resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} + engines: {node: '>=10'} + dependencies: + cliui: 7.0.4 + escalade: 3.1.1 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 20.2.9 + dev: false + /yargs@17.2.1: resolution: {integrity: sha512-XfR8du6ua4K6uLGm5S6fA+FIJom/MdJcFNVY8geLlp2v8GYbOXD4EB1tPNZsRn4vBzKGMgb5DRZMeWuFc2GO8Q==} engines: {node: '>=12'} @@ -9683,7 +10033,7 @@ packages: dev: false file:projects/openapi-to-typespec.tgz(jest@29.7.0): - resolution: {integrity: sha512-FAep6rYlxFhr/V4kKJfoGvzcRlKzgzoXfV6ffjvgh99peKpJKsR2zZdVoHjdpjU9gT6zXwFXlfvjHsxkyoNJog==, tarball: file:projects/openapi-to-typespec.tgz} + resolution: {integrity: sha512-X3QcAIMIxg3UwWKKPRSDG86rzwZNm2JWxeIEi5+hzJFMX7755TuAjKO8FLvgjKtsgT+g9APia2MHVmxZXKJkuw==, tarball: file:projects/openapi-to-typespec.tgz} id: file:projects/openapi-to-typespec.tgz name: '@rush-temp/openapi-to-typespec' version: 0.0.0 @@ -9711,6 +10061,8 @@ packages: chalk: 4.1.2 change-case: 5.0.2 change-case-all: 2.1.0 + copy: 0.3.2 + copyfiles: 2.4.1 eslint: 8.53.0 eslint-plugin-import: 2.29.0(eslint@8.53.0) eslint-plugin-jest: 27.6.0(@typescript-eslint/eslint-plugin@6.11.0)(eslint@8.53.0)(jest@29.7.0)(typescript@5.2.2) diff --git a/packages/extensions/openapi-to-typespec/package.json b/packages/extensions/openapi-to-typespec/package.json index 609e20621e..dbc558d967 100644 --- a/packages/extensions/openapi-to-typespec/package.json +++ b/packages/extensions/openapi-to-typespec/package.json @@ -13,8 +13,9 @@ "start": "node --max_old_space_size=4096 ./dist/main.js", "debug": "node --max_old_space_size=4096 --inspect-brk=localhost:9229 ./dist/main.js", "watch": "tsc -p tsconfig.build.json --watch", - "build": "tsc -p tsconfig.build.json", + "build": "tsc -p tsconfig.build.json && npm run copy", "build:prod": "webpack", + "copy": "copyfiles -u 2 src/assets/*.tsp dist/assets/", "lint:fix": "eslint ./src ./test --fix --ext .ts", "lint": "eslint ./src ./test --ext .ts --max-warnings=0" }, @@ -84,6 +85,7 @@ "ts-loader": "~9.5.1", "@types/lodash": "~4.14.168", "@types/pluralize": "^0.0.30", - "@azure-tools/openapi": "~3.6.0" + "@azure-tools/openapi": "~3.6.0", + "copyfiles": "2.4.1" } } diff --git a/packages/extensions/openapi-to-typespec/src/assets/legacy.tsp b/packages/extensions/openapi-to-typespec/src/assets/legacy.tsp new file mode 100644 index 0000000000..05225f6ce2 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/src/assets/legacy.tsp @@ -0,0 +1,326 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Legacy { + interface LegacyOperations< + ParentParameters extends {}, + ResourceTypeParameter extends {}, + ErrorType extends {} = ErrorResponse + > { + /** + * @dev A long-running resource CreateOrUpdate (PUT) + * @template Resource the resource being created or updated + * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PUT operation + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @doc("Create a {name}", Resource) + @armResourceCreateOrUpdate(Resource) + @Azure.Core.Foundations.Private.defaultFinalStateVia(#[ + "location", + "azure-async-operation" + ]) + @put + CreateOrUpdateAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + LroHeaders extends TypeSpec.Reflection.Model = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< + Resource, + LroHeaders + > + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot resource: Resource, + ): Response | ErrorType; + + /** + * @dev A synchronous resource CreateOrUpdate (PUT) + * @template Resource the resource being created or updated + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PUT operation + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @doc("Create a {name}", Resource) + @armResourceCreateOrUpdate(Resource) + @put + CreateOrUpdateSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResourceUpdatedResponse | ArmResourceCreatedSyncResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot resource: Resource, + ): Response | ErrorType; + + /** + * @dev A long-running resource Update (PATCH) + * @template Resource the resource being created or updated + * @template PatchModel the PATCH request model + * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PATCH operation + */ + @autoRoute + @doc("Update a {name}", Resource) + @armResourceUpdate(Resource) + @patch + CustomPatchAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader< + Azure.Core.StatusMonitorPollingOptions, + Resource, + string + > & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmResponse | ArmAcceptedLroResponse< + "Resource update request accepted.", + LroHeaders + > + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot properties: PatchModel, + ): Response | ErrorType; + + /** + * @dev A synchronous resource Update (PATCH) + * @template Resource the resource being created or updated + * @template PatchModel the PATCH request model + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PATCH operation + */ + @autoRoute + @doc("Update a {name}", Resource) + @armResourceUpdate(Resource) + @patch + CustomPatchSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot properties: PatchModel, + ): Response | ErrorType; + + /** + * @dev Delete a resource asynchronously + * @template Resource The resource being deleted + * @template LroHeaders The lro headers for the operation + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the delete operation + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid" + @autoRoute + @doc("Delete a {name}", Resource) + @delete + @deletesResource(Resource) + @armResourceDelete(Resource) + DeleteWithoutOkAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Delete a resource synchronously + * @template Resource The resource being deleted + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the delete operation + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid" + @autoRoute + @doc("Delete a {name}", Resource) + @delete + @deletesResource(Resource) + @armResourceDelete(Resource) + DeleteSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmDeletedResponse | ArmDeletedNoContentResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Get a resource + * @template Resource The resource being read + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response for a get operation. + */ + @autoRoute + @doc("Get a {name}", Resource) + @get + @readsResource(Resource) + @armResourceRead(Resource) + Read< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Get a resource + * @template Resource The resource being read + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response for a get operation. + */ + @doc("Get a {name}", Resource) + @get + @readsResource(Resource) + @armResourceRead(Resource) + ReadRoute< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev List a resource + * @template Resource The resource being listed + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The response returned by the list + */ + @autoRoute + @doc("List {name} resources", Resource) + @get + @listsResource(Resource) + @segmentOf(Resource) + @armResourceList(Resource) + List< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse> + >(...ParentParameters, ...Parameters): Response | ErrorType; + + /** + * @dev List a resource + * @template Resource The resource being listed + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The response returned by the list + */ + @doc("List {name} resources", Resource) + @get + @listsResource(Resource) + @armResourceList(Resource) + ListRoute< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse> + >(...ParentParameters, ...Parameters): Response | ErrorType; + + /** + * A synchronous resource action. + * @template Resource The resource being acted upon + * @template Request The request model for the action + * @template Response The response model for the action + * @template Parameters Optional. Additional parameters after the path parameters + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @armResourceAction(Resource) + @Private.enforceConstraint(Resource, Foundations.Resource) + @post + @returnsDoc("Azure operation completed successfully.") + ActionSync< + Resource extends Foundations.Resource, + Request extends TypeSpec.Reflection.Model | void, + Response extends TypeSpec.Reflection.Model | void, + Parameters extends {} = {} + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + + @doc("The content of the action request") + @bodyRoot + body: Request, + ): Response | ErrorType; + + /** + * A long-running resource action. + * @template Resource The resource being acted upon + * @template Request The request model for the action + * @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response + * @template Response The response model for the action + * @template Parameters Optional. Additional parameters after the path parameters + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "ARM" + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "template" + @autoRoute + @armResourceAction(Resource) + @Private.enforceConstraint(Resource, Foundations.Resource) + @post + @returnsDoc("Azure operation completed successfully.") + ActionAsync< + Resource extends Foundations.Resource, + Request extends TypeSpec.Reflection.Model | void, + Result extends TypeSpec.Reflection.Model | void, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader< + Azure.Core.StatusMonitorPollingOptions, + Result, + string + > & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} | void = ArmAcceptedLroResponse< + "Resource operation accepted.", + LroHeaders + > | Result + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + + @doc("The content of the action request") + @bodyRoot + body: Request, + ): Response | ErrorType; + } + /** + * @dev Get the provider namespace key-value pair + * @template Resource Optional. The resource to get the provider namespace for. + */ + model Provider { + ...ProviderNamespace; + } +} diff --git a/packages/extensions/openapi-to-typespec/src/emiters/emit-legacy.ts b/packages/extensions/openapi-to-typespec/src/emiters/emit-legacy.ts new file mode 100644 index 0000000000..6ea0ff4af5 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/src/emiters/emit-legacy.ts @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { readFileSync } from "fs"; +import { join } from "path"; +import { getSession } from "../autorest-session"; +import { formatTypespecFile } from "../utils/format"; + +export async function emitLegacy(filePath: string): Promise { + const session = getSession(); + const path = join(__dirname, "..", "assets", "legacy.tsp"); + + const legacyContent = readFileSync(path, "utf-8"); + session.writeFile({ filename: filePath, content: await formatTypespecFile(legacyContent, filePath) }); +} diff --git a/packages/extensions/openapi-to-typespec/src/emiters/emit-main.ts b/packages/extensions/openapi-to-typespec/src/emiters/emit-main.ts index d4f0667729..28efb7f9a4 100644 --- a/packages/extensions/openapi-to-typespec/src/emiters/emit-main.ts +++ b/packages/extensions/openapi-to-typespec/src/emiters/emit-main.ts @@ -76,7 +76,7 @@ function getArmResourceImports(program: TypespecProgram, metadata: Metadata): st const imports: string[] = []; for (const resource in metadata.Resources) { - const fileName = metadata.Resources[resource].SwaggerModelName; + const fileName = metadata.Resources[resource][0].SwaggerModelName; if (fileName) { imports.push(`import "./${fileName}.tsp";`); } @@ -86,5 +86,9 @@ function getArmResourceImports(program: TypespecProgram, metadata: Metadata): st imports.push(`import "./routes.tsp";`); } + if (Object.keys(metadata.Resources).find((key) => metadata.Resources[key].length > 1)) { + imports.push(`import "./legacy.tsp";`); + } + return imports; } diff --git a/packages/extensions/openapi-to-typespec/src/generate/generate-arm-resource.ts b/packages/extensions/openapi-to-typespec/src/generate/generate-arm-resource.ts index 32892136a5..4ad25803bb 100644 --- a/packages/extensions/openapi-to-typespec/src/generate/generate-arm-resource.ts +++ b/packages/extensions/openapi-to-typespec/src/generate/generate-arm-resource.ts @@ -9,6 +9,8 @@ import { TspLroHeaders, TypespecParameter, TypespecDataType, + TspArmResourceOperationGroup, + TspArmOperationType, } from "../interfaces"; import { getOptions } from "../options"; import { getTSPOperationGroupName } from "../transforms/transform-arm-resources"; @@ -30,7 +32,7 @@ export function generateArmResource(resource: TspArmResource): string { definitions.push("\n"); - definitions.push(generateArmResourceOperation(resource)); + definitions.push(generateArmResourceOperationGroups(resource)); definitions.push("\n"); @@ -38,7 +40,7 @@ export function generateArmResource(resource: TspArmResource): string { definitions.push(generateAugmentedDecorators(a.target!, [a])); } - for (const o of resource.resourceOperations) { + for (const o of resource.resourceOperationGroups.flatMap((g) => g.resourceOperations)) { for (const d of o.augmentedDecorators ?? []) { definitions.push(`${d}`); } @@ -75,7 +77,7 @@ function generateArmResourceModel(resource: TspArmResource): string { ); if (resource.keyExpression) { - definitions.push(`${resource.keyExpression}`); + definitions.push(`${resource.keyExpression};`); } definitions = [...definitions, ...getModelPropertiesDeclarations(resource.properties)]; @@ -87,16 +89,37 @@ function generateArmResourceModel(resource: TspArmResource): string { return definitions.join("\n"); } -function generateArmResourceOperation(resource: TspArmResource): string { +function generateArmResourceOperationGroups(resource: TspArmResource): string { + const definitions: string[] = []; + + for (const operationGroup of resource.resourceOperationGroups) { + definitions.push(generateArmResourceOperationGroup(operationGroup)); + } + + return definitions.join("\n"); +} + +function generateArmResourceOperationGroup(operationGroup: TspArmResourceOperationGroup): string { const { isFullCompatible } = getOptions(); - const formalOperationGroupName = getTSPOperationGroupName(resource.name); const definitions: string[] = []; + if (operationGroup.isLegacy) { + definitions.push("@armResourceOperations"); + definitions.push( + `interface ${ + operationGroup.legacyOperationGroup!.interfaceName + } extends Azure.ResourceManager.Legacy.LegacyOperations<{${operationGroup.legacyOperationGroup!.parentParameters.join( + ";", + )}}, ${operationGroup.legacyOperationGroup!.resourceTypeParameter}> {}`, + ); + definitions.push("\n"); + } + definitions.push("@armResourceOperations"); - definitions.push(`interface ${formalOperationGroupName} {`); + definitions.push(`interface ${operationGroup.interfaceName} {`); - for (const operation of resource.resourceOperations) { + for (const operation of operationGroup.resourceOperations) { for (const fixme of operation.fixMe ?? []) { definitions.push(fixme); } @@ -106,7 +129,7 @@ function generateArmResourceOperation(resource: TspArmResource): string { if ( isFullCompatible && operation.operationId && - operation.operationId !== getGeneratedOperationId(formalOperationGroupName, operation.name) + operation.operationId !== getGeneratedOperationId(operationGroup.interfaceName, operation.name) ) { definitions.push(`@operationId("${operation.operationId}")`); definitions.push(`#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"`); @@ -115,55 +138,86 @@ function generateArmResourceOperation(resource: TspArmResource): string { definitions.push(...generateSuppressions(operation.suppressions)); } + const operationKind = operationGroup.isLegacy + ? `${operationGroup.legacyOperationGroup!.interfaceName}.${getLegacyOperationKind(operation.kind)}` + : operation.kind; if (operation.kind === "ArmResourceActionSync" || operation.kind === "ArmResourceActionAsync") { definitions.push( - `${operation.name} is ${operation.kind}<${operation.resource}, ${generateArmRequest( + `${operation.name} is ${operationKind}<${operation.resource}, ${generateArmRequest( operation.request, )}, ${generateArmResponse(operation.response)}${ - operation.baseParameters ? `, BaseParameters = ${operation.baseParameters[0]}` : "" + operation.baseParameters && !operationGroup.isLegacy + ? `, BaseParameters = ${operation.baseParameters[0]}` + : "" }${operation.parameters ? `, Parameters = { ${generateParameters(operation.parameters)} }` : ""}${ operation.lroHeaders ? `, LroHeaders = ${generateLroHeaders(operation.lroHeaders)}` : "" - }>`, + }>;`, ); } else if (operation.kind === "ArmResourceActionAsyncBase") { definitions.push( - `${operation.name} is ${operation.kind}<${operation.resource}, ${generateArmRequest( + `${operation.name} is ${operationKind}<${operation.resource}, ${generateArmRequest( operation.request, )}, ${generateArmResponse(operation.response)}, BaseParameters = ${operation.baseParameters![0]}${ operation.parameters ? `, Parameters = { ${generateParameters(operation.parameters)} }` : "" - }>`, + }>;`, ); } else { definitions.push( - `${operation.name} is ${operation.kind}<${operation.resource}${ + `${operation.name} is ${operationKind}<${operation.resource}${ operation.patchModel ? `, PatchModel = ${operation.patchModel}` : "" - }${operation.baseParameters ? `, BaseParameters = ${operation.baseParameters[0]}` : ""}${ - operation.parameters ? `, Parameters = { ${generateParameters(operation.parameters)} }` : "" - }${operation.response ? `, Response = ${generateArmResponse(operation.response)}` : ""}${ - operation.lroHeaders ? `, LroHeaders = ${generateLroHeaders(operation.lroHeaders)}` : "" - }>`, + }${ + operation.baseParameters && !operationGroup.isLegacy + ? `, BaseParameters = ${operation.baseParameters[0]}` + : "" + }${operation.parameters ? `, Parameters = { ${generateParameters(operation.parameters)} }` : ""}${ + operation.response ? `, Response = ${generateArmResponse(operation.response)}` : "" + }${operation.lroHeaders ? `, LroHeaders = ${generateLroHeaders(operation.lroHeaders)}` : ""}>;`, ); } definitions.push("\n"); } - for (const operation of resource.normalOperations) { - if ( - isFullCompatible && - operation.operationId && - operation.operationId !== getGeneratedOperationId(formalOperationGroupName, operation.name) - ) { - definitions.push(`@operationId("${operation.operationId}")`); - definitions.push(`#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"`); - } - definitions.push(generateOperation(operation as TypespecOperation)); - definitions.push(""); - } - - definitions.push("}\n"); + definitions.push("}"); return definitions.join("\n"); } +function getLegacyOperationKind(kind: TspArmOperationType): string { + switch (kind) { + case "ArmResourceRead": + return "Read"; + case "ArmResourceCheckExistence": + return "CheckExistence"; + case "ArmResourceCreateOrReplaceSync": + return "CreateOrUpdateSync"; + case "ArmResourceCreateOrReplaceAsync": + return "CreateOrUpdateAsync"; + case "ArmResourcePatchSync": + return "PatchSync"; + case "ArmResourcePatchAsync": + return "PatchAsync"; + case "ArmCustomPatchSync": + return "CustomPatchSync"; + case "ArmCustomPatchAsync": + return "CustomPatchAsync"; + case "ArmResourceDeleteSync": + return "DeleteSync"; + case "ArmResourceDeleteWithoutOkAsync": + return "DeleteWithoutOkAsync"; + case "ArmResourceActionSync": + return "ActionSync"; + case "ArmResourceActionAsync": + return "ActionAsync"; + case "ArmResourceActionAsyncBase": + return "ActionAsyncBase"; + case "ArmResourceListByParent": + return "List"; + case "ArmListBySubscription": + return "ListBySubscription"; + case "ArmResourceListAtScope": + return "ListAtScope"; + } +} + function generateArmRequest(request: TypespecParameter | TypespecVoidType | TypespecDataType): string { if (request.kind === "void") { return "void"; @@ -201,14 +255,7 @@ export function generateTemplateModel(templateModel: TypespecTemplateModel): str export function generateArmResourceExamples(resource: TspArmResource): Record { const formalOperationGroupName = pluralize(resource.name); const examples: Record = {}; - for (const operation of resource.resourceOperations) { - generateExamples( - operation.examples ?? {}, - operation.operationId ?? getGeneratedOperationId(formalOperationGroupName, operation.name), - examples, - ); - } - for (const operation of resource.normalOperations) { + for (const operation of resource.resourceOperationGroups.flatMap((g) => g.resourceOperations)) { generateExamples( operation.examples ?? {}, operation.operationId ?? getGeneratedOperationId(formalOperationGroupName, operation.name), diff --git a/packages/extensions/openapi-to-typespec/src/generate/generate-client.ts b/packages/extensions/openapi-to-typespec/src/generate/generate-client.ts index bc18ae9df9..40238d0b81 100644 --- a/packages/extensions/openapi-to-typespec/src/generate/generate-client.ts +++ b/packages/extensions/openapi-to-typespec/src/generate/generate-client.ts @@ -53,7 +53,7 @@ export function generateArmResourceClientDecorator(resource: TspArmResource): st if (resource.clientDecorators && resource.clientDecorators.length > 0) definitions.push(generateAugmentedDecorators(resource.name, resource.clientDecorators)); - for (const op of resource.resourceOperations) { + for (const op of resource.resourceOperationGroups.flatMap((g) => g.resourceOperations)) { if (op.clientDecorators && op.clientDecorators.length > 0) definitions.push(generateAugmentedDecorators(`${targetName}.${op.name}`, op.clientDecorators)); } diff --git a/packages/extensions/openapi-to-typespec/src/interfaces.ts b/packages/extensions/openapi-to-typespec/src/interfaces.ts index 13f9bba382..8f14559536 100644 --- a/packages/extensions/openapi-to-typespec/src/interfaces.ts +++ b/packages/extensions/openapi-to-typespec/src/interfaces.ts @@ -278,8 +278,6 @@ export interface TspArmResourceLifeCycleOperation extends TspArmResourceOperatio | "ArmResourceCreateOrReplaceAsync" | "ArmResourcePatchSync" | "ArmResourcePatchAsync" - | "ArmTagsPatchSync" - | "ArmTagsPatchAsync" | "ArmCustomPatchSync" | "ArmCustomPatchAsync" | "ArmResourceDeleteSync" @@ -298,8 +296,6 @@ export type TspArmOperationType = | "ArmResourceCreateOrReplaceAsync" | "ArmResourcePatchSync" | "ArmResourcePatchAsync" - | "ArmTagsPatchSync" - | "ArmTagsPatchAsync" | "ArmCustomPatchSync" | "ArmCustomPatchAsync" | "ArmResourceDeleteSync" @@ -307,9 +303,6 @@ export type TspArmOperationType = | "ArmResourceActionSync" | "ArmResourceActionAsync" | "ArmResourceActionAsyncBase" - | "checkGlobalNameAvailability" - | "checkLocalNameAvailability" - | "checkNameAvailability" | "ArmResourceListByParent" | "ArmListBySubscription" | "ArmResourceListAtScope"; @@ -336,10 +329,21 @@ export interface TspArmResource extends TypespecObject { propertiesPropertyDescription: string; propertiesPropertyClientDecorator: TypespecDecorator[]; resourceParent?: TspArmResource; - resourceOperations: TspArmResourceOperation[]; - // TO-DO: delete - normalOperations: TypespecOperation[]; + resourceOperationGroups: TspArmResourceOperationGroup[]; optionalStandardProperties: string[]; baseModelName?: string; locationParent?: string; } + +export interface TspArmResourceOperationGroup { + isLegacy: boolean; + interfaceName: string; + resourceOperations: TspArmResourceOperation[]; + legacyOperationGroup?: TspArmResourceLegacyOperationGroup; +} + +export interface TspArmResourceLegacyOperationGroup { + interfaceName: string; + parentParameters: string[]; + resourceTypeParameter: string; +} diff --git a/packages/extensions/openapi-to-typespec/src/main.ts b/packages/extensions/openapi-to-typespec/src/main.ts index 61c86c792e..25fee6b07b 100644 --- a/packages/extensions/openapi-to-typespec/src/main.ts +++ b/packages/extensions/openapi-to-typespec/src/main.ts @@ -6,9 +6,11 @@ import { CodeModel, codeModelSchema } from "@autorest/codemodel"; import { AutoRestExtension, AutorestExtensionHost, Session, startSession } from "@autorest/extension-base"; import { serialize } from "@azure-tools/codegen"; import { OpenAPI3Document } from "@azure-tools/openapi"; +import { Metadata } from "utils/resource-discovery"; import { setArmCommonTypeVersion, setSession } from "./autorest-session"; import { emitArmResources } from "./emiters/emit-arm-resources"; import { emitClient } from "./emiters/emit-client"; +import { emitLegacy } from "./emiters/emit-legacy"; import { emitMain } from "./emiters/emit-main"; import { emitModels } from "./emiters/emit-models"; @@ -31,7 +33,7 @@ export async function processConverter(host: AutorestExtensionHost) { const codeModel = session.model; pretransformNames(codeModel); const { isArm } = getOptions(); - let metadata = undefined; + let metadata: Metadata | undefined = undefined; if (isArm) { // await host.writeFile({ filename: "codeModel.yaml", content: serialize(codeModel, codeModelSchema) }); metadata = parseMetadata(codeModel, session.configuration); @@ -54,6 +56,9 @@ export async function processConverter(host: AutorestExtensionHost) { await emitPackage(getFilePath(session, "package.json"), programDetails); await emitTypespecConfig(getFilePath(session, "tspconfig.yaml"), programDetails); await emitClient(getFilePath(session, "client.tsp"), programDetails); + if (metadata && Object.keys(metadata.Resources).find((key) => metadata!.Resources[key].length > 1)) { + await emitLegacy(getFilePath(session, "legacy.tsp")); + } } function getOutuptDirectory(session: Session) { diff --git a/packages/extensions/openapi-to-typespec/src/resource/parse-metadata.ts b/packages/extensions/openapi-to-typespec/src/resource/parse-metadata.ts index 7fc9044676..56fa3ce00d 100644 --- a/packages/extensions/openapi-to-typespec/src/resource/parse-metadata.ts +++ b/packages/extensions/openapi-to-typespec/src/resource/parse-metadata.ts @@ -1,4 +1,5 @@ import { CodeModel, HttpMethod, Operation } from "@autorest/codemodel"; +import { getOptions } from "../options"; import { getLogger } from "../utils/logger"; import { _ArmPagingMetadata, _ArmResourceOperation, ArmResource, Metadata } from "../utils/resource-discovery"; import { lastWordToSingular } from "../utils/strings"; @@ -24,6 +25,8 @@ import { getResourceKey, getResourceKeySegment, getResourceType, isScopedPath, i const logger = () => getLogger("parse-metadata"); export function parseMetadata(codeModel: CodeModel, configuration: Record): Metadata { + const { isFullCompatible } = getOptions(); + const operationSets: { [path: string]: OperationSet } = {}; const operations = codeModel.operationGroups.flatMap((og) => og.operations); for (const operation of operations) { @@ -82,47 +85,55 @@ export function parseMetadata(codeModel: CodeModel, configuration: Record 1) { - logger().info( - `We cannot support multi path with same model. Some operations will be lost. \nResource schema name: ${resourceSchemaName}.\nPath:\n${operationSets - .map((o) => o.RequestPath) - .join("\n")}`, + + for (let index = 0; index < operationSets.length; index++) { + if (index >= 1 && !isFullCompatible) { + logger().info( + `Multi-path operations applied on the same resource. Some operations will be lost. \nResource schema name: ${resourceSchemaName}.\nPath:\n${operationSets + .map((o) => o.RequestPath) + .join("\n")}\nTurn on isFullCompatible to keep all operations, or adjust your TypeSpec.`, + ); + resources[resourceSchemaName + "FixMe"] = [ + { + Name: resourceSchemaName + "FixMe", + GetOperations: [], + ExistOperation: undefined, + CreateOperations: [], + UpdateOperations: [], + DeleteOperations: [], + ListOperations: [], + OperationsFromResourceGroupExtension: [], + OperationsFromSubscriptionExtension: [], + OperationsFromManagementGroupExtension: [], + OperationsFromTenantExtension: [], + OtherOperations: [], + Parents: [], + SwaggerModelName: "", + ResourceType: "", + ResourceKey: "", + ResourceKeySegment: "", + IsTrackedResource: false, + IsTenantResource: false, + IsSubscriptionResource: false, + IsManagementGroupResource: false, + IsExtensionResource: false, + IsSingletonResource: false, + }, + ]; + break; + } + (resources[resourceSchemaName] ??= []).push( + buildResource( + resourceSchemaName, + operationSets[index], + Object.values(operationSetsByResourceDataSchemaName).flat(), + codeModel, + ), ); - resources[resourceSchemaName + "FixMe"] = { - Name: resourceSchemaName + "FixMe", - GetOperations: [], - ExistOperation: undefined, - CreateOperations: [], - UpdateOperations: [], - DeleteOperations: [], - ListOperations: [], - OperationsFromResourceGroupExtension: [], - OperationsFromSubscriptionExtension: [], - OperationsFromManagementGroupExtension: [], - OperationsFromTenantExtension: [], - OtherOperations: [], - Parents: [], - SwaggerModelName: "", - ResourceType: "", - ResourceKey: "", - ResourceKeySegment: "", - IsTrackedResource: false, - IsTenantResource: false, - IsSubscriptionResource: false, - IsManagementGroupResource: false, - IsExtensionResource: false, - IsSingletonResource: false, - }; } - resources[resourceSchemaName] = buildResource( - resourceSchemaName, - operationSets[0], - Object.values(operationSetsByResourceDataSchemaName).flat(), - codeModel, - ); } return { diff --git a/packages/extensions/openapi-to-typespec/src/transforms/transform-arm-resources.ts b/packages/extensions/openapi-to-typespec/src/transforms/transform-arm-resources.ts index 89645eb924..e80f596b60 100644 --- a/packages/extensions/openapi-to-typespec/src/transforms/transform-arm-resources.ts +++ b/packages/extensions/openapi-to-typespec/src/transforms/transform-arm-resources.ts @@ -1,13 +1,4 @@ -import { - ArraySchema, - ObjectSchema, - Operation, - Parameter, - Property, - Response, - SchemaResponse, - SchemaType, -} from "@autorest/codemodel"; +import { Operation, Parameter, Property, SchemaType } from "@autorest/codemodel"; import _ from "lodash"; import pluralize, { singular } from "pluralize"; import { getArmCommonTypeVersion, getSession } from "../autorest-session"; @@ -28,6 +19,8 @@ import { TspArmResourceLifeCycleOperation, TspArmResourceListOperation, isArmResourceActionOperation, + TspArmResourceLegacyOperationGroup, + TspArmResourceOperationGroup, } from "../interfaces"; import { getOptions, updateOptions } from "../options"; import { createClientNameDecorator, createCSharpNameDecorator } from "../pretransforms/rename-pretransform"; @@ -41,6 +34,8 @@ import { getResourceOperations, isResourceSchema, } from "../utils/resource-discovery"; +import { isStringSchema } from "../utils/schemas"; +import { escapeRegex } from "../utils/strings"; import { getSuppresssionWithCode } from "../utils/suppressions"; import { getFullyQualifiedName, getTemplateResponses, NamesOfResponseTemplate } from "../utils/type-mapping"; import { getTypespecType, isTypespecType, transformObjectProperty } from "./transform-object"; @@ -56,7 +51,7 @@ export function transformTspArmResource(schema: ArmResourceSchema): TspArmResour const fixMe: string[] = []; if (!getSession().configuration["namespace"]) { - const segments = schema.resourceMetadata.GetOperations[0].Path.split("/"); + const segments = schema.resourceMetadata[0].GetOperations[0].Path.split("/"); for (let i = segments.length - 1; i >= 0; i--) { if (segments[i] === "providers") { getSession().configuration["namespace"] = segments[i + 1]; @@ -67,9 +62,9 @@ export function transformTspArmResource(schema: ArmResourceSchema): TspArmResour } // TODO: deal with a resource with multiple parents - if (schema.resourceMetadata.Parents.length > 1) { + if (schema.resourceMetadata[0].Parents.length > 1) { fixMe.push( - `// FIXME: ${schema.resourceMetadata.SwaggerModelName} has more than one parent, currently converter will only use the first one`, + `// FIXME: ${schema.resourceMetadata[0].SwaggerModelName} has more than one parent, currently converter will only use the first one`, ); } @@ -88,11 +83,11 @@ export function transformTspArmResource(schema: ArmResourceSchema): TspArmResour // TODO: deal with resources that has no properties property if (!propertiesModelName) { - fixMe.push(`// FIXME: ${schema.resourceMetadata.SwaggerModelName} has no properties property`); + fixMe.push(`// FIXME: ${schema.resourceMetadata[0].SwaggerModelName} has no properties property`); propertiesModelName = "{}"; } - const armResourceOperations = getTspOperations(schema); + const armResourceOperationGroups = getTspOperationGroups(schema); let baseModelName = undefined; if (!getArmCommonTypeVersion()) { @@ -104,7 +99,7 @@ export function transformTspArmResource(schema: ArmResourceSchema): TspArmResour } const decorators = buildResourceDecorators(schema); - if (!getArmCommonTypeVersion() && schema.resourceMetadata.IsExtensionResource) { + if (!getArmCommonTypeVersion() && schema.resourceMetadata[0].IsExtensionResource) { decorators.push({ name: "extensionResource" }); } @@ -141,7 +136,7 @@ export function transformTspArmResource(schema: ArmResourceSchema): TspArmResour kind: "object", properties, keyExpression, - name: schema.resourceMetadata.SwaggerModelName, + name: schema.resourceMetadata[0].SwaggerModelName, parents: [], resourceParent: getParentResource(schema), propertiesModelName, @@ -152,8 +147,7 @@ export function transformTspArmResource(schema: ArmResourceSchema): TspArmResour decorators, clientDecorators, augmentDecorators, - resourceOperations: armResourceOperations, - normalOperations: [], + resourceOperationGroups: armResourceOperationGroups, optionalStandardProperties: getArmCommonTypeVersion() ? getResourceOptionalStandardProperties(schema) : [], baseModelName, locationParent: getLocationParent(schema), @@ -162,35 +156,124 @@ export function transformTspArmResource(schema: ArmResourceSchema): TspArmResour return tspResource; } -function getTspOperations(armSchema: ArmResourceSchema): TspArmResourceOperation[] { - const resourceMetadata = armSchema.resourceMetadata; - const operations = getResourceOperations(resourceMetadata); - const tspOperations: TspArmResourceOperation[] = []; +function getTspOperationGroups(armSchema: ArmResourceSchema): TspArmResourceOperationGroup[] { + const operationGroups: TspArmResourceOperationGroup[] = []; + for (const resourceMetadata of armSchema.resourceMetadata) { + const operations = getResourceOperations(resourceMetadata); + const interfaceName = getTSPOperationGroupName(resourceMetadata); + const tspOperations: TspArmResourceOperation[] = []; + + // TODO: handle operations under resource group / management group / tenant + + // read operation + tspOperations.push(...convertResourceReadOperation(resourceMetadata, operations)); + + // exist operation + tspOperations.push(...convertResourceExistsOperation(resourceMetadata, operations)); + + // create operation + tspOperations.push(...convertResourceCreateOrReplaceOperation(resourceMetadata, operations)); - // TODO: handle operations under resource group / management group / tenant + // patch update operation could either be patch for resource/tag or custom patch + tspOperations.push(...convertResourceUpdateOperation(resourceMetadata, operations)); - // read operation - tspOperations.push(...convertResourceReadOperation(resourceMetadata, operations)); + // delete operation + tspOperations.push(...convertResourceDeleteOperation(resourceMetadata, operations)); - // exist operation - tspOperations.push(...convertResourceExistsOperation(resourceMetadata, operations)); + // list operation + tspOperations.push(...convertResourceListOperations(resourceMetadata, operations)); - // create operation - tspOperations.push(...convertResourceCreateOrReplaceOperation(resourceMetadata, operations)); + // action operation + tspOperations.push(...convertResourceActionOperations(resourceMetadata, operations)); + + if (armSchema.resourceMetadata.length === 1) { + return [ + { + isLegacy: false, + interfaceName, + resourceOperations: tspOperations, + }, + ]; + } + + operationGroups.push({ + isLegacy: true, + interfaceName, + resourceOperations: tspOperations, + legacyOperationGroup: convertLegacyOperationGroup(resourceMetadata), + }); + } - // patch update operation could either be patch for resource/tag or custom patch - tspOperations.push(...convertResourceUpdateOperation(resourceMetadata, operations)); + return operationGroups; +} - // delete operation - tspOperations.push(...convertResourceDeleteOperation(resourceMetadata, operations)); +function convertLegacyOperationGroup(armResource: ArmResource): TspArmResourceLegacyOperationGroup { + const pathParameters = getPathParameters(armResource); + const lastParameter = pathParameters.pop(); + + const parentParameters: string[] = ["...ApiVersionParameter"]; + for (const parameter of pathParameters) { + if (parameter.keyName === "subscriptionId") { + parentParameters.push("...SubscriptionIdParameter"); + } else if (parameter.keyName === "resourceGroupName") { + parentParameters.push("...ResourceGroupParameter"); + } else if (parameter.keyName === "location") { + parentParameters.push("...LocationParameter"); + } else if (parameter.segmentName === "providers") { + parentParameters.push("...Azure.ResourceManager.Legacy.Provider"); + } else { + const resourceNameParameter = buildResourceNameParameterForSegment( + parameter.segmentName, + parameter.keyName, + parameter.pattern, + ); + if (resourceNameParameter) { + parentParameters.push(resourceNameParameter); + } else { + parentParameters.push( + `/** ${parameter.segmentName} */\n@path @segment("${parameter.segmentName}") ${parameter.keyName}: string`, + ); + } + } + } - // list operation - tspOperations.push(...convertResourceListOperations(resourceMetadata, operations)); + const resourceTypeParameter = `KeysOf>`; + const interfaceName = `${singular(getTSPOperationGroupName(armResource))}Ops`; + return { + interfaceName, + parentParameters, + resourceTypeParameter, + }; +} - // action operation - tspOperations.push(...convertResourceActionOperations(resourceMetadata, operations)); +function buildResourceNameParameterForSegment( + segmentName: string, + keyName: string, + pattern: string, +): string | undefined { + for (const objectSchema of getSession().model.schemas.objects ?? []) { + if (!isResourceSchema(objectSchema)) { + continue; + } - return tspOperations; + const resource = objectSchema.resourceMetadata.find( + (r) => r.ResourceKeySegment === segmentName && r.ResourceKey === keyName, + ); + if (resource === undefined) continue; + + return `...KeysOf>`; + } + return undefined; } function convertResourceReadOperation( @@ -766,7 +849,7 @@ function buildBodyDecorator( templateName: string, templateDoc: string, ): void { - const tspOperationGroupName = getTSPOperationGroupName(resourceMetadata.SwaggerModelName); + const tspOperationGroupName = getTSPOperationGroupName(resourceMetadata); const [augmentedDecorators, clientDecorators] = getBodyDecorators( bodyParam, tspOperationGroupName, @@ -835,17 +918,33 @@ function getResourceOptionalStandardProperties(schema: ArmResourceSchema): strin return optionalStandardProperties; } -export function getTSPOperationGroupName(resourceName: string): string { - const codeModel = getSession().model; - const operationGroupName = pluralize(resourceName); - if ( - operationGroupName === resourceName || - codeModel.schemas.objects?.find((o) => o.language.default.name === operationGroupName) - ) { - return `${operationGroupName}OperationGroup`; +const operationGroupNameCache: Map = new Map(); +export function getTSPOperationGroupName(resourceMetadata: ArmResource): string { + if (operationGroupNameCache.has(resourceMetadata)) return operationGroupNameCache.get(resourceMetadata)!; + + // Try pluralizing the resource name first + let operationGroupName = pluralize(resourceMetadata.SwaggerModelName); + if (operationGroupName !== resourceMetadata.SwaggerModelName && !isExistingOperationGroupName(operationGroupName)) { + operationGroupNameCache.set(resourceMetadata, operationGroupName); } else { - return operationGroupName; + // Try operationId then + operationGroupName = resourceMetadata.GetOperations[0].OperationID.split("_")[0]; + if (operationGroupName !== resourceMetadata.SwaggerModelName && !isExistingOperationGroupName(operationGroupName)) { + operationGroupNameCache.set(resourceMetadata, operationGroupName); + } else { + operationGroupName = `${resourceMetadata.SwaggerModelName}OperationGroup`; + operationGroupNameCache.set(resourceMetadata, operationGroupName); + } } + return operationGroupName; +} + +function isExistingOperationGroupName(operationGroupName: string): boolean { + const codeModel = getSession().model; + return ( + codeModel.schemas.objects?.find((o) => o.language.default.name === operationGroupName) !== undefined || + Array.from(operationGroupNameCache.values()).find((v) => v === operationGroupName) !== undefined + ); } function getBodyDecorators( @@ -887,7 +986,7 @@ function buildNewArmOperation( return { doc: operation.Description, kind, - name: getOperationName(resourceMetadata.Name, operation.OperationID), + name: getOperationName(getTSPOperationGroupName(resourceMetadata), operation.OperationID), resource: resourceMetadata.SwaggerModelName, baseParameters: baseParameters.length > 0 ? baseParameters : undefined, parameters: parameters.length > 0 ? parameters : undefined, @@ -897,14 +996,14 @@ function buildNewArmOperation( }; } -const existingNames: { [resourceName: string]: Set } = {}; +const existingNames: { [interfaceName: string]: Set } = {}; // TO-DO: Figure out a way to create a new name if the name exists -function getOperationName(resourceName: string, operationId: string): string { +function getOperationName(interfaceName: string, operationId: string): string { if (!operationId) return ""; let operationName = _.lowerFirst(_.last(operationId.split("_"))); - if (resourceName in existingNames) { - if (existingNames[resourceName].has(operationName)) { + if (interfaceName in existingNames) { + if (existingNames[interfaceName].has(operationName)) { operationName = _.lowerFirst( operationId .split("_") @@ -912,19 +1011,31 @@ function getOperationName(resourceName: string, operationId: string): string { .join(""), ); } - existingNames[resourceName].add(operationName); + existingNames[interfaceName].add(operationName); } else { - existingNames[resourceName] = new Set([operationName]); + existingNames[interfaceName] = new Set([operationName]); } return operationName; } -function getOperationGroupName(name: string | undefined): string { - if (name && name.includes("_")) { - return _.first(name.split("_"))!; - } else { - return ""; +function getPathParameters(resource: ArmResource): { segmentName: string; keyName: string; pattern: string }[] { + const pathParameters = []; + const pathSegments = resource.GetOperations[0].Path.split("/").filter((s) => s !== ""); + for (let i = 0; i + 1 < pathSegments.length; i += 2) { + const operation = getSession() + .model.operationGroups.flatMap((og) => og.operations) + .find((o) => o.operationId === resource.GetOperations[0].OperationID); + + const keyName = pathSegments[i + 1].replace("{", "").replace("}", ""); + const parameter = operation?.parameters?.find((p) => p.language.default.serializedName === keyName); + const pattern = + parameter && isStringSchema(parameter.schema) && parameter.schema.pattern + ? escapeRegex(parameter.schema.pattern) + : ""; + + pathParameters.push({ segmentName: pathSegments[i], keyName, pattern }); } + return pathParameters; } function buildOperationParameters( @@ -933,12 +1044,7 @@ function buildOperationParameters( ): { baseParameters: string[]; parameters: TypespecParameter[] } { const codeModel = getSession().model; const otherParameters: TypespecParameter[] = []; - const pathParameters = []; - resource.GetOperations[0].Path.split("/").forEach((p) => { - if (p.match(/^{.+}$/)) { - pathParameters.push(p.replace("{", "").replace("}", "")); - } - }); + const pathParameters = getPathParameters(resource).map((p) => p.keyName); pathParameters.push("api-version"); pathParameters.push("$host"); if (operation.parameters) { @@ -994,7 +1100,7 @@ function generateSingletonKeyParameter(): TypespecParameter { } function getParentResource(schema: ArmResourceSchema): TspArmResource | undefined { - const resourceParent = schema.resourceMetadata.Parents?.[0]; + const resourceParent = schema.resourceMetadata[0].Parents?.[0]; if (!resourceParent || isFirstLevelResource(resourceParent)) { return undefined; @@ -1005,18 +1111,18 @@ function getParentResource(schema: ArmResourceSchema): TspArmResource | undefine continue; } - if (objectSchema.resourceMetadata.Name === resourceParent) { + if (objectSchema.resourceMetadata[0].Name === resourceParent) { return transformTspArmResource(objectSchema); } } } function getResourceKind(schema: ArmResourceSchema): ArmResourceKind { - if (schema.resourceMetadata.IsExtensionResource) { + if (schema.resourceMetadata[0].IsExtensionResource) { return "ExtensionResource"; } - if (schema.resourceMetadata.IsTrackedResource) { + if (schema.resourceMetadata[0].IsTrackedResource) { return "TrackedResource"; } @@ -1028,7 +1134,7 @@ function buildKeyExpression(schema: ArmResourceSchema, keyProperty: TypespecObje const keyName = keyProperty.decorators?.find((d) => d.name === "key")?.arguments?.[0]; const segmentName = keyProperty.decorators?.find((d) => d.name === "segment")?.arguments?.[0]; return `...ResourceNameParameter< - Resource = ${schema.resourceMetadata.SwaggerModelName} + Resource = ${schema.resourceMetadata[0].SwaggerModelName} ${keyName ? `, KeyName = "${keyName}"` : ""} ${segmentName ? `, SegmentName = "${segmentName}"` : ""}, NamePattern = ${namePattern ? `"${namePattern}"` : `""`} @@ -1044,12 +1150,12 @@ function buildKeyAugmentDecorators( ?.filter((d) => !["pattern", "key", "segment", "path"].includes(d.name)) .filter((d) => !(d.name === "visibility" && d.arguments?.[0] === "read")) .map((d) => { - d.target = `${schema.resourceMetadata.SwaggerModelName}.name`; + d.target = `${schema.resourceMetadata[0].SwaggerModelName}.name`; return d; }) .concat({ name: "doc", - target: `${schema.resourceMetadata.SwaggerModelName}.name`, + target: `${schema.resourceMetadata[0].SwaggerModelName}.name`, arguments: [generateDocsContent(keyProperty)], }); } @@ -1058,7 +1164,7 @@ function buildPropertiesAugmentDecorators(schema: ArmResourceSchema, propertiesM return [ { name: "doc", - target: `${schema.resourceMetadata.SwaggerModelName}.properties`, + target: `${schema.resourceMetadata[0].SwaggerModelName}.properties`, arguments: [generateDocsContent({ doc: propertiesModel?.language.default.description })], }, ]; @@ -1066,11 +1172,11 @@ function buildPropertiesAugmentDecorators(schema: ArmResourceSchema, propertiesM function buildKeyProperty(schema: ArmResourceSchema): TypespecObjectProperty { let parameter; - if (!schema.resourceMetadata.IsSingletonResource) { - const keyProperty = getKeyParameter(schema.resourceMetadata); + if (!schema.resourceMetadata[0].IsSingletonResource) { + const keyProperty = getKeyParameter(schema.resourceMetadata[0]); if (!keyProperty) { throw new Error( - `Failed to find key property ${schema.resourceMetadata.ResourceKey} for ${schema.language.default.name}`, + `Failed to find key property ${schema.resourceMetadata[0].ResourceKey} for ${schema.language.default.name}`, ); } parameter = transformParameter(keyProperty, getSession().model); @@ -1086,14 +1192,14 @@ function buildKeyProperty(schema: ArmResourceSchema): TypespecObjectProperty { { name: "key", arguments: [ - schema.resourceMetadata.IsSingletonResource - ? singular(schema.resourceMetadata.ResourceKeySegment) - : schema.resourceMetadata.ResourceKey, + schema.resourceMetadata[0].IsSingletonResource + ? singular(schema.resourceMetadata[0].ResourceKeySegment) + : schema.resourceMetadata[0].ResourceKey, ], }, { name: "segment", - arguments: [schema.resourceMetadata.ResourceKeySegment], + arguments: [schema.resourceMetadata[0].ResourceKeySegment], }, { name: "visibility", @@ -1114,18 +1220,18 @@ function buildKeyProperty(schema: ArmResourceSchema): TypespecObjectProperty { function buildResourceDecorators(schema: ArmResourceSchema): TypespecDecorator[] { const resourceModelDecorators: TypespecDecorator[] = []; - if (schema.resourceMetadata.IsSingletonResource) { + if (schema.resourceMetadata[0].IsSingletonResource) { resourceModelDecorators.push({ name: "singleton", arguments: [getSingletonName(schema)], }); } - if (schema.resourceMetadata.IsTenantResource) { + if (schema.resourceMetadata[0].IsTenantResource) { resourceModelDecorators.push({ name: "tenantResource", }); - } else if (schema.resourceMetadata.IsSubscriptionResource) { + } else if (schema.resourceMetadata[0].IsSubscriptionResource) { resourceModelDecorators.push({ name: "subscriptionResource", }); @@ -1144,8 +1250,8 @@ function buildResourceClientDecorators(schema: ArmResourceSchema): TypespecDecor } function getSingletonName(schema: ArmResourceSchema): string { - const key = schema.resourceMetadata.ResourceKey; - const pathLast = schema.resourceMetadata.GetOperations[0].Path.split("/").pop() ?? ""; + const key = schema.resourceMetadata[0].ResourceKey; + const pathLast = schema.resourceMetadata[0].GetOperations[0].Path.split("/").pop() ?? ""; if (key !== pathLast) { if (pathLast?.includes("{")) { // this is from c# config, which need confirm with service @@ -1158,12 +1264,12 @@ function getSingletonName(schema: ArmResourceSchema): string { } function getLocationParent(schema: ArmResourceSchema): string | undefined { - if (schema.resourceMetadata.GetOperations[0].Path.includes("/locations/")) { - if (schema.resourceMetadata.IsTenantResource) { + if (schema.resourceMetadata[0].GetOperations[0].Path.includes("/locations/")) { + if (schema.resourceMetadata[0].IsTenantResource) { return "TenantLocationResource"; - } else if (schema.resourceMetadata.IsSubscriptionResource) { + } else if (schema.resourceMetadata[0].IsSubscriptionResource) { return "SubscriptionLocationResource"; - } else if (schema.resourceMetadata.Parents?.[0] === "ResourceGroupResource") { + } else if (schema.resourceMetadata[0].Parents?.[0] === "ResourceGroupResource") { return "ResourceGroupLocationResource"; } } diff --git a/packages/extensions/openapi-to-typespec/src/utils/decorators.ts b/packages/extensions/openapi-to-typespec/src/utils/decorators.ts index 8aab960e0e..953c56c407 100644 --- a/packages/extensions/openapi-to-typespec/src/utils/decorators.ts +++ b/packages/extensions/openapi-to-typespec/src/utils/decorators.ts @@ -15,8 +15,8 @@ import { TypespecDecorator, DecoratorArgument, WithSuppressDirective } from "../ import { getOptions } from "../options"; import { createCSharpNameDecorator } from "../pretransforms/rename-pretransform"; import { getOwnDiscriminator } from "./discriminator"; -import { isSealedChoiceSchema, isStringSchema } from "./schemas"; -import { getSuppresssionWithCode } from "./suppressions"; +import { isStringSchema } from "./schemas"; +import { escapeRegex } from "./strings"; export function getModelDecorators(model: ObjectSchema): TypespecDecorator[] { const decorators: TypespecDecorator[] = []; @@ -285,10 +285,6 @@ function getStringSchemaDecorators(schema: Schema, decorators: TypespecDecorator } } -function escapeRegex(str: string) { - return str.replace(/\\/g, "\\\\"); -} - export function getEnumClientDecorators(enumeration: SealedChoiceSchema | ChoiceSchema): TypespecDecorator[] { const decorators: TypespecDecorator[] = []; diff --git a/packages/extensions/openapi-to-typespec/src/utils/imports.ts b/packages/extensions/openapi-to-typespec/src/utils/imports.ts index 0f14757383..dcd0f81812 100644 --- a/packages/extensions/openapi-to-typespec/src/utils/imports.ts +++ b/packages/extensions/openapi-to-typespec/src/utils/imports.ts @@ -71,10 +71,7 @@ export function getClientImports(program: TypespecProgram) { for (const property of resource.properties) { addImports(property.clientDecorators); } - for (const op of resource.resourceOperations) { - addImports(op.clientDecorators); - } - for (const op of resource.normalOperations) { + for (const op of resource.resourceOperationGroups.flatMap((g) => g.resourceOperations)) { addImports(op.clientDecorators); } addImports(resource.propertiesPropertyClientDecorator); diff --git a/packages/extensions/openapi-to-typespec/src/utils/resource-discovery.ts b/packages/extensions/openapi-to-typespec/src/utils/resource-discovery.ts index 79987f3dea..901674b0e9 100644 --- a/packages/extensions/openapi-to-typespec/src/utils/resource-discovery.ts +++ b/packages/extensions/openapi-to-typespec/src/utils/resource-discovery.ts @@ -21,7 +21,7 @@ export interface _ArmPagingMetadata { } export interface Metadata { - Resources: Record; + Resources: Record; RenameMapping: Record; OverrideOperationName: Record; } @@ -126,7 +126,7 @@ export function getResourceExistOperation(resource: ArmResource): Operation | un } export interface ArmResourceSchema extends ObjectSchema { - resourceMetadata: ArmResource; + resourceMetadata: ArmResource[]; } export interface ArmResourcePropertiesModel extends ObjectSchema { @@ -137,7 +137,7 @@ export function tagSchemaAsResource(schema: ObjectSchema, metadata: Metadata): v const resourcesMetadata = metadata.Resources; for (const resourceName in resourcesMetadata) { - if (resourcesMetadata[resourceName].SwaggerModelName === schema.language.default.name) { + if (resourcesMetadata[resourceName][0].SwaggerModelName === schema.language.default.name) { (schema as ArmResourceSchema).resourceMetadata = resourcesMetadata[resourceName]; const propertiesModel = schema.properties?.find((p) => p.serializedName === "properties"); if (propertiesModel && isObjectSchema(propertiesModel.schema)) { diff --git a/packages/extensions/openapi-to-typespec/src/utils/strings.ts b/packages/extensions/openapi-to-typespec/src/utils/strings.ts index fc8e5d628b..6c0923e380 100644 --- a/packages/extensions/openapi-to-typespec/src/utils/strings.ts +++ b/packages/extensions/openapi-to-typespec/src/utils/strings.ts @@ -10,3 +10,7 @@ function firstCharToUpperCase(str: string): string { if (!str) return str; return str[0].toUpperCase() + str.substring(1); } + +export function escapeRegex(str: string) { + return str.replace(/\\/g, "\\\\"); +} diff --git a/packages/extensions/openapi-to-typespec/test/arm-agrifood/resources.json b/packages/extensions/openapi-to-typespec/test/arm-agrifood/resources.json index caa7fd9248..d49eef0fa3 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-agrifood/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-agrifood/resources.json @@ -1,569 +1,585 @@ { "Resources": { - "DataConnector": { - "Name": "DataConnector", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}", - "Method": "GET", - "OperationID": "DataConnectors_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get specific Data Connector resource by DataConnectorName." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}", - "Method": "PUT", - "OperationID": "DataConnectors_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update Data Connector For MADMA resource." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}", - "Method": "PUT", - "OperationID": "DataConnectors_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update Data Connector For MADMA resource." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}", - "Method": "DELETE", - "OperationID": "DataConnectors_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Data Connectors with given dataConnector name." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors", - "Method": "GET", - "OperationID": "DataConnectors_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the Data Connector Credentials for MADMA instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "DataManagerForAgriculture" - ], - "SwaggerModelName": "DataConnector", - "ResourceType": "Microsoft.AgFoodPlatform/farmBeats/dataConnectors", - "ResourceKey": "dataConnectorName", - "ResourceKeySegment": "dataConnectors", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DataManagerForAgricultureExtension": { - "Name": "DataManagerForAgricultureExtension", - "GetOperations": [ - { - "Name": "Get", - "Path": "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/{dataManagerForAgricultureExtensionId}", - "Method": "GET", - "OperationID": "DataManagerForAgricultureExtensions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get Data Manager For Agriculture extension." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions", - "Method": "GET", - "OperationID": "DataManagerForAgricultureExtensions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Get list of Data Manager For Agriculture extension." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "TenantResource" - ], - "SwaggerModelName": "DataManagerForAgricultureExtension", - "ResourceType": "Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions", - "ResourceKey": "dataManagerForAgricultureExtensionId", - "ResourceKeySegment": "farmBeatsExtensionDefinitions", - "IsTrackedResource": false, - "IsTenantResource": true, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DataManagerForAgriculture": { - "Name": "DataManagerForAgriculture", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}", - "Method": "GET", - "OperationID": "DataManagerForAgricultureResources_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get DataManagerForAgriculture resource." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}", - "Method": "PUT", - "OperationID": "DataManagerForAgricultureResources_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update Data Manager For Agriculture resource." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}", - "Method": "PATCH", - "OperationID": "DataManagerForAgricultureResources_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a Data Manager For Agriculture resource." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}", - "Method": "DELETE", - "OperationID": "DataManagerForAgricultureResources_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Data Manager For Agriculture resource." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats", - "Method": "GET", - "OperationID": "DataManagerForAgricultureResources_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the DataManagerForAgriculture instances for a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats", - "Method": "GET", - "OperationID": "DataManagerForAgricultureResources_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the DataManagerForAgriculture instances for a subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "DataManagerForAgriculture", - "ResourceType": "Microsoft.AgFoodPlatform/farmBeats", - "ResourceKey": "dataManagerForAgricultureResourceName", - "ResourceKeySegment": "farmBeats", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Extension": { - "Name": "Extension", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions/{extensionId}", - "Method": "GET", - "OperationID": "Extensions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get installed extension details by extension id." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions/{extensionId}", - "Method": "PUT", - "OperationID": "Extensions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Install or Update extension. Additional Api Properties are merged patch and if the extension is updated to a new version then the obsolete entries will be auto deleted from Additional Api Properties." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions/{extensionId}", - "Method": "PUT", - "OperationID": "Extensions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Install or Update extension. Additional Api Properties are merged patch and if the extension is updated to a new version then the obsolete entries will be auto deleted from Additional Api Properties." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions/{extensionId}", - "Method": "DELETE", - "OperationID": "Extensions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Uninstall extension." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions", - "Method": "GET", - "OperationID": "Extensions_ListByDataManagerForAgriculture", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByDataManagerForAgriculture", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Get installed extensions details." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "DataManagerForAgriculture" - ], - "SwaggerModelName": "Extension", - "ResourceType": "Microsoft.AgFoodPlatform/farmBeats/extensions", - "ResourceKey": "extensionId", - "ResourceKeySegment": "extensions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "PrivateEndpointConnection": { - "Name": "PrivateEndpointConnection", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "GET", - "OperationID": "PrivateEndpointConnections_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get Private endpoint connection object." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "PUT", - "OperationID": "PrivateEndpointConnections_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Approves or Rejects a Private endpoint connection request." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "PUT", - "OperationID": "PrivateEndpointConnections_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Approves or Rejects a Private endpoint connection request." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "DELETE", - "OperationID": "PrivateEndpointConnections_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete Private endpoint connection request." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateEndpointConnections", - "Method": "GET", - "OperationID": "PrivateEndpointConnections_ListByResource", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResource", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Get list of Private endpoint connections." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "DataManagerForAgriculture" - ], - "SwaggerModelName": "PrivateEndpointConnection", - "ResourceType": "Microsoft.AgFoodPlatform/farmBeats/privateEndpointConnections", - "ResourceKey": "privateEndpointConnectionName", - "ResourceKeySegment": "privateEndpointConnections", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "PrivateLinkResource": { - "Name": "PrivateLinkResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateLinkResources/{subResourceName}", - "Method": "GET", - "OperationID": "PrivateLinkResources_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get Private link resource object." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateLinkResources", - "Method": "GET", - "OperationID": "PrivateLinkResources_ListByResource", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResource", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Get list of Private link resources." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "DataManagerForAgriculture" - ], - "SwaggerModelName": "PrivateLinkResource", - "ResourceType": "Microsoft.AgFoodPlatform/farmBeats/privateLinkResources", - "ResourceKey": "subResourceName", - "ResourceKeySegment": "privateLinkResources", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Solution": { - "Name": "Solution", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/solutions/{solutionId}", - "Method": "GET", - "OperationID": "Solutions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get installed Solution details by Solution id." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/solutions/{solutionId}", - "Method": "PUT", - "OperationID": "Solutions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Install Or Update Solution." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/solutions/{solutionId}", - "Method": "PUT", - "OperationID": "Solutions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Install Or Update Solution." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/solutions/{solutionId}", - "Method": "DELETE", - "OperationID": "Solutions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Uninstall Solution." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/solutions", - "Method": "GET", - "OperationID": "Solutions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Get installed Solutions details." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "DataManagerForAgriculture" - ], - "SwaggerModelName": "Solution", - "ResourceType": "Microsoft.AgFoodPlatform/farmBeats/solutions", - "ResourceKey": "solutionId", - "ResourceKeySegment": "solutions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DataManagerForAgricultureSolution": { - "Name": "DataManagerForAgricultureSolution", - "GetOperations": [ - { - "Name": "Get", - "Path": "/providers/Microsoft.AgFoodPlatform/farmBeatsSolutionDefinitions/{dataManagerForAgricultureSolutionId}", - "Method": "GET", - "OperationID": "SolutionsDiscoverability_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get Data Manager For Agriculture solution by id." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/providers/Microsoft.AgFoodPlatform/farmBeatsSolutionDefinitions", - "Method": "GET", - "OperationID": "SolutionsDiscoverability_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Get list of Data Manager For Agriculture solutions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "TenantResource" - ], - "SwaggerModelName": "DataManagerForAgricultureSolution", - "ResourceType": "Microsoft.AgFoodPlatform/farmBeatsSolutionDefinitions", - "ResourceKey": "dataManagerForAgricultureSolutionId", - "ResourceKeySegment": "farmBeatsSolutionDefinitions", - "IsTrackedResource": false, - "IsTenantResource": true, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + "DataConnector": [ + { + "Name": "DataConnector", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}", + "Method": "GET", + "OperationID": "DataConnectors_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get specific Data Connector resource by DataConnectorName." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}", + "Method": "PUT", + "OperationID": "DataConnectors_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update Data Connector For MADMA resource." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}", + "Method": "PUT", + "OperationID": "DataConnectors_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update Data Connector For MADMA resource." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}", + "Method": "DELETE", + "OperationID": "DataConnectors_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Data Connectors with given dataConnector name." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors", + "Method": "GET", + "OperationID": "DataConnectors_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists the Data Connector Credentials for MADMA instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "DataManagerForAgriculture" + ], + "SwaggerModelName": "DataConnector", + "ResourceType": "Microsoft.AgFoodPlatform/farmBeats/dataConnectors", + "ResourceKey": "dataConnectorName", + "ResourceKeySegment": "dataConnectors", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DataManagerForAgricultureExtension": [ + { + "Name": "DataManagerForAgricultureExtension", + "GetOperations": [ + { + "Name": "Get", + "Path": "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/{dataManagerForAgricultureExtensionId}", + "Method": "GET", + "OperationID": "DataManagerForAgricultureExtensions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Data Manager For Agriculture extension." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions", + "Method": "GET", + "OperationID": "DataManagerForAgricultureExtensions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get list of Data Manager For Agriculture extension." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "TenantResource" + ], + "SwaggerModelName": "DataManagerForAgricultureExtension", + "ResourceType": "Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions", + "ResourceKey": "dataManagerForAgricultureExtensionId", + "ResourceKeySegment": "farmBeatsExtensionDefinitions", + "IsTrackedResource": false, + "IsTenantResource": true, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DataManagerForAgriculture": [ + { + "Name": "DataManagerForAgriculture", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}", + "Method": "GET", + "OperationID": "DataManagerForAgricultureResources_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get DataManagerForAgriculture resource." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}", + "Method": "PUT", + "OperationID": "DataManagerForAgricultureResources_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update Data Manager For Agriculture resource." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}", + "Method": "PATCH", + "OperationID": "DataManagerForAgricultureResources_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a Data Manager For Agriculture resource." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}", + "Method": "DELETE", + "OperationID": "DataManagerForAgricultureResources_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Data Manager For Agriculture resource." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats", + "Method": "GET", + "OperationID": "DataManagerForAgricultureResources_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists the DataManagerForAgriculture instances for a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats", + "Method": "GET", + "OperationID": "DataManagerForAgricultureResources_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists the DataManagerForAgriculture instances for a subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "DataManagerForAgriculture", + "ResourceType": "Microsoft.AgFoodPlatform/farmBeats", + "ResourceKey": "dataManagerForAgricultureResourceName", + "ResourceKeySegment": "farmBeats", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Extension": [ + { + "Name": "Extension", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions/{extensionId}", + "Method": "GET", + "OperationID": "Extensions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get installed extension details by extension id." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions/{extensionId}", + "Method": "PUT", + "OperationID": "Extensions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Install or Update extension. Additional Api Properties are merged patch and if the extension is updated to a new version then the obsolete entries will be auto deleted from Additional Api Properties." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions/{extensionId}", + "Method": "PUT", + "OperationID": "Extensions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Install or Update extension. Additional Api Properties are merged patch and if the extension is updated to a new version then the obsolete entries will be auto deleted from Additional Api Properties." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions/{extensionId}", + "Method": "DELETE", + "OperationID": "Extensions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Uninstall extension." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions", + "Method": "GET", + "OperationID": "Extensions_ListByDataManagerForAgriculture", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByDataManagerForAgriculture", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get installed extensions details." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "DataManagerForAgriculture" + ], + "SwaggerModelName": "Extension", + "ResourceType": "Microsoft.AgFoodPlatform/farmBeats/extensions", + "ResourceKey": "extensionId", + "ResourceKeySegment": "extensions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "PrivateEndpointConnection": [ + { + "Name": "PrivateEndpointConnection", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "GET", + "OperationID": "PrivateEndpointConnections_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Private endpoint connection object." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "PUT", + "OperationID": "PrivateEndpointConnections_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Approves or Rejects a Private endpoint connection request." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "PUT", + "OperationID": "PrivateEndpointConnections_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Approves or Rejects a Private endpoint connection request." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "DELETE", + "OperationID": "PrivateEndpointConnections_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete Private endpoint connection request." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateEndpointConnections", + "Method": "GET", + "OperationID": "PrivateEndpointConnections_ListByResource", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResource", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get list of Private endpoint connections." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "DataManagerForAgriculture" + ], + "SwaggerModelName": "PrivateEndpointConnection", + "ResourceType": "Microsoft.AgFoodPlatform/farmBeats/privateEndpointConnections", + "ResourceKey": "privateEndpointConnectionName", + "ResourceKeySegment": "privateEndpointConnections", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "PrivateLinkResource": [ + { + "Name": "PrivateLinkResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateLinkResources/{subResourceName}", + "Method": "GET", + "OperationID": "PrivateLinkResources_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Private link resource object." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/privateLinkResources", + "Method": "GET", + "OperationID": "PrivateLinkResources_ListByResource", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResource", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get list of Private link resources." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "DataManagerForAgriculture" + ], + "SwaggerModelName": "PrivateLinkResource", + "ResourceType": "Microsoft.AgFoodPlatform/farmBeats/privateLinkResources", + "ResourceKey": "subResourceName", + "ResourceKeySegment": "privateLinkResources", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Solution": [ + { + "Name": "Solution", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/solutions/{solutionId}", + "Method": "GET", + "OperationID": "Solutions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get installed Solution details by Solution id." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/solutions/{solutionId}", + "Method": "PUT", + "OperationID": "Solutions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Install Or Update Solution." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/solutions/{solutionId}", + "Method": "PUT", + "OperationID": "Solutions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Install Or Update Solution." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/solutions/{solutionId}", + "Method": "DELETE", + "OperationID": "Solutions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Uninstall Solution." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/solutions", + "Method": "GET", + "OperationID": "Solutions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get installed Solutions details." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "DataManagerForAgriculture" + ], + "SwaggerModelName": "Solution", + "ResourceType": "Microsoft.AgFoodPlatform/farmBeats/solutions", + "ResourceKey": "solutionId", + "ResourceKeySegment": "solutions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DataManagerForAgricultureSolution": [ + { + "Name": "DataManagerForAgricultureSolution", + "GetOperations": [ + { + "Name": "Get", + "Path": "/providers/Microsoft.AgFoodPlatform/farmBeatsSolutionDefinitions/{dataManagerForAgricultureSolutionId}", + "Method": "GET", + "OperationID": "SolutionsDiscoverability_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Data Manager For Agriculture solution by id." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/providers/Microsoft.AgFoodPlatform/farmBeatsSolutionDefinitions", + "Method": "GET", + "OperationID": "SolutionsDiscoverability_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get list of Data Manager For Agriculture solutions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "TenantResource" + ], + "SwaggerModelName": "DataManagerForAgricultureSolution", + "ResourceType": "Microsoft.AgFoodPlatform/farmBeatsSolutionDefinitions", + "ResourceKey": "dataManagerForAgricultureSolutionId", + "ResourceKeySegment": "farmBeatsSolutionDefinitions", + "IsTrackedResource": false, + "IsTenantResource": true, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-alertsmanagement/resources.json b/packages/extensions/openapi-to-typespec/test/arm-alertsmanagement/resources.json index b436860549..8f09345d2b 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-alertsmanagement/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-alertsmanagement/resources.json @@ -1,237 +1,243 @@ { "Resources": { - "AlertProcessingRule": { - "Name": "AlertProcessingRule", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}", - "Method": "GET", - "OperationID": "AlertProcessingRules_GetByName", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get an alert processing rule by name." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}", - "Method": "PUT", - "OperationID": "AlertProcessingRules_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update an alert processing rule." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}", - "Method": "PATCH", - "OperationID": "AlertProcessingRules_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Enable, disable, or update tags for an alert processing rule." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}", - "Method": "DELETE", - "OperationID": "AlertProcessingRules_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete an alert processing rule." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules", - "Method": "GET", - "OperationID": "AlertProcessingRules_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" + "AlertProcessingRule": [ + { + "Name": "AlertProcessingRule", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}", + "Method": "GET", + "OperationID": "AlertProcessingRules_GetByName", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get an alert processing rule by name." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}", + "Method": "PUT", + "OperationID": "AlertProcessingRules_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update an alert processing rule." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}", + "Method": "PATCH", + "OperationID": "AlertProcessingRules_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Enable, disable, or update tags for an alert processing rule." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}", + "Method": "DELETE", + "OperationID": "AlertProcessingRules_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete an alert processing rule." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules", + "Method": "GET", + "OperationID": "AlertProcessingRules_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List all alert processing rules in a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/actionRules", + "Method": "GET", + "OperationID": "AlertProcessingRules_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List all alert processing rules in a subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "AlertProcessingRule", + "ResourceType": "Microsoft.AlertsManagement/actionRules", + "ResourceKey": "alertProcessingRuleName", + "ResourceKeySegment": "actionRules", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Alert": [ + { + "Name": "Alert", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}", + "Method": "GET", + "OperationID": "Alerts_GetById", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get information related to a specific alert" + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts", + "Method": "GET", + "OperationID": "Alerts_GetAll", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "GetAll", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List all existing alerts, where the results can be filtered on the basis of multiple parameters (e.g. time range). The results can then be sorted on the basis specific fields, with the default being lastModifiedDateTime. " + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ChangeState", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}/changestate", + "Method": "POST", + "OperationID": "Alerts_ChangeState", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Change the state of an alert." }, - "Description": "List all alert processing rules in a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/actionRules", - "Method": "GET", - "OperationID": "AlertProcessingRules_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "GetHistory", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}/history", + "Method": "GET", + "OperationID": "Alerts_GetHistory", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the history of an alert, which captures any monitor condition changes (Fired/Resolved) and alert state changes (New/Acknowledged/Closed)." + } + ], + "Parents": [ + "SubscriptionResource" + ], + "SwaggerModelName": "Alert", + "ResourceType": "Microsoft.AlertsManagement/alerts", + "ResourceKey": "alertId", + "ResourceKeySegment": "alerts", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": true, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "SmartGroup": [ + { + "Name": "SmartGroup", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}", + "Method": "GET", + "OperationID": "SmartGroups_GetById", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get information related to a specific Smart Group." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups", + "Method": "GET", + "OperationID": "SmartGroups_GetAll", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "GetAll", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List all the Smart Groups within a specified subscription. " + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ChangeState", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/changeState", + "Method": "POST", + "OperationID": "SmartGroups_ChangeState", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Change the state of a Smart Group." }, - "Description": "List all alert processing rules in a subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "AlertProcessingRule", - "ResourceType": "Microsoft.AlertsManagement/actionRules", - "ResourceKey": "alertProcessingRuleName", - "ResourceKeySegment": "actionRules", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Alert": { - "Name": "Alert", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}", - "Method": "GET", - "OperationID": "Alerts_GetById", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get information related to a specific alert" - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts", - "Method": "GET", - "OperationID": "Alerts_GetAll", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "GetAll", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List all existing alerts, where the results can be filtered on the basis of multiple parameters (e.g. time range). The results can then be sorted on the basis specific fields, with the default being lastModifiedDateTime. " - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ChangeState", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}/changestate", - "Method": "POST", - "OperationID": "Alerts_ChangeState", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Change the state of an alert." - }, - { - "Name": "GetHistory", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts/{alertId}/history", - "Method": "GET", - "OperationID": "Alerts_GetHistory", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the history of an alert, which captures any monitor condition changes (Fired/Resolved) and alert state changes (New/Acknowledged/Closed)." - } - ], - "Parents": [ - "SubscriptionResource" - ], - "SwaggerModelName": "Alert", - "ResourceType": "Microsoft.AlertsManagement/alerts", - "ResourceKey": "alertId", - "ResourceKeySegment": "alerts", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "SmartGroup": { - "Name": "SmartGroup", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}", - "Method": "GET", - "OperationID": "SmartGroups_GetById", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get information related to a specific Smart Group." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups", - "Method": "GET", - "OperationID": "SmartGroups_GetAll", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "GetAll", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List all the Smart Groups within a specified subscription. " - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ChangeState", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/changeState", - "Method": "POST", - "OperationID": "SmartGroups_ChangeState", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Change the state of a Smart Group." - }, - { - "Name": "GetHistory", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/history", - "Method": "GET", - "OperationID": "SmartGroups_GetHistory", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the history a smart group, which captures any Smart Group state changes (New/Acknowledged/Closed) ." - } - ], - "Parents": [ - "SubscriptionResource" - ], - "SwaggerModelName": "SmartGroup", - "ResourceType": "Microsoft.AlertsManagement/smartGroups", - "ResourceKey": "smartGroupId", - "ResourceKeySegment": "smartGroups", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + { + "Name": "GetHistory", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/history", + "Method": "GET", + "OperationID": "SmartGroups_GetHistory", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the history a smart group, which captures any Smart Group state changes (New/Acknowledged/Closed) ." + } + ], + "Parents": [ + "SubscriptionResource" + ], + "SwaggerModelName": "SmartGroup", + "ResourceType": "Microsoft.AlertsManagement/smartGroups", + "ResourceKey": "smartGroupId", + "ResourceKeySegment": "smartGroups", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": true, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/resources.json b/packages/extensions/openapi-to-typespec/test/arm-analysisservices/resources.json index 6ca5e586b5..b14e801bc1 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-analysisservices/resources.json @@ -1,149 +1,151 @@ { "Resources": { - "AnalysisServicesServer": { - "Name": "AnalysisServicesServer", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}", - "Method": "GET", - "OperationID": "Servers_GetDetails", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets details about the specified Analysis Services server." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}", - "Method": "PUT", - "OperationID": "Servers_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Provisions the specified Analysis Services server based on the configuration specified in the request." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}", - "Method": "PATCH", - "OperationID": "Servers_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates the current state of the specified Analysis Services server." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}", - "Method": "DELETE", - "OperationID": "Servers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified Analysis Services server." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers", - "Method": "GET", - "OperationID": "Servers_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" + "AnalysisServicesServer": [ + { + "Name": "AnalysisServicesServer", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}", + "Method": "GET", + "OperationID": "Servers_GetDetails", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets details about the specified Analysis Services server." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}", + "Method": "PUT", + "OperationID": "Servers_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Provisions the specified Analysis Services server based on the configuration specified in the request." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}", + "Method": "PATCH", + "OperationID": "Servers_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates the current state of the specified Analysis Services server." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}", + "Method": "DELETE", + "OperationID": "Servers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified Analysis Services server." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers", + "Method": "GET", + "OperationID": "Servers_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets all the Analysis Services servers for the given resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/servers", + "Method": "GET", + "OperationID": "Servers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the Analysis Services servers for the given subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Suspend", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/suspend", + "Method": "POST", + "OperationID": "Servers_Suspend", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Suspends operation of the specified Analysis Services server instance." }, - "Description": "Gets all the Analysis Services servers for the given resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/servers", - "Method": "GET", - "OperationID": "Servers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "Resume", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/resume", + "Method": "POST", + "OperationID": "Servers_Resume", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Resumes operation of the specified Analysis Services server instance." }, - "Description": "Lists all the Analysis Services servers for the given subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Suspend", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/suspend", - "Method": "POST", - "OperationID": "Servers_Suspend", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Suspends operation of the specified Analysis Services server instance." - }, - { - "Name": "Resume", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/resume", - "Method": "POST", - "OperationID": "Servers_Resume", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Resumes operation of the specified Analysis Services server instance." - }, - { - "Name": "ListSkusForExisting", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/skus", - "Method": "GET", - "OperationID": "Servers_ListSkusForExisting", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListSkusForExisting", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListSkusForExisting", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/skus", + "Method": "GET", + "OperationID": "Servers_ListSkusForExisting", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListSkusForExisting", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists eligible SKUs for an Analysis Services resource." }, - "Description": "Lists eligible SKUs for an Analysis Services resource." - }, - { - "Name": "ListGatewayStatus", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/listGatewayStatus", - "Method": "POST", - "OperationID": "Servers_ListGatewayStatus", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Return the gateway status of the specified Analysis Services server instance." - }, - { - "Name": "DissociateGateway", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/dissociateGateway", - "Method": "POST", - "OperationID": "Servers_DissociateGateway", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Dissociates a Unified Gateway associated with the server." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "AnalysisServicesServer", - "ResourceType": "Microsoft.AnalysisServices/servers", - "ResourceKey": "serverName", - "ResourceKeySegment": "servers", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + { + "Name": "ListGatewayStatus", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/listGatewayStatus", + "Method": "POST", + "OperationID": "Servers_ListGatewayStatus", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Return the gateway status of the specified Analysis Services server instance." + }, + { + "Name": "DissociateGateway", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/dissociateGateway", + "Method": "POST", + "OperationID": "Servers_DissociateGateway", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Dissociates a Unified Gateway associated with the server." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "AnalysisServicesServer", + "ResourceType": "Microsoft.AnalysisServices/servers", + "ResourceKey": "serverName", + "ResourceKeySegment": "servers", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/swagger-output/swagger.json b/packages/extensions/openapi-to-typespec/test/arm-analysisservices/swagger-output/swagger.json index 448eb29f7e..99f4f53231 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/swagger-output/swagger.json +++ b/packages/extensions/openapi-to-typespec/test/arm-analysisservices/swagger-output/swagger.json @@ -41,7 +41,7 @@ }, "tags": [ { - "name": "AnalysisServicesServersOperationGroup" + "name": "Servers" } ], "paths": { @@ -89,7 +89,7 @@ "get": { "operationId": "Servers_List", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Lists all the Analysis Services servers for the given subscription.", "parameters": [ @@ -153,7 +153,7 @@ "get": { "operationId": "Servers_ListByResourceGroup", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Gets all the Analysis Services servers for the given resource group.", "parameters": [ @@ -192,7 +192,7 @@ "get": { "operationId": "Servers_GetDetails", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Gets details about the specified Analysis Services server.", "parameters": [ @@ -239,7 +239,7 @@ "put": { "operationId": "Servers_Create", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Provisions the specified Analysis Services server based on the configuration specified in the request.", "parameters": [ @@ -333,7 +333,7 @@ "patch": { "operationId": "Servers_Update", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Updates the current state of the specified Analysis Services server.", "parameters": [ @@ -407,7 +407,7 @@ "delete": { "operationId": "Servers_Delete", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Deletes the specified Analysis Services server.", "parameters": [ @@ -474,7 +474,7 @@ "post": { "operationId": "Servers_DissociateGateway", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Dissociates a Unified Gateway associated with the server.", "parameters": [ @@ -520,7 +520,7 @@ "post": { "operationId": "Servers_ListGatewayStatus", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Return the gateway status of the specified Analysis Services server instance.", "parameters": [ @@ -569,7 +569,7 @@ "post": { "operationId": "Servers_Resume", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Resumes operation of the specified Analysis Services server instance.", "parameters": [ @@ -633,7 +633,7 @@ "get": { "operationId": "Servers_ListSkusForExisting", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Lists eligible SKUs for an Analysis Services resource.", "parameters": [ @@ -682,7 +682,7 @@ "post": { "operationId": "Servers_Suspend", "tags": [ - "AnalysisServicesServersOperationGroup" + "Servers" ], "description": "Suspends operation of the specified Analysis Services server instance.", "parameters": [ diff --git a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/AnalysisServicesServer.tsp b/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/AnalysisServicesServer.tsp index 192b404549..787e20cbf4 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/AnalysisServicesServer.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/AnalysisServicesServer.tsp @@ -24,21 +24,17 @@ model AnalysisServicesServer } @armResourceOperations -interface AnalysisServicesServersOperationGroup { +interface Servers { /** * Gets details about the specified Analysis Services server. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Servers_GetDetails") getDetails is ArmResourceRead; /** * Provisions the specified Analysis Services server based on the configuration specified in the request. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/no-response-body" "For backward compatibility" - @operationId("Servers_Create") create is ArmResourceCreateOrReplaceAsync< AnalysisServicesServer, Response = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< @@ -53,9 +49,7 @@ interface AnalysisServicesServersOperationGroup { /** * Updates the current state of the specified Analysis Services server. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @parameterVisibility - @operationId("Servers_Update") update is ArmCustomPatchAsync< AnalysisServicesServer, PatchModel = AnalysisServicesServerUpdateParameters @@ -64,9 +58,7 @@ interface AnalysisServicesServersOperationGroup { /** * Deletes the specified Analysis Services server. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" - @operationId("Servers_Delete") delete is ArmResourceDeleteWithoutOkAsync< AnalysisServicesServer, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse @@ -75,8 +67,6 @@ interface AnalysisServicesServersOperationGroup { /** * Gets all the Analysis Services servers for the given resource group. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Servers_ListByResourceGroup") listByResourceGroup is ArmResourceListByParent< AnalysisServicesServer, Response = ArmResponse @@ -85,8 +75,6 @@ interface AnalysisServicesServersOperationGroup { /** * Lists all the Analysis Services servers for the given subscription. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Servers_List") list is ArmListBySubscription< AnalysisServicesServer, Response = ArmResponse @@ -95,24 +83,18 @@ interface AnalysisServicesServersOperationGroup { /** * Suspends operation of the specified Analysis Services server instance. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Servers_Suspend") suspend is ArmResourceActionAsync; /** * Resumes operation of the specified Analysis Services server instance. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Servers_Resume") resume is ArmResourceActionAsync; /** * Lists eligible SKUs for an Analysis Services resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @get @action("skus") - @operationId("Servers_ListSkusForExisting") listSkusForExisting is ArmResourceActionSync< AnalysisServicesServer, void, @@ -122,8 +104,6 @@ interface AnalysisServicesServersOperationGroup { /** * Return the gateway status of the specified Analysis Services server instance. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Servers_ListGatewayStatus") listGatewayStatus is ArmResourceActionSync< AnalysisServicesServer, void, @@ -133,8 +113,6 @@ interface AnalysisServicesServersOperationGroup { /** * Dissociates a Unified Gateway associated with the server. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Servers_DissociateGateway") dissociateGateway is ArmResourceActionSync< AnalysisServicesServer, void, @@ -150,9 +128,9 @@ interface AnalysisServicesServersOperationGroup { @@doc(AnalysisServicesServer.properties, "Properties of the provision operation request." ); -@@doc(AnalysisServicesServersOperationGroup.create::parameters.resource, +@@doc(Servers.create::parameters.resource, "Contains the information used to provision the Analysis Services server." ); -@@doc(AnalysisServicesServersOperationGroup.update::parameters.properties, +@@doc(Servers.update::parameters.properties, "Request object that contains the updated information for the server." ); diff --git a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/client.tsp b/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/client.tsp index d6df1f29d5..577b55bf66 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/client.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/client.tsp @@ -7,11 +7,7 @@ using Azure.ResourceManager.Analysis; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(AnalysisServicesServerUpdateParameters.properties); -@@clientName(AnalysisServicesServersOperationGroup.create::parameters.resource, - "serverParameters" -); -@@clientName(AnalysisServicesServersOperationGroup.update::parameters.properties, - "serverUpdateParameters" -); +@@clientName(Servers.create::parameters.resource, "serverParameters"); +@@clientName(Servers.update::parameters.properties, "serverUpdateParameters"); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(AnalysisServicesServer.properties); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/resources.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/resources.json index 564a8b22e1..f010ca73f5 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/resources.json @@ -1,4505 +1,5192 @@ { "Resources": { - "ApiContract": { - "Name": "ApiContract", - "GetOperations": [ - { - "Name": "Get", + "ApiContract": [ + { + "Name": "ApiContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + "Method": "GET", + "OperationID": "Api_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the API specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", - "Method": "GET", - "OperationID": "Api_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the API specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", - "Method": "HEAD", - "OperationID": "Api_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the API specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", - "Method": "PUT", - "OperationID": "Api_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates new or updates existing specified API of the API Management service instance." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", - "Method": "PATCH", - "OperationID": "Api_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the specified API of the API Management service instance." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", - "Method": "DELETE", - "OperationID": "Api_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified API of the API Management service instance." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis", - "Method": "GET", - "OperationID": "Api_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all APIs of the API Management service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListByService", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions", - "Method": "GET", - "OperationID": "ApiRevision_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all revisions of an API." - }, - { - "Name": "ListByApis", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", - "Method": "GET", - "OperationID": "ApiProduct_ListByApis", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByApis", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all Products, which the API is part of." - }, - { - "Name": "ListByTags", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", - "Method": "GET", - "OperationID": "Operation_ListByTags", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByTags", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of operations associated with tags." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "ApiContract", - "ResourceType": "Microsoft.ApiManagement/service/apis", - "ResourceKey": "apiId", - "ResourceKeySegment": "apis", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApiReleaseContract": { - "Name": "ApiReleaseContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", - "Method": "GET", - "OperationID": "ApiRelease_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Returns the details of an API release." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", - "Method": "HEAD", - "OperationID": "ApiRelease_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Returns the etag of an API release." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", - "Method": "PUT", - "OperationID": "ApiRelease_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Release for the API." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", - "Method": "PATCH", - "OperationID": "ApiRelease_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of the release of the API specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", - "Method": "DELETE", - "OperationID": "ApiRelease_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified release in the API." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases", - "Method": "GET", - "OperationID": "ApiRelease_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all releases of an API. An API release is created when making an API Revision current. Releases are also used to rollback to previous revisions. Results will be paged and can be constrained by the $top and $skip parameters." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiContract" - ], - "SwaggerModelName": "ApiReleaseContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/releases", - "ResourceKey": "releaseId", - "ResourceKeySegment": "releases", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "OperationContract": { - "Name": "OperationContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", - "Method": "GET", - "OperationID": "ApiOperation_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the API Operation specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", - "Method": "HEAD", - "OperationID": "ApiOperation_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the API operation specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", - "Method": "PUT", - "OperationID": "ApiOperation_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new operation in the API or updates an existing one." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", - "Method": "PATCH", - "OperationID": "ApiOperation_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of the operation in the API specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", - "Method": "DELETE", - "OperationID": "ApiOperation_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified operation in the API." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations", - "Method": "GET", - "OperationID": "ApiOperation_ListByApi", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByApi", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of the operations for the specified API." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiContract" - ], - "SwaggerModelName": "OperationContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/operations", - "ResourceKey": "operationId", - "ResourceKeySegment": "operations", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "PolicyContractFixMe": { - "Name": "PolicyContractFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "PolicyContract": { - "Name": "PolicyContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", - "Method": "GET", - "OperationID": "ApiOperationPolicy_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the policy configuration at the API Operation level." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", - "Method": "HEAD", - "OperationID": "ApiOperationPolicy_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the API operation policy specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", - "Method": "PUT", - "OperationID": "ApiOperationPolicy_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates policy configuration for the API Operation level." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", - "Method": "PUT", - "OperationID": "ApiOperationPolicy_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates policy configuration for the API Operation level." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", - "Method": "DELETE", - "OperationID": "ApiOperationPolicy_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the policy configuration at the Api Operation." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies", - "Method": "GET", - "OperationID": "ApiOperationPolicy_ListByOperation", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByOperation", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Get the list of policy configuration at the API Operation level." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "OperationContract" - ], - "SwaggerModelName": "PolicyContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/operations/policies", - "ResourceKey": "policyId", - "ResourceKeySegment": "policies", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "TagContractFixMe": { - "Name": "TagContractFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "TagContract": { - "Name": "TagContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", - "Method": "GET", - "OperationID": "Tag_GetByOperation", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get tag associated with the Operation." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", - "Method": "HEAD", - "OperationID": "Tag_GetEntityStateByOperation", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state version of the tag specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", - "Method": "PUT", - "OperationID": "Tag_AssignToOperation", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Assign tag to the Operation." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", - "Method": "PUT", - "OperationID": "Tag_AssignToOperation", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Assign tag to the Operation." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", - "Method": "DELETE", - "OperationID": "Tag_DetachFromOperation", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Detach the tag from the Operation." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", - "Method": "GET", - "OperationID": "Tag_ListByOperation", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByOperation", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all Tags associated with the Operation." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "OperationContract" - ], - "SwaggerModelName": "TagContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/operations/tags", - "ResourceKey": "tagId", - "ResourceKeySegment": "tags", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "SchemaContract": { - "Name": "SchemaContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", - "Method": "GET", - "OperationID": "ApiSchema_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the schema configuration at the API level." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", - "Method": "HEAD", - "OperationID": "ApiSchema_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the schema specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", - "Method": "PUT", - "OperationID": "ApiSchema_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates schema configuration for the API." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", - "Method": "PUT", - "OperationID": "ApiSchema_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates schema configuration for the API." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", - "Method": "DELETE", - "OperationID": "ApiSchema_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the schema configuration at the Api." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", - "Method": "GET", - "OperationID": "ApiSchema_ListByApi", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByApi", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Get the schema configuration at the API level." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiContract" - ], - "SwaggerModelName": "SchemaContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/schemas", - "ResourceKey": "schemaId", - "ResourceKeySegment": "schemas", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DiagnosticContractFixMe": { - "Name": "DiagnosticContractFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DiagnosticContract": { - "Name": "DiagnosticContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", - "Method": "GET", - "OperationID": "ApiDiagnostic_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the Diagnostic for an API specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", - "Method": "HEAD", - "OperationID": "ApiDiagnostic_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", - "Method": "PUT", - "OperationID": "ApiDiagnostic_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Diagnostic for an API or updates an existing one." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", - "Method": "PATCH", - "OperationID": "ApiDiagnostic_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of the Diagnostic for an API specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", - "Method": "DELETE", - "OperationID": "ApiDiagnostic_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified Diagnostic from an API." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", - "Method": "GET", - "OperationID": "ApiDiagnostic_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all diagnostics of an API." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiContract" - ], - "SwaggerModelName": "DiagnosticContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/diagnostics", - "ResourceKey": "diagnosticId", - "ResourceKeySegment": "diagnostics", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "IssueContractFixMe": { - "Name": "IssueContractFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "IssueContract": { - "Name": "IssueContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", - "Method": "GET", - "OperationID": "ApiIssue_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the Issue for an API specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", - "Method": "HEAD", - "OperationID": "ApiIssue_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Issue for an API specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", - "Method": "PUT", - "OperationID": "ApiIssue_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Issue for an API or updates an existing one." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", - "Method": "PATCH", - "OperationID": "ApiIssue_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates an existing issue for an API." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", - "Method": "DELETE", - "OperationID": "ApiIssue_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified Issue from an API." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", - "Method": "GET", - "OperationID": "ApiIssue_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all issues associated with the specified API." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiContract" - ], - "SwaggerModelName": "IssueContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/issues", - "ResourceKey": "issueId", - "ResourceKeySegment": "issues", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "IssueCommentContract": { - "Name": "IssueCommentContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", - "Method": "GET", - "OperationID": "ApiIssueComment_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the issue Comment for an API specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", - "Method": "HEAD", - "OperationID": "ApiIssueComment_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", - "Method": "PUT", - "OperationID": "ApiIssueComment_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Comment for the Issue in an API or updates an existing one." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", - "Method": "PUT", - "OperationID": "ApiIssueComment_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Comment for the Issue in an API or updates an existing one." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", - "Method": "DELETE", - "OperationID": "ApiIssueComment_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified comment from an Issue." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", - "Method": "GET", - "OperationID": "ApiIssueComment_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all comments for the Issue associated with the specified API." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "IssueContract" - ], - "SwaggerModelName": "IssueCommentContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/issues/comments", - "ResourceKey": "commentId", - "ResourceKeySegment": "comments", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "IssueAttachmentContract": { - "Name": "IssueAttachmentContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", - "Method": "GET", - "OperationID": "ApiIssueAttachment_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the issue Attachment for an API specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", - "Method": "HEAD", - "OperationID": "ApiIssueAttachment_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", - "Method": "PUT", - "OperationID": "ApiIssueAttachment_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Attachment for the Issue in an API or updates an existing one." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", - "Method": "PUT", - "OperationID": "ApiIssueAttachment_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Attachment for the Issue in an API or updates an existing one." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", - "Method": "DELETE", - "OperationID": "ApiIssueAttachment_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified comment from an Issue." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", - "Method": "GET", - "OperationID": "ApiIssueAttachment_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all attachments for the Issue associated with the specified API." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "IssueContract" - ], - "SwaggerModelName": "IssueAttachmentContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/issues/attachments", - "ResourceKey": "attachmentId", - "ResourceKeySegment": "attachments", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "TagDescriptionContract": { - "Name": "TagDescriptionContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", - "Method": "GET", - "OperationID": "ApiTagDescription_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get Tag description in scope of API" - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", - "Method": "HEAD", - "OperationID": "ApiTagDescription_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state version of the tag specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", - "Method": "PUT", - "OperationID": "ApiTagDescription_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create/Update tag description in scope of the Api." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", - "Method": "PUT", - "OperationID": "ApiTagDescription_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create/Update tag description in scope of the Api." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", - "Method": "DELETE", - "OperationID": "ApiTagDescription_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete tag description for the Api." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", - "Method": "GET", - "OperationID": "ApiTagDescription_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiContract" - ], - "SwaggerModelName": "TagDescriptionContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/tagDescriptions", - "ResourceKey": "tagDescriptionId", - "ResourceKeySegment": "tagDescriptions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApiVersionSetContract": { - "Name": "ApiVersionSetContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", - "Method": "GET", - "OperationID": "ApiVersionSet_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the Api Version Set specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", - "Method": "HEAD", - "OperationID": "ApiVersionSet_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Api Version Set specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", - "Method": "PUT", - "OperationID": "ApiVersionSet_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or Updates a Api Version Set." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", - "Method": "PATCH", - "OperationID": "ApiVersionSet_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of the Api VersionSet specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", - "Method": "DELETE", - "OperationID": "ApiVersionSet_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific Api Version Set." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", - "Method": "GET", - "OperationID": "ApiVersionSet_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of API Version Sets in the specified service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "ApiVersionSetContract", - "ResourceType": "Microsoft.ApiManagement/service/apiVersionSets", - "ResourceKey": "versionSetId", - "ResourceKeySegment": "apiVersionSets", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "AuthorizationServerContract": { - "Name": "AuthorizationServerContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", - "Method": "GET", - "OperationID": "AuthorizationServer_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the authorization server specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", - "Method": "HEAD", - "OperationID": "AuthorizationServer_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the authorizationServer specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", - "Method": "PUT", - "OperationID": "AuthorizationServer_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates new authorization server or updates an existing authorization server." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", - "Method": "PATCH", - "OperationID": "AuthorizationServer_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of the authorization server specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", - "Method": "DELETE", - "OperationID": "AuthorizationServer_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific authorization server instance." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", - "Method": "GET", - "OperationID": "AuthorizationServer_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of authorization servers defined within a service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListSecrets", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", - "Method": "POST", - "OperationID": "AuthorizationServer_ListSecrets", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the client secret details of the authorization server." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "AuthorizationServerContract", - "ResourceType": "Microsoft.ApiManagement/service/authorizationServers", - "ResourceKey": "authsid", - "ResourceKeySegment": "authorizationServers", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "BackendContract": { - "Name": "BackendContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", - "Method": "GET", - "OperationID": "Backend_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the backend specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", - "Method": "HEAD", - "OperationID": "Backend_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the backend specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", - "Method": "PUT", - "OperationID": "Backend_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or Updates a backend." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", - "Method": "PATCH", - "OperationID": "Backend_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates an existing backend." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", - "Method": "DELETE", - "OperationID": "Backend_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified backend." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", - "Method": "GET", - "OperationID": "Backend_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of backends in the specified service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Reconnect", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", - "Method": "POST", - "OperationID": "Backend_Reconnect", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "BackendContract", - "ResourceType": "Microsoft.ApiManagement/service/backends", - "ResourceKey": "backendId", - "ResourceKeySegment": "backends", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CacheContract": { - "Name": "CacheContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", - "Method": "GET", - "OperationID": "Cache_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the Cache specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", - "Method": "HEAD", - "OperationID": "Cache_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Cache specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", - "Method": "PUT", - "OperationID": "Cache_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates an External Cache to be used in Api Management instance." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", - "Method": "PATCH", - "OperationID": "Cache_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of the cache specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", - "Method": "DELETE", - "OperationID": "Cache_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific Cache." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches", - "Method": "GET", - "OperationID": "Cache_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of all external Caches in the specified service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "CacheContract", - "ResourceType": "Microsoft.ApiManagement/service/caches", - "ResourceKey": "cacheId", - "ResourceKeySegment": "caches", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CertificateContract": { - "Name": "CertificateContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", - "Method": "GET", - "OperationID": "Certificate_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the certificate specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", - "Method": "HEAD", - "OperationID": "Certificate_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the certificate specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", - "Method": "PUT", - "OperationID": "Certificate_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates the certificate being used for authentication with the backend." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", - "Method": "PUT", - "OperationID": "Certificate_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates the certificate being used for authentication with the backend." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", - "Method": "DELETE", - "OperationID": "Certificate_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific certificate." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", - "Method": "GET", - "OperationID": "Certificate_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of all certificates in the specified service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "RefreshSecret", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}/refreshSecret", - "Method": "POST", - "OperationID": "Certificate_RefreshSecret", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "From KeyVault, Refresh the certificate being used for authentication with the backend." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "CertificateContract", - "ResourceType": "Microsoft.ApiManagement/service/certificates", - "ResourceKey": "certificateId", - "ResourceKeySegment": "certificates", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ContentTypeContract": { - "Name": "ContentTypeContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", - "Method": "GET", - "OperationID": "ContentType_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", - "Method": "PUT", - "OperationID": "ContentType_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", - "Method": "PUT", - "OperationID": "ContentType_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", - "Method": "DELETE", - "OperationID": "ContentType_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes", - "Method": "GET", - "OperationID": "ContentType_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "ContentTypeContract", - "ResourceType": "Microsoft.ApiManagement/service/contentTypes", - "ResourceKey": "contentTypeId", - "ResourceKeySegment": "contentTypes", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ContentItemContract": { - "Name": "ContentItemContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", - "Method": "GET", - "OperationID": "ContentItem_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Returns the developer portal's content item specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", - "Method": "HEAD", - "OperationID": "ContentItem_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Returns the entity state (ETag) version of the developer portal's content item specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", - "Method": "PUT", - "OperationID": "ContentItem_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new developer portal's content item specified by the provided content type." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", - "Method": "PUT", - "OperationID": "ContentItem_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new developer portal's content item specified by the provided content type." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", - "Method": "DELETE", - "OperationID": "ContentItem_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Removes the specified developer portal's content item." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems", - "Method": "GET", - "OperationID": "ContentItem_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists developer portal's content items specified by the provided content type." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ContentTypeContract" - ], - "SwaggerModelName": "ContentItemContract", - "ResourceType": "Microsoft.ApiManagement/service/contentTypes/contentItems", - "ResourceKey": "contentItemId", - "ResourceKeySegment": "contentItems", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DeletedServiceContract": { - "Name": "DeletedServiceContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", - "Method": "GET", - "OperationID": "DeletedServices_GetByName", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get soft-deleted Api Management Service by name." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", - "Method": "DELETE", - "OperationID": "DeletedServices_Purge", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Purges Api Management Service (deletes it with no option to undelete)." - } - ], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "SubscriptionResource" - ], - "SwaggerModelName": "DeletedServiceContract", - "ResourceType": "Microsoft.ApiManagement/locations/deletedservices", - "ResourceKey": "serviceName", - "ResourceKeySegment": "deletedservices", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApiManagementServiceResource": { - "Name": "ApiManagementServiceResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", - "Method": "GET", - "OperationID": "ApiManagementService_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets an API Management service resource description." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", - "Method": "PUT", - "OperationID": "ApiManagementService_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates an API Management service. This is long running operation and could take several minutes to complete." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", - "Method": "PATCH", - "OperationID": "ApiManagementService_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates an existing API Management service." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", - "Method": "DELETE", - "OperationID": "ApiManagementService_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes an existing API Management service." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", - "Method": "GET", - "OperationID": "ApiManagementService_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List all API Management services within a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", - "Method": "GET", - "OperationID": "ApiManagementService_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all API Management services within an Azure subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListByTags", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", - "Method": "GET", - "OperationID": "Api_ListByTags", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByTags", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of apis associated with tags." - }, - { - "Name": "PerformConnectivityCheckAsync", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/connectivityCheck", - "Method": "POST", - "OperationID": "PerformConnectivityCheckAsync", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it." - }, - { - "Name": "ListAvailableServiceSkus", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus", - "Method": "GET", - "OperationID": "ApiManagementServiceSkus_ListAvailableServiceSkus", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListAvailableServiceSkus", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets all available SKU for a given API Management service" - }, - { - "Name": "Restore", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", - "Method": "POST", - "OperationID": "ApiManagementService_Restore", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete." - }, - { - "Name": "Backup", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup", - "Method": "POST", - "OperationID": "ApiManagementService_Backup", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete." - }, - { - "Name": "GetSsoToken", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken", - "Method": "POST", - "OperationID": "ApiManagementService_GetSsoToken", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes." - }, - { - "Name": "ApplyNetworkConfigurationUpdates", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", - "Method": "POST", - "OperationID": "ApiManagementService_ApplyNetworkConfigurationUpdates", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes." - }, - { - "Name": "ListByService", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/networkstatus", - "Method": "GET", - "OperationID": "NetworkStatus_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService." - }, - { - "Name": "ListByLocation", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", - "Method": "GET", - "OperationID": "NetworkStatus_ListByLocation", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService." - }, - { - "Name": "ListByService", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/outboundNetworkDependenciesEndpoints", - "Method": "GET", - "OperationID": "OutboundNetworkDependenciesEndpoints_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets the network endpoints of all outbound dependencies of a ApiManagement service." - }, - { - "Name": "ListByService", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", - "Method": "GET", - "OperationID": "PolicyDescription_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all policy descriptions." - }, - { - "Name": "ListByService", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings", - "Method": "GET", - "OperationID": "PortalSettings_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of portalsettings defined within a service instance.." - }, - { - "Name": "ListByTags", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/productsByTags", - "Method": "GET", - "OperationID": "Product_ListByTags", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByTags", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of products associated with tags." - }, - { - "Name": "ListByService", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", - "Method": "GET", - "OperationID": "QuotaByCounterKeys_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet." - }, - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", - "Method": "PATCH", - "OperationID": "QuotaByCounterKeys_Update", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "Update", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values." - }, - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", - "Method": "GET", - "OperationID": "QuotaByPeriodKeys_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance." - }, - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", - "Method": "PATCH", - "OperationID": "QuotaByPeriodKeys_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates an existing quota counter value in the specified service instance." - }, - { - "Name": "ListByService", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions", - "Method": "GET", - "OperationID": "Region_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all azure regions in which the service exists." - }, - { - "Name": "ListByApi", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", - "Method": "GET", - "OperationID": "Reports_ListByApi", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByApi", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists report records by API." - }, - { - "Name": "ListByUser", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", - "Method": "GET", - "OperationID": "Reports_ListByUser", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByUser", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists report records by User." - }, - { - "Name": "ListByOperation", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", - "Method": "GET", - "OperationID": "Reports_ListByOperation", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByOperation", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists report records by API Operations." - }, - { - "Name": "ListByProduct", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", - "Method": "GET", - "OperationID": "Reports_ListByProduct", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByProduct", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists report records by Product." - }, - { - "Name": "ListByGeo", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", - "Method": "GET", - "OperationID": "Reports_ListByGeo", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByGeo", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists report records by geography." - }, - { - "Name": "ListBySubscription", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", - "Method": "GET", - "OperationID": "Reports_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists report records by subscription." - }, - { - "Name": "ListByTime", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", - "Method": "GET", - "OperationID": "Reports_ListByTime", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByTime", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists report records by Time." - }, - { - "Name": "ListByRequest", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", - "Method": "GET", - "OperationID": "Reports_ListByRequest", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByRequest", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists report records by Request." - }, - { - "Name": "ListByService", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources", - "Method": "GET", - "OperationID": "TagResource_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of resources associated with tags." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "ApiManagementServiceResource", - "ResourceType": "Microsoft.ApiManagement/service", - "ResourceKey": "serviceName", - "ResourceKeySegment": "service", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "EmailTemplateContract": { - "Name": "EmailTemplateContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", - "Method": "GET", - "OperationID": "EmailTemplate_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the email template specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", - "Method": "HEAD", - "OperationID": "EmailTemplate_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the email template specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", - "Method": "PUT", - "OperationID": "EmailTemplate_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates an Email Template." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", - "Method": "PATCH", - "OperationID": "EmailTemplate_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates API Management email template" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", - "Method": "DELETE", - "OperationID": "EmailTemplate_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Reset the Email Template to default template provided by the API Management service instance." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates", - "Method": "GET", - "OperationID": "EmailTemplate_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets all email templates" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "EmailTemplateContract", - "ResourceType": "Microsoft.ApiManagement/service/templates", - "ResourceKey": "templateName", - "ResourceKeySegment": "templates", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "GatewayContract": { - "Name": "GatewayContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", - "Method": "GET", - "OperationID": "Gateway_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the Gateway specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", - "Method": "HEAD", - "OperationID": "Gateway_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Gateway specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", - "Method": "PUT", - "OperationID": "Gateway_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates a Gateway to be used in Api Management instance." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", - "Method": "PATCH", - "OperationID": "Gateway_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of the gateway specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", - "Method": "DELETE", - "OperationID": "Gateway_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific Gateway." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways", - "Method": "GET", - "OperationID": "Gateway_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of gateways registered with service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listKeys", - "Method": "POST", - "OperationID": "Gateway_ListKeys", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves gateway keys." - }, - { - "Name": "RegenerateKey", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/regenerateKey", - "Method": "POST", - "OperationID": "Gateway_RegenerateKey", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Regenerates specified gateway key invalidating any tokens created with it." - }, - { - "Name": "GenerateToken", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken", - "Method": "POST", - "OperationID": "Gateway_GenerateToken", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the Shared Access Authorization Token for the gateway." - }, - { - "Name": "ListByService", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis", - "Method": "GET", - "OperationID": "GatewayApi_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of the APIs associated with a gateway." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", "Method": "HEAD", - "OperationID": "GatewayApi_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Checks that API entity specified by identifier is associated with the Gateway entity." - }, - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", - "Method": "PUT", - "OperationID": "GatewayApi_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Adds an API to the specified Gateway." - }, - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", - "Method": "DELETE", - "OperationID": "GatewayApi_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified API from the specified Gateway." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "GatewayContract", - "ResourceType": "Microsoft.ApiManagement/service/gateways", - "ResourceKey": "gatewayId", - "ResourceKeySegment": "gateways", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "GatewayHostnameConfigurationContract": { - "Name": "GatewayHostnameConfigurationContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", - "Method": "GET", - "OperationID": "GatewayHostnameConfiguration_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get details of a hostname configuration" - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", - "Method": "HEAD", - "OperationID": "GatewayHostnameConfiguration_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Checks that hostname configuration entity specified by identifier exists for specified Gateway entity." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", - "Method": "PUT", - "OperationID": "GatewayHostnameConfiguration_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates of updates hostname configuration for a Gateway." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", - "Method": "PUT", - "OperationID": "GatewayHostnameConfiguration_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates of updates hostname configuration for a Gateway." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", - "Method": "DELETE", - "OperationID": "GatewayHostnameConfiguration_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified hostname configuration from the specified Gateway." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations", - "Method": "GET", - "OperationID": "GatewayHostnameConfiguration_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the collection of hostname configurations for the specified gateway." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "GatewayContract" - ], - "SwaggerModelName": "GatewayHostnameConfigurationContract", - "ResourceType": "Microsoft.ApiManagement/service/gateways/hostnameConfigurations", - "ResourceKey": "hcId", - "ResourceKeySegment": "hostnameConfigurations", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "GatewayCertificateAuthorityContract": { - "Name": "GatewayCertificateAuthorityContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", - "Method": "GET", - "OperationID": "GatewayCertificateAuthority_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get assigned Gateway Certificate Authority details." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", - "Method": "HEAD", - "OperationID": "GatewayCertificateAuthority_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Checks if Certificate entity is assigned to Gateway entity as Certificate Authority." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", - "Method": "PUT", - "OperationID": "GatewayCertificateAuthority_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Assign Certificate entity to Gateway entity as Certificate Authority." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", - "Method": "PUT", - "OperationID": "GatewayCertificateAuthority_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Assign Certificate entity to Gateway entity as Certificate Authority." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", - "Method": "DELETE", - "OperationID": "GatewayCertificateAuthority_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Remove relationship between Certificate Authority and Gateway entity." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities", - "Method": "GET", - "OperationID": "GatewayCertificateAuthority_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the collection of Certificate Authorities for the specified Gateway entity." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "GatewayContract" - ], - "SwaggerModelName": "GatewayCertificateAuthorityContract", - "ResourceType": "Microsoft.ApiManagement/service/gateways/certificateAuthorities", - "ResourceKey": "certificateId", - "ResourceKeySegment": "certificateAuthorities", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "GroupContract": { - "Name": "GroupContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", - "Method": "GET", - "OperationID": "Group_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the group specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", - "Method": "HEAD", - "OperationID": "Group_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the group specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", - "Method": "PUT", - "OperationID": "Group_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or Updates a group." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", - "Method": "PATCH", - "OperationID": "Group_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of the group specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", - "Method": "DELETE", - "OperationID": "Group_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific group of the API Management service instance." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups", - "Method": "GET", - "OperationID": "Group_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of groups defined within a service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "List", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", - "Method": "GET", - "OperationID": "GroupUser_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of user entities associated with the group." - }, - { - "Name": "CheckEntityExists", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", - "Method": "HEAD", - "OperationID": "GroupUser_CheckEntityExists", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Checks that user entity specified by identifier is associated with the group entity." - }, - { - "Name": "Create", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", - "Method": "PUT", - "OperationID": "GroupUser_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Add existing user to existing group" - }, - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", - "Method": "DELETE", - "OperationID": "GroupUser_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Remove existing user from existing group." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "GroupContract", - "ResourceType": "Microsoft.ApiManagement/service/groups", - "ResourceKey": "groupId", - "ResourceKeySegment": "groups", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "IdentityProviderContract": { - "Name": "IdentityProviderContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", - "Method": "GET", - "OperationID": "IdentityProvider_Get", + "OperationID": "Api_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the configuration details of the identity Provider configured in specified service instance." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", - "Method": "HEAD", - "OperationID": "IdentityProvider_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the identityProvider specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", - "Method": "PUT", - "OperationID": "IdentityProvider_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or Updates the IdentityProvider configuration." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", - "Method": "PATCH", - "OperationID": "IdentityProvider_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates an existing IdentityProvider configuration." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", - "Method": "DELETE", - "OperationID": "IdentityProvider_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified identity provider configuration." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders", - "Method": "GET", - "OperationID": "IdentityProvider_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of Identity Provider configured in the specified service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListSecrets", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets", - "Method": "POST", - "OperationID": "IdentityProvider_ListSecrets", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the client secret details of the Identity Provider." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "IdentityProviderContract", - "ResourceType": "Microsoft.ApiManagement/service/identityProviders", - "ResourceKey": "identityProviderName", - "ResourceKeySegment": "identityProviders", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "LoggerContract": { - "Name": "LoggerContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", - "Method": "GET", - "OperationID": "Logger_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the logger specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", - "Method": "HEAD", - "OperationID": "Logger_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the logger specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", - "Method": "PUT", - "OperationID": "Logger_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or Updates a logger." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", - "Method": "PATCH", - "OperationID": "Logger_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates an existing logger." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", - "Method": "DELETE", - "OperationID": "Logger_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified logger." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers", - "Method": "GET", - "OperationID": "Logger_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of loggers in the specified service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "LoggerContract", - "ResourceType": "Microsoft.ApiManagement/service/loggers", - "ResourceKey": "loggerId", - "ResourceKeySegment": "loggers", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "NamedValueContract": { - "Name": "NamedValueContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", - "Method": "GET", - "OperationID": "NamedValue_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the named value specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", - "Method": "HEAD", - "OperationID": "NamedValue_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the named value specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", - "Method": "PUT", - "OperationID": "NamedValue_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates named value." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", - "Method": "PATCH", - "OperationID": "NamedValue_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates the specific named value." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", - "Method": "DELETE", - "OperationID": "NamedValue_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific named value from the API Management service instance." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues", - "Method": "GET", - "OperationID": "NamedValue_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of named values defined within a service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListValue", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/listValue", - "Method": "POST", - "OperationID": "NamedValue_ListValue", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the secret of the named value specified by its identifier." + "Description": "Gets the entity state (Etag) version of the API specified by its identifier." }, - { - "Name": "RefreshSecret", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/refreshSecret", - "Method": "POST", - "OperationID": "NamedValue_RefreshSecret", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Refresh the secret of the named value specified by its identifier." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "NamedValueContract", - "ResourceType": "Microsoft.ApiManagement/service/namedValues", - "ResourceKey": "namedValueId", - "ResourceKeySegment": "namedValues", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "NotificationContract": { - "Name": "NotificationContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", - "Method": "GET", - "OperationID": "Notification_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the Notification specified by its identifier." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", - "Method": "PUT", - "OperationID": "Notification_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or Update API Management publisher notification." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", - "Method": "PUT", - "OperationID": "Notification_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or Update API Management publisher notification." - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications", - "Method": "GET", - "OperationID": "Notification_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + "Method": "PUT", + "OperationID": "Api_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates new or updates existing specified API of the API Management service instance." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + "Method": "PATCH", + "OperationID": "Api_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the specified API of the API Management service instance." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + "Method": "DELETE", + "OperationID": "Api_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified API of the API Management service instance." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis", + "Method": "GET", + "OperationID": "Api_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all APIs of the API Management service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListByService", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions", + "Method": "GET", + "OperationID": "ApiRevision_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all revisions of an API." }, - "Description": "Lists a collection of properties defined within a service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListByNotification", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", - "Method": "GET", - "OperationID": "NotificationRecipientUser_ListByNotification", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByNotification", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets the list of the Notification Recipient User subscribed to the notification." - }, - { - "Name": "CheckEntityExists", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", - "Method": "HEAD", - "OperationID": "NotificationRecipientUser_CheckEntityExists", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Determine if the Notification Recipient User is subscribed to the notification." - }, - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", - "Method": "PUT", - "OperationID": "NotificationRecipientUser_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Adds the API Management User to the list of Recipients for the Notification." - }, - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", - "Method": "DELETE", - "OperationID": "NotificationRecipientUser_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Removes the API Management user from the list of Notification." - }, - { - "Name": "ListByNotification", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", - "Method": "GET", - "OperationID": "NotificationRecipientEmail_ListByNotification", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByNotification", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListByApis", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", + "Method": "GET", + "OperationID": "ApiProduct_ListByApis", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByApis", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all Products, which the API is part of." }, - "Description": "Gets the list of the Notification Recipient Emails subscribed to a notification." - }, - { - "Name": "CheckEntityExists", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + { + "Name": "ListByTags", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", + "Method": "GET", + "OperationID": "Operation_ListByTags", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByTags", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of operations associated with tags." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "ApiContract", + "ResourceType": "Microsoft.ApiManagement/service/apis", + "ResourceKey": "apiId", + "ResourceKeySegment": "apis", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ApiReleaseContract": [ + { + "Name": "ApiReleaseContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + "Method": "GET", + "OperationID": "ApiRelease_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Returns the details of an API release." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", "Method": "HEAD", - "OperationID": "NotificationRecipientEmail_CheckEntityExists", + "OperationID": "ApiRelease_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Determine if Notification Recipient Email subscribed to the notification." + "Description": "Returns the etag of an API release." }, - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", - "Method": "PUT", - "OperationID": "NotificationRecipientEmail_CreateOrUpdate", - "IsLongRunning": true, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + "Method": "PUT", + "OperationID": "ApiRelease_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new Release for the API." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + "Method": "PATCH", + "OperationID": "ApiRelease_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the release of the API specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + "Method": "DELETE", + "OperationID": "ApiRelease_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified release in the API." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases", + "Method": "GET", + "OperationID": "ApiRelease_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all releases of an API. An API release is created when making an API Revision current. Releases are also used to rollback to previous revisions. Results will be paged and can be constrained by the $top and $skip parameters." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiContract" + ], + "SwaggerModelName": "ApiReleaseContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/releases", + "ResourceKey": "releaseId", + "ResourceKeySegment": "releases", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "OperationContract": [ + { + "Name": "OperationContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + "Method": "GET", + "OperationID": "ApiOperation_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the API Operation specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + "Method": "HEAD", + "OperationID": "ApiOperation_GetEntityTag", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "Adds the Email address to the list of Recipients for the Notification." + "Description": "Gets the entity state (Etag) version of the API operation specified by its identifier." }, - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", - "Method": "DELETE", - "OperationID": "NotificationRecipientEmail_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Removes the email from the list of Notification." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "NotificationContract", - "ResourceType": "Microsoft.ApiManagement/service/notifications", - "ResourceKey": "notificationName", - "ResourceKeySegment": "notifications", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "OpenidConnectProviderContract": { - "Name": "OpenidConnectProviderContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", - "Method": "GET", - "OperationID": "OpenIdConnectProvider_Get", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + "Method": "PUT", + "OperationID": "ApiOperation_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new operation in the API or updates an existing one." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + "Method": "PATCH", + "OperationID": "ApiOperation_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the operation in the API specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + "Method": "DELETE", + "OperationID": "ApiOperation_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified operation in the API." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations", + "Method": "GET", + "OperationID": "ApiOperation_ListByApi", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByApi", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of the operations for the specified API." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiContract" + ], + "SwaggerModelName": "OperationContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/operations", + "ResourceKey": "operationId", + "ResourceKeySegment": "operations", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "PolicyContract": [ + { + "Name": "PolicyContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + "Method": "GET", + "OperationID": "ApiOperationPolicy_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the policy configuration at the API Operation level." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + "Method": "HEAD", + "OperationID": "ApiOperationPolicy_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets specific OpenID Connect Provider without secrets." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", - "Method": "HEAD", - "OperationID": "OpenIdConnectProvider_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier." + "Description": "Gets the entity state (Etag) version of the API operation policy specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + "Method": "PUT", + "OperationID": "ApiOperationPolicy_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates policy configuration for the API Operation level." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + "Method": "PUT", + "OperationID": "ApiOperationPolicy_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates policy configuration for the API Operation level." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + "Method": "DELETE", + "OperationID": "ApiOperationPolicy_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the policy configuration at the Api Operation." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies", + "Method": "GET", + "OperationID": "ApiOperationPolicy_ListByOperation", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByOperation", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get the list of policy configuration at the API Operation level." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "OperationContract" + ], + "SwaggerModelName": "PolicyContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/operations/policies", + "ResourceKey": "policyId", + "ResourceKeySegment": "policies", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", - "Method": "PUT", - "OperationID": "OpenIdConnectProvider_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates the OpenID Connect Provider." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", - "Method": "PATCH", - "OperationID": "OpenIdConnectProvider_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the specific OpenID Connect Provider." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", - "Method": "DELETE", - "OperationID": "OpenIdConnectProvider_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific OpenID Connect Provider of the API Management service instance." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders", - "Method": "GET", - "OperationID": "OpenIdConnectProvider_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists of all the OpenId Connect Providers." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListSecrets", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", - "Method": "POST", - "OperationID": "OpenIdConnectProvider_ListSecrets", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the client secret details of the OpenID Connect Provider." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "OpenidConnectProviderContract", - "ResourceType": "Microsoft.ApiManagement/service/openidConnectProviders", - "ResourceKey": "opid", - "ResourceKeySegment": "openidConnectProviders", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "PortalRevisionContract": { - "Name": "PortalRevisionContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", - "Method": "GET", - "OperationID": "PortalRevision_Get", + { + "Name": "PolicyContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + "Method": "GET", + "OperationID": "ApiPolicy_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the policy configuration at the API level." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + "Method": "HEAD", + "OperationID": "ApiPolicy_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the developer portal's revision specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", - "Method": "HEAD", - "OperationID": "PortalRevision_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the developer portal revision specified by its identifier." + "Description": "Gets the entity state (Etag) version of the API policy specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + "Method": "PUT", + "OperationID": "ApiPolicy_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates policy configuration for the API." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + "Method": "PUT", + "OperationID": "ApiPolicy_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates policy configuration for the API." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + "Method": "DELETE", + "OperationID": "ApiPolicy_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the policy configuration at the Api." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies", + "Method": "GET", + "OperationID": "ApiPolicy_ListByApi", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByApi", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get the policy configuration at the API level." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiContract" + ], + "SwaggerModelName": "PolicyContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/policies", + "ResourceKey": "policyId", + "ResourceKeySegment": "policies", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", - "Method": "PUT", - "OperationID": "PortalRevision_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", - "Method": "PATCH", - "OperationID": "PortalRevision_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates the description of specified portal revision or makes it current." - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions", - "Method": "GET", - "OperationID": "PortalRevision_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists developer portal's revisions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "PortalRevisionContract", - "ResourceType": "Microsoft.ApiManagement/service/portalRevisions", - "ResourceKey": "portalRevisionId", - "ResourceKeySegment": "portalRevisions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "PortalSigninSettings": { - "Name": "PortalSigninSetting", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", - "Method": "GET", - "OperationID": "SignInSettings_Get", + { + "Name": "PolicyContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + "Method": "GET", + "OperationID": "Policy_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the Global policy definition of the Api Management service." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + "Method": "HEAD", + "OperationID": "Policy_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get Sign In Settings for the Portal" - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", - "Method": "HEAD", - "OperationID": "SignInSettings_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the SignInSettings." + "Description": "Gets the entity state (Etag) version of the Global policy definition in the Api Management service." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + "Method": "PUT", + "OperationID": "Policy_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates the global policy configuration of the Api Management service." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + "Method": "PUT", + "OperationID": "Policy_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates the global policy configuration of the Api Management service." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + "Method": "DELETE", + "OperationID": "Policy_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the global policy configuration of the Api Management Service." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies", + "Method": "GET", + "OperationID": "Policy_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the Global Policy definitions of the Api Management service." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "PolicyContract", + "ResourceType": "Microsoft.ApiManagement/service/policies", + "ResourceKey": "policyId", + "ResourceKeySegment": "policies", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", - "Method": "PUT", - "OperationID": "SignInSettings_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or Update Sign-In settings." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", - "Method": "PATCH", - "OperationID": "SignInSettings_Update", + { + "Name": "PolicyContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + "Method": "GET", + "OperationID": "ProductPolicy_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the policy configuration at the Product level." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + "Method": "HEAD", + "OperationID": "ProductPolicy_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Update Sign-In settings." - } - ], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "PortalSigninSettings", - "ResourceType": "Microsoft.ApiManagement/service/portalsettings", - "ResourceKey": "signin", - "ResourceKeySegment": "portalsettings", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "PortalSignupSettings": { - "Name": "PortalSignupSetting", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", - "Method": "GET", - "OperationID": "SignUpSettings_Get", + "Description": "Get the ETag of the policy configuration at the Product level." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + "Method": "PUT", + "OperationID": "ProductPolicy_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates policy configuration for the Product." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + "Method": "PUT", + "OperationID": "ProductPolicy_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates policy configuration for the Product." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + "Method": "DELETE", + "OperationID": "ProductPolicy_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the policy configuration at the Product." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies", + "Method": "GET", + "OperationID": "ProductPolicy_ListByProduct", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByProduct", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get the policy configuration at the Product level." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ProductContract" + ], + "SwaggerModelName": "PolicyContract", + "ResourceType": "Microsoft.ApiManagement/service/products/policies", + "ResourceKey": "policyId", + "ResourceKeySegment": "policies", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "TagContract": [ + { + "Name": "TagContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + "Method": "GET", + "OperationID": "Tag_GetByOperation", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get tag associated with the Operation." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + "Method": "HEAD", + "OperationID": "Tag_GetEntityStateByOperation", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get Sign Up Settings for the Portal" - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", - "Method": "HEAD", - "OperationID": "SignUpSettings_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the SignUpSettings." + "Description": "Gets the entity state version of the tag specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + "Method": "PUT", + "OperationID": "Tag_AssignToOperation", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Assign tag to the Operation." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + "Method": "PUT", + "OperationID": "Tag_AssignToOperation", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Assign tag to the Operation." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + "Method": "DELETE", + "OperationID": "Tag_DetachFromOperation", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Detach the tag from the Operation." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", + "Method": "GET", + "OperationID": "Tag_ListByOperation", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByOperation", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all Tags associated with the Operation." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "OperationContract" + ], + "SwaggerModelName": "TagContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/operations/tags", + "ResourceKey": "tagId", + "ResourceKeySegment": "tags", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", - "Method": "PUT", - "OperationID": "SignUpSettings_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or Update Sign-Up settings." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", - "Method": "PATCH", - "OperationID": "SignUpSettings_Update", + { + "Name": "TagContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + "Method": "GET", + "OperationID": "Tag_GetByApi", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get tag associated with the API." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + "Method": "HEAD", + "OperationID": "Tag_GetEntityStateByApi", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Update Sign-Up settings." - } - ], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "PortalSignupSettings", - "ResourceType": "Microsoft.ApiManagement/service/portalsettings", - "ResourceKey": "signup", - "ResourceKeySegment": "portalsettings", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "PortalDelegationSettings": { - "Name": "PortalDelegationSetting", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", - "Method": "GET", - "OperationID": "DelegationSettings_Get", + "Description": "Gets the entity state version of the tag specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + "Method": "PUT", + "OperationID": "Tag_AssignToApi", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Assign tag to the Api." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + "Method": "PUT", + "OperationID": "Tag_AssignToApi", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Assign tag to the Api." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + "Method": "DELETE", + "OperationID": "Tag_DetachFromApi", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Detach the tag from the Api." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags", + "Method": "GET", + "OperationID": "Tag_ListByApi", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByApi", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all Tags associated with the API." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiContract" + ], + "SwaggerModelName": "TagContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/tags", + "ResourceKey": "tagId", + "ResourceKeySegment": "tags", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "TagContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + "Method": "GET", + "OperationID": "Tag_GetByProduct", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get tag associated with the Product." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + "Method": "HEAD", + "OperationID": "Tag_GetEntityStateByProduct", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get Delegation Settings for the Portal." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", - "Method": "HEAD", - "OperationID": "DelegationSettings_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the DelegationSettings." + "Description": "Gets the entity state version of the tag specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + "Method": "PUT", + "OperationID": "Tag_AssignToProduct", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Assign tag to the Product." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + "Method": "PUT", + "OperationID": "Tag_AssignToProduct", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Assign tag to the Product." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + "Method": "DELETE", + "OperationID": "Tag_DetachFromProduct", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Detach the tag from the Product." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", + "Method": "GET", + "OperationID": "Tag_ListByProduct", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByProduct", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all Tags associated with the Product." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ProductContract" + ], + "SwaggerModelName": "TagContract", + "ResourceType": "Microsoft.ApiManagement/service/products/tags", + "ResourceKey": "tagId", + "ResourceKeySegment": "tags", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", - "Method": "PUT", - "OperationID": "DelegationSettings_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or Update Delegation settings." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", - "Method": "PATCH", - "OperationID": "DelegationSettings_Update", + { + "Name": "TagContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + "Method": "GET", + "OperationID": "Tag_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the tag specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + "Method": "HEAD", + "OperationID": "Tag_GetEntityState", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Update Delegation settings." - } - ], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListSecrets", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation/listSecrets", - "Method": "POST", - "OperationID": "DelegationSettings_ListSecrets", + "Description": "Gets the entity state version of the tag specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + "Method": "PUT", + "OperationID": "Tag_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a tag." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + "Method": "PATCH", + "OperationID": "Tag_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the tag specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + "Method": "DELETE", + "OperationID": "Tag_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific tag of the API Management service instance." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", + "Method": "GET", + "OperationID": "Tag_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of tags defined within a service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "TagContract", + "ResourceType": "Microsoft.ApiManagement/service/tags", + "ResourceKey": "tagId", + "ResourceKeySegment": "tags", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "SchemaContract": [ + { + "Name": "SchemaContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + "Method": "GET", + "OperationID": "ApiSchema_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the schema configuration at the API level." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + "Method": "HEAD", + "OperationID": "ApiSchema_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the secret validation key of the DelegationSettings." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "PortalDelegationSettings", - "ResourceType": "Microsoft.ApiManagement/service/portalsettings", - "ResourceKey": "delegation", - "ResourceKeySegment": "portalsettings", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "PrivateEndpointConnection": { - "Name": "PrivateEndpointConnection", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "GET", - "OperationID": "PrivateEndpointConnection_GetByName", + "Description": "Gets the entity state (Etag) version of the schema specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + "Method": "PUT", + "OperationID": "ApiSchema_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates schema configuration for the API." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + "Method": "PUT", + "OperationID": "ApiSchema_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates schema configuration for the API." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + "Method": "DELETE", + "OperationID": "ApiSchema_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the schema configuration at the Api." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", + "Method": "GET", + "OperationID": "ApiSchema_ListByApi", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByApi", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get the schema configuration at the API level." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiContract" + ], + "SwaggerModelName": "SchemaContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/schemas", + "ResourceKey": "schemaId", + "ResourceKeySegment": "schemas", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DiagnosticContract": [ + { + "Name": "DiagnosticContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + "Method": "GET", + "OperationID": "ApiDiagnostic_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the Diagnostic for an API specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + "Method": "HEAD", + "OperationID": "ApiDiagnostic_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the Private Endpoint Connection specified by its identifier." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "PUT", - "OperationID": "PrivateEndpointConnection_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Private Endpoint Connection or updates an existing one." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "PUT", - "OperationID": "PrivateEndpointConnection_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Private Endpoint Connection or updates an existing one." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "DELETE", - "OperationID": "PrivateEndpointConnection_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified Private Endpoint Connection." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections", - "Method": "GET", - "OperationID": "PrivateEndpointConnection_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all private endpoint connections of the API Management service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "PrivateEndpointConnection", - "ResourceType": "Microsoft.ApiManagement/service/privateEndpointConnections", - "ResourceKey": "privateEndpointConnectionName", - "ResourceKeySegment": "privateEndpointConnections", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "PrivateLinkResource": { - "Name": "PrivateLinkResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources/{privateLinkSubResourceName}", - "Method": "GET", - "OperationID": "PrivateEndpointConnection_GetPrivateLinkResource", + "Description": "Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + "Method": "PUT", + "OperationID": "ApiDiagnostic_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new Diagnostic for an API or updates an existing one." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + "Method": "PATCH", + "OperationID": "ApiDiagnostic_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the Diagnostic for an API specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + "Method": "DELETE", + "OperationID": "ApiDiagnostic_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified Diagnostic from an API." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", + "Method": "GET", + "OperationID": "ApiDiagnostic_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all diagnostics of an API." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiContract" + ], + "SwaggerModelName": "DiagnosticContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/diagnostics", + "ResourceKey": "diagnosticId", + "ResourceKeySegment": "diagnostics", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "DiagnosticContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + "Method": "GET", + "OperationID": "Diagnostic_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the Diagnostic specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + "Method": "HEAD", + "OperationID": "Diagnostic_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the private link resources" - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources", - "Method": "GET", - "OperationID": "PrivateEndpointConnection_ListPrivateLinkResources", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListPrivateLinkResources", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets the private link resources" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "PrivateLinkResource", - "ResourceType": "Microsoft.ApiManagement/service/privateLinkResources", - "ResourceKey": "privateLinkSubResourceName", - "ResourceKeySegment": "privateLinkResources", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ProductContract": { - "Name": "ProductContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", - "Method": "GET", - "OperationID": "Product_Get", + "Description": "Gets the entity state (Etag) version of the Diagnostic specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + "Method": "PUT", + "OperationID": "Diagnostic_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new Diagnostic or updates an existing one." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + "Method": "PATCH", + "OperationID": "Diagnostic_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the Diagnostic specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + "Method": "DELETE", + "OperationID": "Diagnostic_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified Diagnostic." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics", + "Method": "GET", + "OperationID": "Diagnostic_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all diagnostics of the API Management service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "DiagnosticContract", + "ResourceType": "Microsoft.ApiManagement/service/diagnostics", + "ResourceKey": "diagnosticId", + "ResourceKeySegment": "diagnostics", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "IssueContract": [ + { + "Name": "IssueContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + "Method": "GET", + "OperationID": "ApiIssue_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the Issue for an API specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + "Method": "HEAD", + "OperationID": "ApiIssue_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the product specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", - "Method": "HEAD", - "OperationID": "Product_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the product specified by its identifier." + "Description": "Gets the entity state (Etag) version of the Issue for an API specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + "Method": "PUT", + "OperationID": "ApiIssue_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new Issue for an API or updates an existing one." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + "Method": "PATCH", + "OperationID": "ApiIssue_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates an existing issue for an API." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + "Method": "DELETE", + "OperationID": "ApiIssue_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified Issue from an API." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", + "Method": "GET", + "OperationID": "ApiIssue_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all issues associated with the specified API." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiContract" + ], + "SwaggerModelName": "IssueContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/issues", + "ResourceKey": "issueId", + "ResourceKeySegment": "issues", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", - "Method": "PUT", - "OperationID": "Product_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or Updates a product." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", - "Method": "PATCH", - "OperationID": "Product_Update", + { + "Name": "IssueContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}", + "Method": "GET", + "OperationID": "Issue_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets API Management issue details" + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues", + "Method": "GET", + "OperationID": "Issue_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of issues in the specified service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "IssueContract", + "ResourceType": "Microsoft.ApiManagement/service/issues", + "ResourceKey": "issueId", + "ResourceKeySegment": "issues", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "IssueCommentContract": [ + { + "Name": "IssueCommentContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + "Method": "GET", + "OperationID": "ApiIssueComment_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the issue Comment for an API specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + "Method": "HEAD", + "OperationID": "ApiIssueComment_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Update existing product details." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", - "Method": "DELETE", - "OperationID": "Product_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete product." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products", - "Method": "GET", - "OperationID": "Product_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of products in the specified service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListByProduct", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", - "Method": "GET", - "OperationID": "ProductApi_ListByProduct", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByProduct", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of the APIs associated with a product." + "Description": "Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier." }, - { - "Name": "CheckEntityExists", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + "Method": "PUT", + "OperationID": "ApiIssueComment_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new Comment for the Issue in an API or updates an existing one." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + "Method": "PUT", + "OperationID": "ApiIssueComment_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new Comment for the Issue in an API or updates an existing one." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + "Method": "DELETE", + "OperationID": "ApiIssueComment_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified comment from an Issue." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", + "Method": "GET", + "OperationID": "ApiIssueComment_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all comments for the Issue associated with the specified API." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "IssueContract" + ], + "SwaggerModelName": "IssueCommentContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/issues/comments", + "ResourceKey": "commentId", + "ResourceKeySegment": "comments", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "IssueAttachmentContract": [ + { + "Name": "IssueAttachmentContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + "Method": "GET", + "OperationID": "ApiIssueAttachment_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the issue Attachment for an API specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", "Method": "HEAD", - "OperationID": "ProductApi_CheckEntityExists", + "OperationID": "ApiIssueAttachment_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Checks that API entity specified by identifier is associated with the Product entity." + "Description": "Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier." }, - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", - "Method": "PUT", - "OperationID": "ProductApi_CreateOrUpdate", - "IsLongRunning": true, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + "Method": "PUT", + "OperationID": "ApiIssueAttachment_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new Attachment for the Issue in an API or updates an existing one." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + "Method": "PUT", + "OperationID": "ApiIssueAttachment_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new Attachment for the Issue in an API or updates an existing one." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + "Method": "DELETE", + "OperationID": "ApiIssueAttachment_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified comment from an Issue." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", + "Method": "GET", + "OperationID": "ApiIssueAttachment_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all attachments for the Issue associated with the specified API." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "IssueContract" + ], + "SwaggerModelName": "IssueAttachmentContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/issues/attachments", + "ResourceKey": "attachmentId", + "ResourceKeySegment": "attachments", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "TagDescriptionContract": [ + { + "Name": "TagDescriptionContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + "Method": "GET", + "OperationID": "ApiTagDescription_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Tag description in scope of API" + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + "Method": "HEAD", + "OperationID": "ApiTagDescription_GetEntityTag", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "Adds an API to the specified product." + "Description": "Gets the entity state version of the tag specified by its identifier." }, - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", - "Method": "DELETE", - "OperationID": "ProductApi_Delete", - "IsLongRunning": true, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + "Method": "PUT", + "OperationID": "ApiTagDescription_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create/Update tag description in scope of the Api." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + "Method": "PUT", + "OperationID": "ApiTagDescription_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create/Update tag description in scope of the Api." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + "Method": "DELETE", + "OperationID": "ApiTagDescription_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete tag description for the Api." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", + "Method": "GET", + "OperationID": "ApiTagDescription_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiContract" + ], + "SwaggerModelName": "TagDescriptionContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/tagDescriptions", + "ResourceKey": "tagDescriptionId", + "ResourceKeySegment": "tagDescriptions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ApiVersionSetContract": [ + { + "Name": "ApiVersionSetContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + "Method": "GET", + "OperationID": "ApiVersionSet_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the Api Version Set specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + "Method": "HEAD", + "OperationID": "ApiVersionSet_GetEntityTag", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "Deletes the specified API from the specified product." + "Description": "Gets the entity state (Etag) version of the Api Version Set specified by its identifier." }, - { - "Name": "ListByProduct", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", - "Method": "GET", - "OperationID": "ProductGroup_ListByProduct", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + "Method": "PUT", + "OperationID": "ApiVersionSet_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or Updates a Api Version Set." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + "Method": "PATCH", + "OperationID": "ApiVersionSet_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the Api VersionSet specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + "Method": "DELETE", + "OperationID": "ApiVersionSet_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific Api Version Set." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", + "Method": "GET", + "OperationID": "ApiVersionSet_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of API Version Sets in the specified service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "ApiVersionSetContract", + "ResourceType": "Microsoft.ApiManagement/service/apiVersionSets", + "ResourceKey": "versionSetId", + "ResourceKeySegment": "apiVersionSets", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "AuthorizationServerContract": [ + { + "Name": "AuthorizationServerContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + "Method": "GET", + "OperationID": "AuthorizationServer_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the authorization server specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + "Method": "HEAD", + "OperationID": "AuthorizationServer_GetEntityTag", "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByProduct", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the collection of developer groups associated with the specified product." + "PagingMetadata": null, + "Description": "Gets the entity state (Etag) version of the authorizationServer specified by its identifier." }, - { - "Name": "CheckEntityExists", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + "Method": "PUT", + "OperationID": "AuthorizationServer_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates new authorization server or updates an existing authorization server." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + "Method": "PATCH", + "OperationID": "AuthorizationServer_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the authorization server specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + "Method": "DELETE", + "OperationID": "AuthorizationServer_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific authorization server instance." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", + "Method": "GET", + "OperationID": "AuthorizationServer_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of authorization servers defined within a service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListSecrets", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", + "Method": "POST", + "OperationID": "AuthorizationServer_ListSecrets", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the client secret details of the authorization server." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "AuthorizationServerContract", + "ResourceType": "Microsoft.ApiManagement/service/authorizationServers", + "ResourceKey": "authsid", + "ResourceKeySegment": "authorizationServers", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "BackendContract": [ + { + "Name": "BackendContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + "Method": "GET", + "OperationID": "Backend_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the backend specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", "Method": "HEAD", - "OperationID": "ProductGroup_CheckEntityExists", + "OperationID": "Backend_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Checks that Group entity specified by identifier is associated with the Product entity." + "Description": "Gets the entity state (Etag) version of the backend specified by its identifier." }, - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", - "Method": "PUT", - "OperationID": "ProductGroup_CreateOrUpdate", - "IsLongRunning": true, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + "Method": "PUT", + "OperationID": "Backend_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or Updates a backend." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + "Method": "PATCH", + "OperationID": "Backend_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates an existing backend." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + "Method": "DELETE", + "OperationID": "Backend_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified backend." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", + "Method": "GET", + "OperationID": "Backend_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of backends in the specified service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Reconnect", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", + "Method": "POST", + "OperationID": "Backend_Reconnect", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "BackendContract", + "ResourceType": "Microsoft.ApiManagement/service/backends", + "ResourceKey": "backendId", + "ResourceKeySegment": "backends", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CacheContract": [ + { + "Name": "CacheContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + "Method": "GET", + "OperationID": "Cache_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the Cache specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + "Method": "HEAD", + "OperationID": "Cache_GetEntityTag", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "Adds the association between the specified developer group with the specified product." + "Description": "Gets the entity state (Etag) version of the Cache specified by its identifier." }, - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", - "Method": "DELETE", - "OperationID": "ProductGroup_Delete", - "IsLongRunning": true, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + "Method": "PUT", + "OperationID": "Cache_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates an External Cache to be used in Api Management instance." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + "Method": "PATCH", + "OperationID": "Cache_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the cache specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + "Method": "DELETE", + "OperationID": "Cache_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific Cache." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches", + "Method": "GET", + "OperationID": "Cache_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of all external Caches in the specified service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "CacheContract", + "ResourceType": "Microsoft.ApiManagement/service/caches", + "ResourceKey": "cacheId", + "ResourceKeySegment": "caches", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CertificateContract": [ + { + "Name": "CertificateContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + "Method": "GET", + "OperationID": "Certificate_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the certificate specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + "Method": "HEAD", + "OperationID": "Certificate_GetEntityTag", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "Deletes the association between the specified group and product." + "Description": "Gets the entity state (Etag) version of the certificate specified by its identifier." }, - { - "Name": "List", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", - "Method": "GET", - "OperationID": "ProductSubscriptions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the collection of subscriptions to the specified product." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "ProductContract", - "ResourceType": "Microsoft.ApiManagement/service/products", - "ResourceKey": "productId", - "ResourceKeySegment": "products", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "GlobalSchemaContract": { - "Name": "GlobalSchemaContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", - "Method": "GET", - "OperationID": "GlobalSchema_Get", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + "Method": "PUT", + "OperationID": "Certificate_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates the certificate being used for authentication with the backend." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + "Method": "PUT", + "OperationID": "Certificate_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates the certificate being used for authentication with the backend." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + "Method": "DELETE", + "OperationID": "Certificate_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific certificate." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", + "Method": "GET", + "OperationID": "Certificate_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of all certificates in the specified service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "RefreshSecret", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}/refreshSecret", + "Method": "POST", + "OperationID": "Certificate_RefreshSecret", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "From KeyVault, Refresh the certificate being used for authentication with the backend." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "CertificateContract", + "ResourceType": "Microsoft.ApiManagement/service/certificates", + "ResourceKey": "certificateId", + "ResourceKeySegment": "certificates", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ContentTypeContract": [ + { + "Name": "ContentTypeContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + "Method": "GET", + "OperationID": "ContentType_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + "Method": "PUT", + "OperationID": "ContentType_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + "Method": "PUT", + "OperationID": "ContentType_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + "Method": "DELETE", + "OperationID": "ContentType_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes", + "Method": "GET", + "OperationID": "ContentType_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "ContentTypeContract", + "ResourceType": "Microsoft.ApiManagement/service/contentTypes", + "ResourceKey": "contentTypeId", + "ResourceKeySegment": "contentTypes", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ContentItemContract": [ + { + "Name": "ContentItemContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + "Method": "GET", + "OperationID": "ContentItem_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Returns the developer portal's content item specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + "Method": "HEAD", + "OperationID": "ContentItem_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the Schema specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", - "Method": "HEAD", - "OperationID": "GlobalSchema_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Schema specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", - "Method": "PUT", - "OperationID": "GlobalSchema_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates new or updates existing specified Schema of the API Management service instance." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", - "Method": "PUT", - "OperationID": "GlobalSchema_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates new or updates existing specified Schema of the API Management service instance." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", - "Method": "DELETE", - "OperationID": "GlobalSchema_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific Schema." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas", - "Method": "GET", - "OperationID": "GlobalSchema_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" + "Description": "Returns the entity state (ETag) version of the developer portal's content item specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + "Method": "PUT", + "OperationID": "ContentItem_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new developer portal's content item specified by the provided content type." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + "Method": "PUT", + "OperationID": "ContentItem_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new developer portal's content item specified by the provided content type." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + "Method": "DELETE", + "OperationID": "ContentItem_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Removes the specified developer portal's content item." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems", + "Method": "GET", + "OperationID": "ContentItem_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists developer portal's content items specified by the provided content type." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ContentTypeContract" + ], + "SwaggerModelName": "ContentItemContract", + "ResourceType": "Microsoft.ApiManagement/service/contentTypes/contentItems", + "ResourceKey": "contentItemId", + "ResourceKeySegment": "contentItems", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DeletedServiceContract": [ + { + "Name": "DeletedServiceContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", + "Method": "GET", + "OperationID": "DeletedServices_GetByName", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get soft-deleted Api Management Service by name." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", + "Method": "DELETE", + "OperationID": "DeletedServices_Purge", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Purges Api Management Service (deletes it with no option to undelete)." + } + ], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "SubscriptionResource" + ], + "SwaggerModelName": "DeletedServiceContract", + "ResourceType": "Microsoft.ApiManagement/locations/deletedservices", + "ResourceKey": "serviceName", + "ResourceKeySegment": "deletedservices", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": true, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ApiManagementServiceResource": [ + { + "Name": "ApiManagementServiceResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + "Method": "GET", + "OperationID": "ApiManagementService_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets an API Management service resource description." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + "Method": "PUT", + "OperationID": "ApiManagementService_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates an API Management service. This is long running operation and could take several minutes to complete." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + "Method": "PATCH", + "OperationID": "ApiManagementService_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates an existing API Management service." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + "Method": "DELETE", + "OperationID": "ApiManagementService_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes an existing API Management service." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", + "Method": "GET", + "OperationID": "ApiManagementService_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List all API Management services within a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", + "Method": "GET", + "OperationID": "ApiManagementService_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all API Management services within an Azure subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListByTags", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", + "Method": "GET", + "OperationID": "Api_ListByTags", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByTags", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of apis associated with tags." }, - "Description": "Lists a collection of schemas registered with service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "GlobalSchemaContract", - "ResourceType": "Microsoft.ApiManagement/service/schemas", - "ResourceKey": "schemaId", - "ResourceKeySegment": "schemas", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "TenantSettingsContract": { - "Name": "TenantSettingsContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings/{settingsType}", - "Method": "GET", - "OperationID": "TenantSettings_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get tenant settings." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings", - "Method": "GET", - "OperationID": "TenantSettings_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "PerformConnectivityCheckAsync", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/connectivityCheck", + "Method": "POST", + "OperationID": "PerformConnectivityCheckAsync", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it." }, - "Description": "Public settings." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "TenantSettingsContract", - "ResourceType": "Microsoft.ApiManagement/service/settings", - "ResourceKey": "settingsType", - "ResourceKeySegment": "settings", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "SubscriptionContractFixMe": { - "Name": "SubscriptionContractFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "SubscriptionContract": { - "Name": "SubscriptionContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", - "Method": "GET", - "OperationID": "Subscription_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the specified Subscription entity." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", - "Method": "HEAD", - "OperationID": "Subscription_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", - "Method": "PUT", - "OperationID": "Subscription_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates the subscription of specified user to the specified product." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", - "Method": "PATCH", - "OperationID": "Subscription_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of a subscription specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", - "Method": "DELETE", - "OperationID": "Subscription_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified subscription." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions", - "Method": "GET", - "OperationID": "Subscription_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListAvailableServiceSkus", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus", + "Method": "GET", + "OperationID": "ApiManagementServiceSkus_ListAvailableServiceSkus", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListAvailableServiceSkus", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets all available SKU for a given API Management service" + }, + { + "Name": "Restore", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", + "Method": "POST", + "OperationID": "ApiManagementService_Restore", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete." + }, + { + "Name": "Backup", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup", + "Method": "POST", + "OperationID": "ApiManagementService_Backup", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete." + }, + { + "Name": "GetSsoToken", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken", + "Method": "POST", + "OperationID": "ApiManagementService_GetSsoToken", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes." + }, + { + "Name": "ApplyNetworkConfigurationUpdates", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", + "Method": "POST", + "OperationID": "ApiManagementService_ApplyNetworkConfigurationUpdates", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes." + }, + { + "Name": "ListByService", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/networkstatus", + "Method": "GET", + "OperationID": "NetworkStatus_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService." + }, + { + "Name": "ListByLocation", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", + "Method": "GET", + "OperationID": "NetworkStatus_ListByLocation", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService." + }, + { + "Name": "ListByService", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/outboundNetworkDependenciesEndpoints", + "Method": "GET", + "OperationID": "OutboundNetworkDependenciesEndpoints_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the network endpoints of all outbound dependencies of a ApiManagement service." + }, + { + "Name": "ListByService", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", + "Method": "GET", + "OperationID": "PolicyDescription_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all policy descriptions." + }, + { + "Name": "ListByService", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings", + "Method": "GET", + "OperationID": "PortalSettings_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of portalsettings defined within a service instance.." + }, + { + "Name": "ListByTags", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/productsByTags", + "Method": "GET", + "OperationID": "Product_ListByTags", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByTags", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of products associated with tags." + }, + { + "Name": "ListByService", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", + "Method": "GET", + "OperationID": "QuotaByCounterKeys_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet." + }, + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", + "Method": "PATCH", + "OperationID": "QuotaByCounterKeys_Update", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "Update", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values." }, - "Description": "Lists all subscriptions of the API Management service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "RegeneratePrimaryKey", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey", - "Method": "POST", - "OperationID": "Subscription_RegeneratePrimaryKey", + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", + "Method": "GET", + "OperationID": "QuotaByPeriodKeys_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance." + }, + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", + "Method": "PATCH", + "OperationID": "QuotaByPeriodKeys_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates an existing quota counter value in the specified service instance." + }, + { + "Name": "ListByService", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions", + "Method": "GET", + "OperationID": "Region_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all azure regions in which the service exists." + }, + { + "Name": "ListByApi", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", + "Method": "GET", + "OperationID": "Reports_ListByApi", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByApi", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists report records by API." + }, + { + "Name": "ListByUser", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", + "Method": "GET", + "OperationID": "Reports_ListByUser", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByUser", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists report records by User." + }, + { + "Name": "ListByOperation", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", + "Method": "GET", + "OperationID": "Reports_ListByOperation", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByOperation", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists report records by API Operations." + }, + { + "Name": "ListByProduct", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", + "Method": "GET", + "OperationID": "Reports_ListByProduct", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByProduct", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists report records by Product." + }, + { + "Name": "ListByGeo", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", + "Method": "GET", + "OperationID": "Reports_ListByGeo", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByGeo", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists report records by geography." + }, + { + "Name": "ListBySubscription", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", + "Method": "GET", + "OperationID": "Reports_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists report records by subscription." + }, + { + "Name": "ListByTime", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", + "Method": "GET", + "OperationID": "Reports_ListByTime", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByTime", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists report records by Time." + }, + { + "Name": "ListByRequest", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", + "Method": "GET", + "OperationID": "Reports_ListByRequest", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByRequest", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists report records by Request." + }, + { + "Name": "ListByService", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources", + "Method": "GET", + "OperationID": "TagResource_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of resources associated with tags." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "ApiManagementServiceResource", + "ResourceType": "Microsoft.ApiManagement/service", + "ResourceKey": "serviceName", + "ResourceKeySegment": "service", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "EmailTemplateContract": [ + { + "Name": "EmailTemplateContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + "Method": "GET", + "OperationID": "EmailTemplate_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the email template specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + "Method": "HEAD", + "OperationID": "EmailTemplate_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Regenerates primary key of existing subscription of the API Management service instance." + "Description": "Gets the entity state (Etag) version of the email template specified by its identifier." }, - { - "Name": "RegenerateSecondaryKey", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey", - "Method": "POST", - "OperationID": "Subscription_RegenerateSecondaryKey", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + "Method": "PUT", + "OperationID": "EmailTemplate_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates an Email Template." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + "Method": "PATCH", + "OperationID": "EmailTemplate_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates API Management email template" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + "Method": "DELETE", + "OperationID": "EmailTemplate_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Reset the Email Template to default template provided by the API Management service instance." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates", + "Method": "GET", + "OperationID": "EmailTemplate_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets all email templates" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "EmailTemplateContract", + "ResourceType": "Microsoft.ApiManagement/service/templates", + "ResourceKey": "templateName", + "ResourceKeySegment": "templates", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "GatewayContract": [ + { + "Name": "GatewayContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + "Method": "GET", + "OperationID": "Gateway_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the Gateway specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + "Method": "HEAD", + "OperationID": "Gateway_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Regenerates secondary key of existing subscription of the API Management service instance." + "Description": "Gets the entity state (Etag) version of the Gateway specified by its identifier." }, - { - "Name": "ListSecrets", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", - "Method": "POST", - "OperationID": "Subscription_ListSecrets", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + "Method": "PUT", + "OperationID": "Gateway_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates a Gateway to be used in Api Management instance." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + "Method": "PATCH", + "OperationID": "Gateway_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the gateway specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + "Method": "DELETE", + "OperationID": "Gateway_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific Gateway." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways", + "Method": "GET", + "OperationID": "Gateway_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of gateways registered with service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listKeys", + "Method": "POST", + "OperationID": "Gateway_ListKeys", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves gateway keys." + }, + { + "Name": "RegenerateKey", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/regenerateKey", + "Method": "POST", + "OperationID": "Gateway_RegenerateKey", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Regenerates specified gateway key invalidating any tokens created with it." + }, + { + "Name": "GenerateToken", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken", + "Method": "POST", + "OperationID": "Gateway_GenerateToken", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the Shared Access Authorization Token for the gateway." + }, + { + "Name": "ListByService", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis", + "Method": "GET", + "OperationID": "GatewayApi_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of the APIs associated with a gateway." + }, + { + "Name": "GetEntityTag", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + "Method": "HEAD", + "OperationID": "GatewayApi_GetEntityTag", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Checks that API entity specified by identifier is associated with the Gateway entity." + }, + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + "Method": "PUT", + "OperationID": "GatewayApi_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Adds an API to the specified Gateway." + }, + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + "Method": "DELETE", + "OperationID": "GatewayApi_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified API from the specified Gateway." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "GatewayContract", + "ResourceType": "Microsoft.ApiManagement/service/gateways", + "ResourceKey": "gatewayId", + "ResourceKeySegment": "gateways", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "GatewayHostnameConfigurationContract": [ + { + "Name": "GatewayHostnameConfigurationContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + "Method": "GET", + "OperationID": "GatewayHostnameConfiguration_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get details of a hostname configuration" + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + "Method": "HEAD", + "OperationID": "GatewayHostnameConfiguration_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the specified Subscription keys." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "SubscriptionContract", - "ResourceType": "Microsoft.ApiManagement/service/subscriptions", - "ResourceKey": "sid", - "ResourceKeySegment": "subscriptions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "AccessInformationContract": { - "Name": "AccessInformationContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", - "Method": "GET", - "OperationID": "TenantAccess_Get", + "Description": "Checks that hostname configuration entity specified by identifier exists for specified Gateway entity." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + "Method": "PUT", + "OperationID": "GatewayHostnameConfiguration_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates of updates hostname configuration for a Gateway." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + "Method": "PUT", + "OperationID": "GatewayHostnameConfiguration_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates of updates hostname configuration for a Gateway." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + "Method": "DELETE", + "OperationID": "GatewayHostnameConfiguration_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified hostname configuration from the specified Gateway." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations", + "Method": "GET", + "OperationID": "GatewayHostnameConfiguration_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists the collection of hostname configurations for the specified gateway." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "GatewayContract" + ], + "SwaggerModelName": "GatewayHostnameConfigurationContract", + "ResourceType": "Microsoft.ApiManagement/service/gateways/hostnameConfigurations", + "ResourceKey": "hcId", + "ResourceKeySegment": "hostnameConfigurations", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "GatewayCertificateAuthorityContract": [ + { + "Name": "GatewayCertificateAuthorityContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + "Method": "GET", + "OperationID": "GatewayCertificateAuthority_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get assigned Gateway Certificate Authority details." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + "Method": "HEAD", + "OperationID": "GatewayCertificateAuthority_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get tenant access information details without secrets." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", - "Method": "HEAD", - "OperationID": "TenantAccess_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Tenant access metadata" - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", - "Method": "PUT", - "OperationID": "TenantAccess_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update tenant access information details." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", - "Method": "PATCH", - "OperationID": "TenantAccess_Update", + "Description": "Checks if Certificate entity is assigned to Gateway entity as Certificate Authority." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + "Method": "PUT", + "OperationID": "GatewayCertificateAuthority_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Assign Certificate entity to Gateway entity as Certificate Authority." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + "Method": "PUT", + "OperationID": "GatewayCertificateAuthority_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Assign Certificate entity to Gateway entity as Certificate Authority." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + "Method": "DELETE", + "OperationID": "GatewayCertificateAuthority_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Remove relationship between Certificate Authority and Gateway entity." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities", + "Method": "GET", + "OperationID": "GatewayCertificateAuthority_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists the collection of Certificate Authorities for the specified Gateway entity." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "GatewayContract" + ], + "SwaggerModelName": "GatewayCertificateAuthorityContract", + "ResourceType": "Microsoft.ApiManagement/service/gateways/certificateAuthorities", + "ResourceKey": "certificateId", + "ResourceKeySegment": "certificateAuthorities", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "GroupContract": [ + { + "Name": "GroupContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + "Method": "GET", + "OperationID": "Group_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the group specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + "Method": "HEAD", + "OperationID": "Group_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Update tenant access information details." - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant", - "Method": "GET", - "OperationID": "TenantAccess_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" + "Description": "Gets the entity state (Etag) version of the group specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + "Method": "PUT", + "OperationID": "Group_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or Updates a group." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + "Method": "PATCH", + "OperationID": "Group_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the group specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + "Method": "DELETE", + "OperationID": "Group_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific group of the API Management service instance." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups", + "Method": "GET", + "OperationID": "Group_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of groups defined within a service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "List", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", + "Method": "GET", + "OperationID": "GroupUser_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of user entities associated with the group." }, - "Description": "Returns list of access infos - for Git and Management endpoints." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "RegeneratePrimaryKey", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey", - "Method": "POST", - "OperationID": "TenantAccess_RegeneratePrimaryKey", + { + "Name": "CheckEntityExists", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + "Method": "HEAD", + "OperationID": "GroupUser_CheckEntityExists", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Checks that user entity specified by identifier is associated with the group entity." + }, + { + "Name": "Create", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + "Method": "PUT", + "OperationID": "GroupUser_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Add existing user to existing group" + }, + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + "Method": "DELETE", + "OperationID": "GroupUser_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Remove existing user from existing group." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "GroupContract", + "ResourceType": "Microsoft.ApiManagement/service/groups", + "ResourceKey": "groupId", + "ResourceKeySegment": "groups", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "IdentityProviderContract": [ + { + "Name": "IdentityProviderContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + "Method": "GET", + "OperationID": "IdentityProvider_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the configuration details of the identity Provider configured in specified service instance." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + "Method": "HEAD", + "OperationID": "IdentityProvider_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Regenerate primary access key" + "Description": "Gets the entity state (Etag) version of the identityProvider specified by its identifier." }, - { - "Name": "RegenerateSecondaryKey", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey", - "Method": "POST", - "OperationID": "TenantAccess_RegenerateSecondaryKey", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + "Method": "PUT", + "OperationID": "IdentityProvider_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or Updates the IdentityProvider configuration." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + "Method": "PATCH", + "OperationID": "IdentityProvider_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates an existing IdentityProvider configuration." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + "Method": "DELETE", + "OperationID": "IdentityProvider_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified identity provider configuration." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders", + "Method": "GET", + "OperationID": "IdentityProvider_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of Identity Provider configured in the specified service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListSecrets", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets", + "Method": "POST", + "OperationID": "IdentityProvider_ListSecrets", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the client secret details of the Identity Provider." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "IdentityProviderContract", + "ResourceType": "Microsoft.ApiManagement/service/identityProviders", + "ResourceKey": "identityProviderName", + "ResourceKeySegment": "identityProviders", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "LoggerContract": [ + { + "Name": "LoggerContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + "Method": "GET", + "OperationID": "Logger_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the logger specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + "Method": "HEAD", + "OperationID": "Logger_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Regenerate secondary access key" + "Description": "Gets the entity state (Etag) version of the logger specified by its identifier." }, - { - "Name": "ListSecrets", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", - "Method": "POST", - "OperationID": "TenantAccess_ListSecrets", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + "Method": "PUT", + "OperationID": "Logger_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or Updates a logger." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + "Method": "PATCH", + "OperationID": "Logger_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates an existing logger." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + "Method": "DELETE", + "OperationID": "Logger_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified logger." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers", + "Method": "GET", + "OperationID": "Logger_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of loggers in the specified service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "LoggerContract", + "ResourceType": "Microsoft.ApiManagement/service/loggers", + "ResourceKey": "loggerId", + "ResourceKeySegment": "loggers", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "NamedValueContract": [ + { + "Name": "NamedValueContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + "Method": "GET", + "OperationID": "NamedValue_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the named value specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + "Method": "HEAD", + "OperationID": "NamedValue_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get tenant access information details." + "Description": "Gets the entity state (Etag) version of the named value specified by its identifier." }, - { - "Name": "RegeneratePrimaryKey", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", - "Method": "POST", - "OperationID": "TenantAccessGit_RegeneratePrimaryKey", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + "Method": "PUT", + "OperationID": "NamedValue_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates named value." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + "Method": "PATCH", + "OperationID": "NamedValue_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates the specific named value." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + "Method": "DELETE", + "OperationID": "NamedValue_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific named value from the API Management service instance." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues", + "Method": "GET", + "OperationID": "NamedValue_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of named values defined within a service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListValue", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/listValue", + "Method": "POST", + "OperationID": "NamedValue_ListValue", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the secret of the named value specified by its identifier." + }, + { + "Name": "RefreshSecret", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/refreshSecret", + "Method": "POST", + "OperationID": "NamedValue_RefreshSecret", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Refresh the secret of the named value specified by its identifier." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "NamedValueContract", + "ResourceType": "Microsoft.ApiManagement/service/namedValues", + "ResourceKey": "namedValueId", + "ResourceKeySegment": "namedValues", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "NotificationContract": [ + { + "Name": "NotificationContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + "Method": "GET", + "OperationID": "Notification_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the Notification specified by its identifier." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + "Method": "PUT", + "OperationID": "Notification_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or Update API Management publisher notification." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + "Method": "PUT", + "OperationID": "Notification_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or Update API Management publisher notification." + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications", + "Method": "GET", + "OperationID": "Notification_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of properties defined within a service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListByNotification", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", + "Method": "GET", + "OperationID": "NotificationRecipientUser_ListByNotification", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByNotification", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the list of the Notification Recipient User subscribed to the notification." + }, + { + "Name": "CheckEntityExists", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + "Method": "HEAD", + "OperationID": "NotificationRecipientUser_CheckEntityExists", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Determine if the Notification Recipient User is subscribed to the notification." + }, + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + "Method": "PUT", + "OperationID": "NotificationRecipientUser_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Adds the API Management User to the list of Recipients for the Notification." + }, + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + "Method": "DELETE", + "OperationID": "NotificationRecipientUser_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Removes the API Management user from the list of Notification." + }, + { + "Name": "ListByNotification", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", + "Method": "GET", + "OperationID": "NotificationRecipientEmail_ListByNotification", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByNotification", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the list of the Notification Recipient Emails subscribed to a notification." + }, + { + "Name": "CheckEntityExists", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + "Method": "HEAD", + "OperationID": "NotificationRecipientEmail_CheckEntityExists", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Determine if Notification Recipient Email subscribed to the notification." + }, + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + "Method": "PUT", + "OperationID": "NotificationRecipientEmail_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Adds the Email address to the list of Recipients for the Notification." + }, + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + "Method": "DELETE", + "OperationID": "NotificationRecipientEmail_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Removes the email from the list of Notification." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "NotificationContract", + "ResourceType": "Microsoft.ApiManagement/service/notifications", + "ResourceKey": "notificationName", + "ResourceKeySegment": "notifications", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "OpenidConnectProviderContract": [ + { + "Name": "OpenidConnectProviderContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + "Method": "GET", + "OperationID": "OpenIdConnectProvider_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets specific OpenID Connect Provider without secrets." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + "Method": "HEAD", + "OperationID": "OpenIdConnectProvider_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Regenerate primary access key for GIT." + "Description": "Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier." }, - { - "Name": "RegenerateSecondaryKey", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", - "Method": "POST", - "OperationID": "TenantAccessGit_RegenerateSecondaryKey", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + "Method": "PUT", + "OperationID": "OpenIdConnectProvider_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates the OpenID Connect Provider." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + "Method": "PATCH", + "OperationID": "OpenIdConnectProvider_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the specific OpenID Connect Provider." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + "Method": "DELETE", + "OperationID": "OpenIdConnectProvider_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific OpenID Connect Provider of the API Management service instance." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders", + "Method": "GET", + "OperationID": "OpenIdConnectProvider_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists of all the OpenId Connect Providers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListSecrets", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", + "Method": "POST", + "OperationID": "OpenIdConnectProvider_ListSecrets", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the client secret details of the OpenID Connect Provider." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "OpenidConnectProviderContract", + "ResourceType": "Microsoft.ApiManagement/service/openidConnectProviders", + "ResourceKey": "opid", + "ResourceKeySegment": "openidConnectProviders", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "PortalRevisionContract": [ + { + "Name": "PortalRevisionContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + "Method": "GET", + "OperationID": "PortalRevision_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the developer portal's revision specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + "Method": "HEAD", + "OperationID": "PortalRevision_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Regenerate secondary access key for GIT." + "Description": "Gets the developer portal revision specified by its identifier." }, - { - "Name": "Deploy", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", - "Method": "POST", - "OperationID": "TenantConfiguration_Deploy", - "IsLongRunning": true, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + "Method": "PUT", + "OperationID": "PortalRevision_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + "Method": "PATCH", + "OperationID": "PortalRevision_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates the description of specified portal revision or makes it current." + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions", + "Method": "GET", + "OperationID": "PortalRevision_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists developer portal's revisions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "PortalRevisionContract", + "ResourceType": "Microsoft.ApiManagement/service/portalRevisions", + "ResourceKey": "portalRevisionId", + "ResourceKeySegment": "portalRevisions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "PortalSigninSettings": [ + { + "Name": "PortalSigninSetting", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + "Method": "GET", + "OperationID": "SignInSettings_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Sign In Settings for the Portal" + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + "Method": "HEAD", + "OperationID": "SignInSettings_GetEntityTag", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete." + "Description": "Gets the entity state (Etag) version of the SignInSettings." }, - { - "Name": "Save", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", - "Method": "POST", - "OperationID": "TenantConfiguration_Save", - "IsLongRunning": true, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + "Method": "PUT", + "OperationID": "SignInSettings_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or Update Sign-In settings." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + "Method": "PATCH", + "OperationID": "SignInSettings_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update Sign-In settings." + } + ], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "PortalSigninSettings", + "ResourceType": "Microsoft.ApiManagement/service/portalsettings", + "ResourceKey": "signin", + "ResourceKeySegment": "portalsettings", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "PortalSignupSettings": [ + { + "Name": "PortalSignupSetting", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + "Method": "GET", + "OperationID": "SignUpSettings_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Sign Up Settings for the Portal" + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + "Method": "HEAD", + "OperationID": "SignUpSettings_GetEntityTag", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete." + "Description": "Gets the entity state (Etag) version of the SignUpSettings." }, - { - "Name": "Validate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", - "Method": "POST", - "OperationID": "TenantConfiguration_Validate", - "IsLongRunning": true, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + "Method": "PUT", + "OperationID": "SignUpSettings_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or Update Sign-Up settings." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + "Method": "PATCH", + "OperationID": "SignUpSettings_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update Sign-Up settings." + } + ], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "PortalSignupSettings", + "ResourceType": "Microsoft.ApiManagement/service/portalsettings", + "ResourceKey": "signup", + "ResourceKeySegment": "portalsettings", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "PortalDelegationSettings": [ + { + "Name": "PortalDelegationSetting", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + "Method": "GET", + "OperationID": "DelegationSettings_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Delegation Settings for the Portal." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + "Method": "HEAD", + "OperationID": "DelegationSettings_GetEntityTag", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete." + "Description": "Gets the entity state (Etag) version of the DelegationSettings." }, - { - "Name": "GetSyncState", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", - "Method": "GET", - "OperationID": "TenantConfiguration_GetSyncState", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + "Method": "PUT", + "OperationID": "DelegationSettings_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or Update Delegation settings." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + "Method": "PATCH", + "OperationID": "DelegationSettings_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update Delegation settings." + } + ], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListSecrets", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation/listSecrets", + "Method": "POST", + "OperationID": "DelegationSettings_ListSecrets", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the secret validation key of the DelegationSettings." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "PortalDelegationSettings", + "ResourceType": "Microsoft.ApiManagement/service/portalsettings", + "ResourceKey": "delegation", + "ResourceKeySegment": "portalsettings", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "PrivateEndpointConnection": [ + { + "Name": "PrivateEndpointConnection", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "GET", + "OperationID": "PrivateEndpointConnection_GetByName", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the Private Endpoint Connection specified by its identifier." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "PUT", + "OperationID": "PrivateEndpointConnection_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new Private Endpoint Connection or updates an existing one." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "PUT", + "OperationID": "PrivateEndpointConnection_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new Private Endpoint Connection or updates an existing one." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "DELETE", + "OperationID": "PrivateEndpointConnection_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified Private Endpoint Connection." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections", + "Method": "GET", + "OperationID": "PrivateEndpointConnection_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all private endpoint connections of the API Management service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "PrivateEndpointConnection", + "ResourceType": "Microsoft.ApiManagement/service/privateEndpointConnections", + "ResourceKey": "privateEndpointConnectionName", + "ResourceKeySegment": "privateEndpointConnections", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "PrivateLinkResource": [ + { + "Name": "PrivateLinkResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources/{privateLinkSubResourceName}", + "Method": "GET", + "OperationID": "PrivateEndpointConnection_GetPrivateLinkResource", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the private link resources" + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources", + "Method": "GET", + "OperationID": "PrivateEndpointConnection_ListPrivateLinkResources", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListPrivateLinkResources", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the private link resources" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "PrivateLinkResource", + "ResourceType": "Microsoft.ApiManagement/service/privateLinkResources", + "ResourceKey": "privateLinkSubResourceName", + "ResourceKeySegment": "privateLinkResources", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ProductContract": [ + { + "Name": "ProductContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + "Method": "GET", + "OperationID": "Product_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the product specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + "Method": "HEAD", + "OperationID": "Product_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the status of the most recent synchronization between the configuration database and the Git repository." - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "AccessInformationContract", - "ResourceType": "Microsoft.ApiManagement/service/tenant", - "ResourceKey": "accessName", - "ResourceKeySegment": "tenant", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "UserContract": { - "Name": "UserContract", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", - "Method": "GET", - "OperationID": "User_Get", + "Description": "Gets the entity state (Etag) version of the product specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + "Method": "PUT", + "OperationID": "Product_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or Updates a product." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + "Method": "PATCH", + "OperationID": "Product_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update existing product details." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + "Method": "DELETE", + "OperationID": "Product_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete product." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products", + "Method": "GET", + "OperationID": "Product_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of products in the specified service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListByProduct", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", + "Method": "GET", + "OperationID": "ProductApi_ListByProduct", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByProduct", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of the APIs associated with a product." + }, + { + "Name": "CheckEntityExists", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + "Method": "HEAD", + "OperationID": "ProductApi_CheckEntityExists", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Checks that API entity specified by identifier is associated with the Product entity." + }, + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + "Method": "PUT", + "OperationID": "ProductApi_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Adds an API to the specified product." + }, + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + "Method": "DELETE", + "OperationID": "ProductApi_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified API from the specified product." + }, + { + "Name": "ListByProduct", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", + "Method": "GET", + "OperationID": "ProductGroup_ListByProduct", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByProduct", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists the collection of developer groups associated with the specified product." + }, + { + "Name": "CheckEntityExists", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + "Method": "HEAD", + "OperationID": "ProductGroup_CheckEntityExists", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Checks that Group entity specified by identifier is associated with the Product entity." + }, + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + "Method": "PUT", + "OperationID": "ProductGroup_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Adds the association between the specified developer group with the specified product." + }, + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + "Method": "DELETE", + "OperationID": "ProductGroup_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the association between the specified group and product." + }, + { + "Name": "List", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", + "Method": "GET", + "OperationID": "ProductSubscriptions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists the collection of subscriptions to the specified product." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "ProductContract", + "ResourceType": "Microsoft.ApiManagement/service/products", + "ResourceKey": "productId", + "ResourceKeySegment": "products", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "GlobalSchemaContract": [ + { + "Name": "GlobalSchemaContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + "Method": "GET", + "OperationID": "GlobalSchema_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the Schema specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + "Method": "HEAD", + "OperationID": "GlobalSchema_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the user specified by its identifier." - } - ], - "ExistOperation": { - "Name": "CheckExistence", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", - "Method": "HEAD", - "OperationID": "User_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the user specified by its identifier." - }, - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", - "Method": "PUT", - "OperationID": "User_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or Updates a user." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", - "Method": "PATCH", - "OperationID": "User_Update", + "Description": "Gets the entity state (Etag) version of the Schema specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + "Method": "PUT", + "OperationID": "GlobalSchema_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates new or updates existing specified Schema of the API Management service instance." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + "Method": "PUT", + "OperationID": "GlobalSchema_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates new or updates existing specified Schema of the API Management service instance." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + "Method": "DELETE", + "OperationID": "GlobalSchema_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific Schema." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas", + "Method": "GET", + "OperationID": "GlobalSchema_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of schemas registered with service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "GlobalSchemaContract", + "ResourceType": "Microsoft.ApiManagement/service/schemas", + "ResourceKey": "schemaId", + "ResourceKeySegment": "schemas", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "TenantSettingsContract": [ + { + "Name": "TenantSettingsContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings/{settingsType}", + "Method": "GET", + "OperationID": "TenantSettings_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get tenant settings." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings", + "Method": "GET", + "OperationID": "TenantSettings_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Public settings." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "TenantSettingsContract", + "ResourceType": "Microsoft.ApiManagement/service/settings", + "ResourceKey": "settingsType", + "ResourceKeySegment": "settings", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "SubscriptionContract": [ + { + "Name": "SubscriptionContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + "Method": "GET", + "OperationID": "Subscription_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the specified Subscription entity." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + "Method": "HEAD", + "OperationID": "Subscription_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Updates the details of the user specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", - "Method": "DELETE", - "OperationID": "User_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific user." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users", - "Method": "GET", - "OperationID": "User_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "ItemName": "value", - "NextLinkName": "nextLink" + "Description": "Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier." + }, + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + "Method": "PUT", + "OperationID": "Subscription_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates the subscription of specified user to the specified product." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + "Method": "PATCH", + "OperationID": "Subscription_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of a subscription specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + "Method": "DELETE", + "OperationID": "Subscription_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified subscription." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions", + "Method": "GET", + "OperationID": "Subscription_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all subscriptions of the API Management service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "RegeneratePrimaryKey", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey", + "Method": "POST", + "OperationID": "Subscription_RegeneratePrimaryKey", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Regenerates primary key of existing subscription of the API Management service instance." }, - "Description": "Lists a collection of registered users in the specified service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GenerateSsoUrl", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", - "Method": "POST", - "OperationID": "User_GenerateSsoUrl", + { + "Name": "RegenerateSecondaryKey", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey", + "Method": "POST", + "OperationID": "Subscription_RegenerateSecondaryKey", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Regenerates secondary key of existing subscription of the API Management service instance." + }, + { + "Name": "ListSecrets", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", + "Method": "POST", + "OperationID": "Subscription_ListSecrets", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the specified Subscription keys." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "SubscriptionContract", + "ResourceType": "Microsoft.ApiManagement/service/subscriptions", + "ResourceKey": "sid", + "ResourceKeySegment": "subscriptions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "SubscriptionContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}", + "Method": "GET", + "OperationID": "UserSubscription_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the specified Subscription entity associated with a particular user." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions", + "Method": "GET", + "OperationID": "UserSubscription_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists the collection of subscriptions of the specified user." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "UserContract" + ], + "SwaggerModelName": "SubscriptionContract", + "ResourceType": "Microsoft.ApiManagement/service/users/subscriptions", + "ResourceKey": "sid", + "ResourceKeySegment": "subscriptions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "AccessInformationContract": [ + { + "Name": "AccessInformationContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + "Method": "GET", + "OperationID": "TenantAccess_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get tenant access information details without secrets." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + "Method": "HEAD", + "OperationID": "TenantAccess_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal." + "Description": "Tenant access metadata" }, - { - "Name": "GetSharedAccessToken", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token", - "Method": "POST", - "OperationID": "User_GetSharedAccessToken", + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + "Method": "PUT", + "OperationID": "TenantAccess_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update tenant access information details." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + "Method": "PATCH", + "OperationID": "TenantAccess_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update tenant access information details." + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant", + "Method": "GET", + "OperationID": "TenantAccess_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Returns list of access infos - for Git and Management endpoints." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "RegeneratePrimaryKey", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey", + "Method": "POST", + "OperationID": "TenantAccess_RegeneratePrimaryKey", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Regenerate primary access key" + }, + { + "Name": "RegenerateSecondaryKey", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey", + "Method": "POST", + "OperationID": "TenantAccess_RegenerateSecondaryKey", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Regenerate secondary access key" + }, + { + "Name": "ListSecrets", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", + "Method": "POST", + "OperationID": "TenantAccess_ListSecrets", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get tenant access information details." + }, + { + "Name": "RegeneratePrimaryKey", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", + "Method": "POST", + "OperationID": "TenantAccessGit_RegeneratePrimaryKey", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Regenerate primary access key for GIT." + }, + { + "Name": "RegenerateSecondaryKey", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", + "Method": "POST", + "OperationID": "TenantAccessGit_RegenerateSecondaryKey", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Regenerate secondary access key for GIT." + }, + { + "Name": "Deploy", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", + "Method": "POST", + "OperationID": "TenantConfiguration_Deploy", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete." + }, + { + "Name": "Save", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", + "Method": "POST", + "OperationID": "TenantConfiguration_Save", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete." + }, + { + "Name": "Validate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", + "Method": "POST", + "OperationID": "TenantConfiguration_Validate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete." + }, + { + "Name": "GetSyncState", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", + "Method": "GET", + "OperationID": "TenantConfiguration_GetSyncState", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the status of the most recent synchronization between the configuration database and the Git repository." + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "AccessInformationContract", + "ResourceType": "Microsoft.ApiManagement/service/tenant", + "ResourceKey": "accessName", + "ResourceKeySegment": "tenant", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "UserContract": [ + { + "Name": "UserContract", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + "Method": "GET", + "OperationID": "User_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the details of the user specified by its identifier." + } + ], + "ExistOperation": { + "Name": "CheckExistence", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + "Method": "HEAD", + "OperationID": "User_GetEntityTag", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the Shared Access Authorization Token for the User." + "Description": "Gets the entity state (Etag) version of the user specified by its identifier." }, - { - "Name": "List", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", - "Method": "GET", - "OperationID": "UserGroup_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + "Method": "PUT", + "OperationID": "User_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or Updates a user." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + "Method": "PATCH", + "OperationID": "User_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the details of the user specified by its identifier." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + "Method": "DELETE", + "OperationID": "User_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specific user." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users", + "Method": "GET", + "OperationID": "User_ListByService", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByService", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists a collection of registered users in the specified service instance." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "GenerateSsoUrl", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", + "Method": "POST", + "OperationID": "User_GenerateSsoUrl", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal." }, - "Description": "Lists all user groups." - }, - { - "Name": "List", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", - "Method": "GET", - "OperationID": "UserIdentities_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "GetSharedAccessToken", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token", + "Method": "POST", + "OperationID": "User_GetSharedAccessToken", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the Shared Access Authorization Token for the User." }, - "Description": "List of all user identities." - }, - { - "Name": "Send", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/confirmations/password/send", - "Method": "POST", - "OperationID": "UserConfirmationPassword_Send", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Sends confirmation" - } - ], - "Parents": [ - "ApiManagementServiceResource" - ], - "SwaggerModelName": "UserContract", - "ResourceType": "Microsoft.ApiManagement/service/users", - "ResourceKey": "userId", - "ResourceKeySegment": "users", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + { + "Name": "List", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", + "Method": "GET", + "OperationID": "UserGroup_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all user groups." + }, + { + "Name": "List", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", + "Method": "GET", + "OperationID": "UserIdentities_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List of all user identities." + }, + { + "Name": "Send", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/confirmations/password/send", + "Method": "POST", + "OperationID": "UserConfirmationPassword_Send", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Sends confirmation" + } + ], + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "UserContract", + "ResourceType": "Microsoft.ApiManagement/service/users", + "ResourceKey": "userId", + "ResourceKeySegment": "users", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DiagnosticContract.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DiagnosticContract.tsp index 81ca134420..0a94cd13ba 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DiagnosticContract.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DiagnosticContract.tsp @@ -25,6 +25,35 @@ model DiagnosticContract >; } +@armResourceOperations +interface DiagnosticContractOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface DiagnosticContracts { /** @@ -32,21 +61,21 @@ interface DiagnosticContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiDiagnostic_Get") - get is ArmResourceRead; + get is DiagnosticContractOps.Read; /** * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiDiagnostic_GetEntityTag") - getEntityTag is ArmResourceCheckExistence; + getEntityTag is DiagnosticContractOps.CheckExistence; /** * Creates a new Diagnostic for an API or updates an existing one. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiDiagnostic_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceSync< + createOrUpdate is DiagnosticContractOps.CreateOrUpdateSync< DiagnosticContract, Parameters = { /** @@ -63,7 +92,7 @@ interface DiagnosticContracts { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @parameterVisibility @operationId("ApiDiagnostic_Update") - update is ArmCustomPatchSync< + update is DiagnosticContractOps.CustomPatchSync< DiagnosticContract, PatchModel = DiagnosticContract, Parameters = { @@ -80,7 +109,7 @@ interface DiagnosticContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiDiagnostic_Delete") - delete is ArmResourceDeleteSync< + delete is DiagnosticContractOps.DeleteSync< DiagnosticContract, Parameters = { /** @@ -96,7 +125,113 @@ interface DiagnosticContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiDiagnostic_ListByService") - listByService is ArmResourceListByParent< + listByService is DiagnosticContractOps.List< + DiagnosticContract, + Parameters = { + /** + * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
+ */ + @query("$filter") + $filter?: string; + + /** + * Number of records to return. + */ + @minValue(1) + @query("$top") + $top?: int32; + + /** + * Number of records to skip. + */ + @query("$skip") + $skip?: int32; + } + >; +} +@armResourceOperations +interface DiagnosticOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface Diagnostic { + /** + * Gets the details of the Diagnostic specified by its identifier. + */ + get is DiagnosticOps.Read; + + /** + * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. + */ + getEntityTag is DiagnosticOps.CheckExistence; + + /** + * Creates a new Diagnostic or updates an existing one. + */ + createOrUpdate is DiagnosticOps.CreateOrUpdateSync< + DiagnosticContract, + Parameters = { + /** + * ETag of the Entity. Not required when creating an entity, but required when updating an entity. + */ + @header + `If-Match`?: string; + } + >; + + /** + * Updates the details of the Diagnostic specified by its identifier. + */ + @parameterVisibility + update is DiagnosticOps.CustomPatchSync< + DiagnosticContract, + PatchModel = DiagnosticContract, + Parameters = { + /** + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + */ + @header + `If-Match`: string; + } + >; + + /** + * Deletes the specified Diagnostic. + */ + delete is DiagnosticOps.DeleteSync< + DiagnosticContract, + Parameters = { + /** + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + */ + @header + `If-Match`: string; + } + >; + + /** + * Lists all diagnostics of the API Management service instance. + */ + listByService is DiagnosticOps.List< DiagnosticContract, Parameters = { /** @@ -133,3 +268,7 @@ interface DiagnosticContracts { @@doc(DiagnosticContracts.update::parameters.properties, "Diagnostic Update parameters." ); +@@doc(Diagnostic.createOrUpdate::parameters.resource, "Create parameters."); +@@doc(Diagnostic.update::parameters.properties, + "Diagnostic Update parameters." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DiagnosticContractFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DiagnosticContractFixMe.tsp deleted file mode 100644 index b312d86c1f..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DiagnosticContractFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model DiagnosticContract. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/IssueContract.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/IssueContract.tsp index e8d6441e71..4d237dcaf1 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/IssueContract.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/IssueContract.tsp @@ -25,6 +25,35 @@ model IssueContract >; } +@armResourceOperations +interface IssueContractOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface IssueContracts { /** @@ -32,7 +61,7 @@ interface IssueContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiIssue_Get") - get is ArmResourceRead< + get is IssueContractOps.Read< IssueContract, Parameters = { /** @@ -48,14 +77,14 @@ interface IssueContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiIssue_GetEntityTag") - getEntityTag is ArmResourceCheckExistence; + getEntityTag is IssueContractOps.CheckExistence; /** * Creates a new Issue for an API or updates an existing one. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiIssue_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceSync< + createOrUpdate is IssueContractOps.CreateOrUpdateSync< IssueContract, Parameters = { /** @@ -72,7 +101,7 @@ interface IssueContracts { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @parameterVisibility @operationId("ApiIssue_Update") - update is ArmCustomPatchSync< + update is IssueContractOps.CustomPatchSync< IssueContract, PatchModel = IssueUpdateContract, Parameters = { @@ -89,7 +118,7 @@ interface IssueContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiIssue_Delete") - delete is ArmResourceDeleteSync< + delete is IssueContractOps.DeleteSync< IssueContract, Parameters = { /** @@ -105,7 +134,7 @@ interface IssueContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiIssue_ListByService") - listByService is ArmResourceListByParent< + listByService is IssueContractOps.List< IssueContract, Parameters = { /** @@ -135,6 +164,63 @@ interface IssueContracts { } >; } +@armResourceOperations +interface IssueOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface Issue { + /** + * Gets API Management issue details + */ + get is IssueOps.Read; + + /** + * Lists a collection of issues in the specified service instance. + */ + listByService is IssueOps.List< + IssueContract, + Parameters = { + /** + * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
+ */ + @query("$filter") + $filter?: string; + + /** + * Number of records to return. + */ + @minValue(1) + @query("$top") + $top?: int32; + + /** + * Number of records to skip. + */ + @query("$skip") + $skip?: int32; + } + >; +} @@maxLength(IssueContract.name, 256); @@minLength(IssueContract.name, 1); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/IssueContractFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/IssueContractFixMe.tsp deleted file mode 100644 index c84994d009..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/IssueContractFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model IssueContract. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PolicyContract.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PolicyContract.tsp index 574002aea1..da53be07f9 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PolicyContract.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PolicyContract.tsp @@ -26,6 +26,41 @@ model PolicyContract >; } +@armResourceOperations +interface PolicyContractOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface PolicyContracts { /** @@ -33,7 +68,7 @@ interface PolicyContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiOperationPolicy_Get") - get is ArmResourceRead< + get is PolicyContractOps.Read< PolicyContract, Parameters = { /** @@ -49,14 +84,14 @@ interface PolicyContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiOperationPolicy_GetEntityTag") - getEntityTag is ArmResourceCheckExistence; + getEntityTag is PolicyContractOps.CheckExistence; /** * Creates or updates policy configuration for the API Operation level. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiOperationPolicy_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceSync< + createOrUpdate is PolicyContractOps.CreateOrUpdateSync< PolicyContract, Parameters = { /** @@ -72,7 +107,7 @@ interface PolicyContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiOperationPolicy_Delete") - delete is ArmResourceDeleteSync< + delete is PolicyContractOps.DeleteSync< PolicyContract, Parameters = { /** @@ -88,7 +123,250 @@ interface PolicyContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("ApiOperationPolicy_ListByOperation") - listByOperation is ArmResourceListByParent; + listByOperation is PolicyContractOps.List; +} +@armResourceOperations +interface ApiPolicyOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface ApiPolicy { + /** + * Get the policy configuration at the API level. + */ + get is ApiPolicyOps.Read< + PolicyContract, + Parameters = { + /** + * Policy Export Format. + */ + @query("format") + format?: PolicyExportFormat = PolicyExportFormat.xml; + } + >; + + /** + * Gets the entity state (Etag) version of the API policy specified by its identifier. + */ + getEntityTag is ApiPolicyOps.CheckExistence; + + /** + * Creates or updates policy configuration for the API. + */ + createOrUpdate is ApiPolicyOps.CreateOrUpdateSync< + PolicyContract, + Parameters = { + /** + * ETag of the Entity. Not required when creating an entity, but required when updating an entity. + */ + @header + `If-Match`?: string; + } + >; + + /** + * Deletes the policy configuration at the Api. + */ + delete is ApiPolicyOps.DeleteSync< + PolicyContract, + Parameters = { + /** + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + */ + @header + `If-Match`: string; + } + >; + + /** + * Get the policy configuration at the API level. + */ + listByApi is ApiPolicyOps.List; +} +@armResourceOperations +interface PolicyOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface Policy { + /** + * Get the Global policy definition of the Api Management service. + */ + get is PolicyOps.Read< + PolicyContract, + Parameters = { + /** + * Policy Export Format. + */ + @query("format") + format?: PolicyExportFormat = PolicyExportFormat.xml; + } + >; + + /** + * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. + */ + getEntityTag is PolicyOps.CheckExistence; + + /** + * Creates or updates the global policy configuration of the Api Management service. + */ + createOrUpdate is PolicyOps.CreateOrUpdateSync< + PolicyContract, + Parameters = { + /** + * ETag of the Entity. Not required when creating an entity, but required when updating an entity. + */ + @header + `If-Match`?: string; + } + >; + + /** + * Deletes the global policy configuration of the Api Management Service. + */ + delete is PolicyOps.DeleteSync< + PolicyContract, + Parameters = { + /** + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + */ + @header + `If-Match`: string; + } + >; + + /** + * Lists all the Global Policy definitions of the Api Management service. + */ + listByService is PolicyOps.List; +} +@armResourceOperations +interface ProductPolicyOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface ProductPolicy { + /** + * Get the policy configuration at the Product level. + */ + get is ProductPolicyOps.Read< + PolicyContract, + Parameters = { + /** + * Policy Export Format. + */ + @query("format") + format?: PolicyExportFormat = PolicyExportFormat.xml; + } + >; + + /** + * Get the ETag of the policy configuration at the Product level. + */ + getEntityTag is ProductPolicyOps.CheckExistence; + + /** + * Creates or updates policy configuration for the Product. + */ + createOrUpdate is ProductPolicyOps.CreateOrUpdateSync< + PolicyContract, + Parameters = { + /** + * ETag of the Entity. Not required when creating an entity, but required when updating an entity. + */ + @header + `If-Match`?: string; + } + >; + + /** + * Deletes the policy configuration at the Product. + */ + delete is ProductPolicyOps.DeleteSync< + PolicyContract, + Parameters = { + /** + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + */ + @header + `If-Match`: string; + } + >; + + /** + * Get the policy configuration at the Product level. + */ + listByProduct is ProductPolicyOps.List; } @@doc(PolicyContract.name, "The identifier of the Policy."); @@ -96,3 +374,12 @@ interface PolicyContracts { @@doc(PolicyContracts.createOrUpdate::parameters.resource, "The policy contents to apply." ); +@@doc(ApiPolicy.createOrUpdate::parameters.resource, + "The policy contents to apply." +); +@@doc(Policy.createOrUpdate::parameters.resource, + "The policy contents to apply." +); +@@doc(ProductPolicy.createOrUpdate::parameters.resource, + "The policy contents to apply." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PolicyContractFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PolicyContractFixMe.tsp deleted file mode 100644 index 5b75c5c07d..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PolicyContractFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model PolicyContract. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalDelegationSettings.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalDelegationSettings.tsp index ce7e7e0602..667794feaf 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalDelegationSettings.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalDelegationSettings.tsp @@ -27,27 +27,21 @@ model PortalDelegationSettings } @armResourceOperations -interface PortalDelegationSettingsOperationGroup { +interface DelegationSettings { /** * Get Delegation Settings for the Portal. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("DelegationSettings_Get") get is ArmResourceRead; /** * Gets the entity state (Etag) version of the DelegationSettings. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("DelegationSettings_GetEntityTag") getEntityTag is ArmResourceCheckExistence; /** * Create or Update Delegation settings. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" - @operationId("DelegationSettings_CreateOrUpdate") createOrUpdate is ArmResourceCreateOrReplaceSync< PortalDelegationSettings, Parameters = { @@ -63,9 +57,7 @@ interface PortalDelegationSettingsOperationGroup { /** * Update Delegation settings. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @parameterVisibility - @operationId("DelegationSettings_Update") update is ArmCustomPatchSync< PortalDelegationSettings, PatchModel = PortalDelegationSettings, @@ -82,8 +74,6 @@ interface PortalDelegationSettingsOperationGroup { /** * Gets the secret validation key of the DelegationSettings. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("DelegationSettings_ListSecrets") listSecrets is ArmResourceActionSync< PortalDelegationSettings, void, @@ -95,9 +85,9 @@ interface PortalDelegationSettingsOperationGroup { @@doc(PortalDelegationSettings.properties, "Delegation settings contract properties." ); -@@doc(PortalDelegationSettingsOperationGroup.createOrUpdate::parameters.resource, +@@doc(DelegationSettings.createOrUpdate::parameters.resource, "Create or update parameters." ); -@@doc(PortalDelegationSettingsOperationGroup.update::parameters.properties, +@@doc(DelegationSettings.update::parameters.properties, "Update Delegation settings." ); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSigninSettings.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSigninSettings.tsp index 4eb26912bc..44b5e6bb77 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSigninSettings.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSigninSettings.tsp @@ -27,27 +27,21 @@ model PortalSigninSettings } @armResourceOperations -interface PortalSigninSettingsOperationGroup { +interface SignInSettings { /** * Get Sign In Settings for the Portal */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("SignInSettings_Get") get is ArmResourceRead; /** * Gets the entity state (Etag) version of the SignInSettings. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("SignInSettings_GetEntityTag") getEntityTag is ArmResourceCheckExistence; /** * Create or Update Sign-In settings. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" - @operationId("SignInSettings_CreateOrUpdate") createOrUpdate is ArmResourceCreateOrReplaceSync< PortalSigninSettings, Parameters = { @@ -63,9 +57,7 @@ interface PortalSigninSettingsOperationGroup { /** * Update Sign-In settings. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @parameterVisibility - @operationId("SignInSettings_Update") update is ArmCustomPatchSync< PortalSigninSettings, PatchModel = PortalSigninSettings, @@ -82,9 +74,7 @@ interface PortalSigninSettingsOperationGroup { @@doc(PortalSigninSettings.name, ""); @@doc(PortalSigninSettings.properties, "Sign-in settings contract properties."); -@@doc(PortalSigninSettingsOperationGroup.createOrUpdate::parameters.resource, +@@doc(SignInSettings.createOrUpdate::parameters.resource, "Create or update parameters." ); -@@doc(PortalSigninSettingsOperationGroup.update::parameters.properties, - "Update Sign-In settings." -); +@@doc(SignInSettings.update::parameters.properties, "Update Sign-In settings."); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSignupSettings.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSignupSettings.tsp index 0c21bdad18..b5e121ea72 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSignupSettings.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSignupSettings.tsp @@ -27,27 +27,21 @@ model PortalSignupSettings } @armResourceOperations -interface PortalSignupSettingsOperationGroup { +interface SignUpSettings { /** * Get Sign Up Settings for the Portal */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("SignUpSettings_Get") get is ArmResourceRead; /** * Gets the entity state (Etag) version of the SignUpSettings. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("SignUpSettings_GetEntityTag") getEntityTag is ArmResourceCheckExistence; /** * Create or Update Sign-Up settings. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" - @operationId("SignUpSettings_CreateOrUpdate") createOrUpdate is ArmResourceCreateOrReplaceSync< PortalSignupSettings, Parameters = { @@ -63,9 +57,7 @@ interface PortalSignupSettingsOperationGroup { /** * Update Sign-Up settings. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @parameterVisibility - @operationId("SignUpSettings_Update") update is ArmCustomPatchSync< PortalSignupSettings, PatchModel = PortalSignupSettings, @@ -82,9 +74,7 @@ interface PortalSignupSettingsOperationGroup { @@doc(PortalSignupSettings.name, ""); @@doc(PortalSignupSettings.properties, "Sign-up settings contract properties."); -@@doc(PortalSignupSettingsOperationGroup.createOrUpdate::parameters.resource, +@@doc(SignUpSettings.createOrUpdate::parameters.resource, "Create or update parameters." ); -@@doc(PortalSignupSettingsOperationGroup.update::parameters.properties, - "Update Sign-Up settings." -); +@@doc(SignUpSettings.update::parameters.properties, "Update Sign-Up settings."); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContract.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContract.tsp index 976c5b534c..20a0b32558 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContract.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContract.tsp @@ -25,6 +25,29 @@ model SubscriptionContract >; } +@armResourceOperations +interface SubscriptionContractOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface SubscriptionContracts { /** @@ -32,21 +55,21 @@ interface SubscriptionContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Subscription_Get") - get is ArmResourceRead; + get is SubscriptionContractOps.Read; /** * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Subscription_GetEntityTag") - getEntityTag is ArmResourceCheckExistence; + getEntityTag is SubscriptionContractOps.CheckExistence; /** * Creates or updates the subscription of specified user to the specified product. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Subscription_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceSync< + createOrUpdate is SubscriptionContractOps.CreateOrUpdateSync< SubscriptionContract, Parameters = { /** @@ -77,7 +100,7 @@ interface SubscriptionContracts { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @parameterVisibility @operationId("Subscription_Update") - update is ArmCustomPatchSync< + update is SubscriptionContractOps.CustomPatchSync< SubscriptionContract, PatchModel = SubscriptionUpdateParameters, Parameters = { @@ -108,7 +131,7 @@ interface SubscriptionContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Subscription_Delete") - delete is ArmResourceDeleteSync< + delete is SubscriptionContractOps.DeleteSync< SubscriptionContract, Parameters = { /** @@ -124,7 +147,7 @@ interface SubscriptionContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Subscription_List") - list is ArmResourceListByParent< + list is SubscriptionContractOps.List< SubscriptionContract, Parameters = { /** @@ -153,7 +176,7 @@ interface SubscriptionContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Subscription_RegeneratePrimaryKey") - regeneratePrimaryKey is ArmResourceActionSync< + regeneratePrimaryKey is SubscriptionContractOps.ActionSync< SubscriptionContract, void, NoContentResponse @@ -164,7 +187,7 @@ interface SubscriptionContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Subscription_RegenerateSecondaryKey") - regenerateSecondaryKey is ArmResourceActionSync< + regenerateSecondaryKey is SubscriptionContractOps.ActionSync< SubscriptionContract, void, NoContentResponse @@ -175,12 +198,75 @@ interface SubscriptionContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Subscription_ListSecrets") - listSecrets is ArmResourceActionSync< + listSecrets is SubscriptionContractOps.ActionSync< SubscriptionContract, void, ArmResponse >; } +@armResourceOperations +interface UserSubscriptionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface UserSubscription { + /** + * Gets the specified Subscription entity associated with a particular user. + */ + get is UserSubscriptionOps.Read; + + /** + * Lists the collection of subscriptions of the specified user. + */ + list is UserSubscriptionOps.List< + SubscriptionContract, + Parameters = { + /** + * | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
|name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
+ */ + @query("$filter") + $filter?: string; + + /** + * Number of records to return. + */ + @minValue(1) + @query("$top") + $top?: int32; + + /** + * Number of records to skip. + */ + @query("$skip") + $skip?: int32; + } + >; +} @@maxLength(SubscriptionContract.name, 256); @@doc(SubscriptionContract.name, diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContractFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContractFixMe.tsp deleted file mode 100644 index e99b559446..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContractFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model SubscriptionContract. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/TagContract.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/TagContract.tsp index 5c4bfe7526..434926c14f 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/TagContract.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/TagContract.tsp @@ -25,6 +25,41 @@ model TagContract >; } +@armResourceOperations +interface TagContractOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface TagContracts { /** @@ -32,14 +67,14 @@ interface TagContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Tag_GetByOperation") - getByOperation is ArmResourceRead; + getByOperation is TagContractOps.Read; /** * Gets the entity state version of the tag specified by its identifier. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Tag_GetEntityStateByOperation") - getEntityStateByOperation is ArmResourceCheckExistence; + getEntityStateByOperation is TagContractOps.CheckExistence; // FIXME: (ArmResourceCreateOrReplace): ArmResourceCreateOrReplaceAsync/ArmResourceCreateOrReplaceSync should have a body parameter. /** @@ -47,21 +82,100 @@ interface TagContracts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Tag_AssignToOperation") - assignToOperation is ArmResourceCreateOrReplaceSync; + assignToOperation is TagContractOps.CreateOrUpdateSync; /** * Detach the tag from the Operation. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Tag_DetachFromOperation") - detachFromOperation is ArmResourceDeleteSync; + detachFromOperation is TagContractOps.DeleteSync; /** * Lists all Tags associated with the Operation. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Tag_ListByOperation") - listByOperation is ArmResourceListByParent< + listByOperation is TagContractOps.List< + TagContract, + Parameters = { + /** + * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
+ */ + @query("$filter") + $filter?: string; + + /** + * Number of records to return. + */ + @minValue(1) + @query("$top") + $top?: int32; + + /** + * Number of records to skip. + */ + @query("$skip") + $skip?: int32; + } + >; +} +@armResourceOperations +interface TagOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface Tag { + /** + * Get tag associated with the API. + */ + getByApi is TagOps.Read; + + /** + * Gets the entity state version of the tag specified by its identifier. + */ + getEntityStateByApi is TagOps.CheckExistence; + + // FIXME: (ArmResourceCreateOrReplace): ArmResourceCreateOrReplaceAsync/ArmResourceCreateOrReplaceSync should have a body parameter. + /** + * Assign tag to the Api. + */ + assignToApi is TagOps.CreateOrUpdateSync; + + /** + * Detach the tag from the Api. + */ + detachFromApi is TagOps.DeleteSync; + + /** + * Lists all Tags associated with the API. + */ + listByApi is TagOps.List< TagContract, Parameters = { /** @@ -85,6 +199,219 @@ interface TagContracts { } >; } +@armResourceOperations +interface TagContractOperationGroupOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface TagContractOperationGroup { + /** + * Get tag associated with the Product. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Tag_GetByProduct") + getByProduct is TagContractOperationGroupOps.Read; + + /** + * Gets the entity state version of the tag specified by its identifier. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Tag_GetEntityStateByProduct") + getEntityStateByProduct is TagContractOperationGroupOps.CheckExistence; + + // FIXME: (ArmResourceCreateOrReplace): ArmResourceCreateOrReplaceAsync/ArmResourceCreateOrReplaceSync should have a body parameter. + /** + * Assign tag to the Product. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Tag_AssignToProduct") + assignToProduct is TagContractOperationGroupOps.CreateOrUpdateSync; + + /** + * Detach the tag from the Product. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Tag_DetachFromProduct") + detachFromProduct is TagContractOperationGroupOps.DeleteSync; + + /** + * Lists all Tags associated with the Product. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Tag_ListByProduct") + listByProduct is TagContractOperationGroupOps.List< + TagContract, + Parameters = { + /** + * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
+ */ + @query("$filter") + $filter?: string; + + /** + * Number of records to return. + */ + @minValue(1) + @query("$top") + $top?: int32; + + /** + * Number of records to skip. + */ + @query("$skip") + $skip?: int32; + } + >; +} +@armResourceOperations +interface TagContractOperationGroupOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface TagContractOperationGroup { + /** + * Gets the details of the tag specified by its identifier. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Tag_Get") + get is TagContractOperationGroupOps.Read; + + /** + * Gets the entity state version of the tag specified by its identifier. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Tag_GetEntityState") + getEntityState is TagContractOperationGroupOps.CheckExistence; + + /** + * Creates a tag. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Tag_CreateOrUpdate") + createOrUpdate is TagContractOperationGroupOps.CreateOrUpdateSync< + TagContract, + Parameters = { + /** + * ETag of the Entity. Not required when creating an entity, but required when updating an entity. + */ + @header + `If-Match`?: string; + } + >; + + /** + * Updates the details of the tag specified by its identifier. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @parameterVisibility + @operationId("Tag_Update") + update is TagContractOperationGroupOps.CustomPatchSync< + TagContract, + PatchModel = TagCreateUpdateParameters, + Parameters = { + /** + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + */ + @header + `If-Match`: string; + } + >; + + /** + * Deletes specific tag of the API Management service instance. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Tag_Delete") + delete is TagContractOperationGroupOps.DeleteSync< + TagContract, + Parameters = { + /** + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + */ + @header + `If-Match`: string; + } + >; + + /** + * Lists a collection of tags defined within a service instance. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Tag_ListByService") + listByService is TagContractOperationGroupOps.List< + TagContract, + Parameters = { + /** + * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
+ */ + @query("$filter") + $filter?: string; + + /** + * Number of records to return. + */ + @minValue(1) + @query("$top") + $top?: int32; + + /** + * Number of records to skip. + */ + @query("$skip") + $skip?: int32; + + /** + * Scope like 'apis', 'products' or 'apis/{apiId} + */ + @query("scope") + scope?: string; + } + >; +} @@maxLength(TagContract.name, 80); @@minLength(TagContract.name, 1); @@ -92,3 +419,9 @@ interface TagContracts { "Tag identifier. Must be unique in the current API Management service instance." ); @@doc(TagContract.properties, "Tag entity contract properties."); +@@doc(TagContractOperationGroup.createOrUpdate::parameters.resource, + "Create parameters." +); +@@doc(TagContractOperationGroup.update::parameters.properties, + "Update parameters." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/TagContractFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/TagContractFixMe.tsp deleted file mode 100644 index 9c14942642..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/TagContractFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model TagContract. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/client.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/client.tsp index 2fc281827d..8e9f46659d 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/client.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/client.tsp @@ -156,9 +156,18 @@ using Azure.ResourceManager.ApiManagement; @@flattenProperty(OperationContract.properties); @@clientName(PolicyContracts.createOrUpdate::parameters.resource, "parameters"); +@@clientName(ApiPolicy.createOrUpdate::parameters.resource, "parameters"); +@@clientName(Policy.createOrUpdate::parameters.resource, "parameters"); +@@clientName(ProductPolicy.createOrUpdate::parameters.resource, "parameters"); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(PolicyContract.properties); +@@clientName(TagContractOperationGroup.createOrUpdate::parameters.resource, + "parameters" +); +@@clientName(TagContractOperationGroup.update::parameters.properties, + "parameters" +); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(TagContract.properties); @@ -177,6 +186,8 @@ using Azure.ResourceManager.ApiManagement; "parameters" ); @@clientName(DiagnosticContracts.update::parameters.properties, "parameters"); +@@clientName(Diagnostic.createOrUpdate::parameters.resource, "parameters"); +@@clientName(Diagnostic.update::parameters.properties, "parameters"); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(DiagnosticContract.properties); @@ -356,34 +367,24 @@ using Azure.ResourceManager.ApiManagement; @@flattenProperty(PortalRevisionContract.properties); @@clientName(PortalSigninSettingsOperationGroup, "PortalSigninSettings"); -@@clientName(PortalSigninSettingsOperationGroup.createOrUpdate::parameters.resource, - "parameters" -); -@@clientName(PortalSigninSettingsOperationGroup.update::parameters.properties, - "parameters" -); +@@clientName(SignInSettings.createOrUpdate::parameters.resource, "parameters"); +@@clientName(SignInSettings.update::parameters.properties, "parameters"); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(PortalSigninSettings.properties); @@clientName(PortalSignupSettingsOperationGroup, "PortalSignupSettings"); -@@clientName(PortalSignupSettingsOperationGroup.createOrUpdate::parameters.resource, - "parameters" -); -@@clientName(PortalSignupSettingsOperationGroup.update::parameters.properties, - "parameters" -); +@@clientName(SignUpSettings.createOrUpdate::parameters.resource, "parameters"); +@@clientName(SignUpSettings.update::parameters.properties, "parameters"); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(PortalSignupSettings.properties); @@clientName(PortalDelegationSettingsOperationGroup, "PortalDelegationSettings" ); -@@clientName(PortalDelegationSettingsOperationGroup.createOrUpdate::parameters.resource, - "parameters" -); -@@clientName(PortalDelegationSettingsOperationGroup.update::parameters.properties, +@@clientName(DelegationSettings.createOrUpdate::parameters.resource, "parameters" ); +@@clientName(DelegationSettings.update::parameters.properties, "parameters"); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(PortalDelegationSettings.properties); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateApiPolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateApiPolicy.json new file mode 100644 index 0000000000..507cc6b513 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateApiPolicy.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "apiId": "5600b57e7e8880006a040001", + "parameters": { + "properties": { + "format": "xml", + "value": " " + } + }, + "policyId": "policy", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/apis/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5600b57e7e8880006a040001/policies/policy", + "properties": { + "value": "\r\n \r\n \r\n \r\n \r\n \r\n" + } + } + }, + "201": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/apis/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5600b57e7e8880006a040001/policies/policy", + "properties": { + "value": "\r\n \r\n \r\n \r\n \r\n \r\n" + } + } + } + }, + "operationId": "ApiPolicy_CreateOrUpdate", + "title": "ApiManagementCreateApiPolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateApiPolicyNonXmlEncoded.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateApiPolicyNonXmlEncoded.json new file mode 100644 index 0000000000..54c67e0c1b --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateApiPolicyNonXmlEncoded.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "apiId": "5600b57e7e8880006a040001", + "parameters": { + "properties": { + "format": "rawxml", + "value": "\r\n \r\n \r\n \r\n \"@(context.Request.Headers.FirstOrDefault(h => h.Ke==\"Via\"))\" \r\n \r\n \r\n " + } + }, + "policyId": "policy", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/apis/operations/policies", + "id": "/subscriptions/4c1a3bc6-89f9-46fe-a175-5d8984b25095/resourcegroups/Api-DF-West-US/providers/Microsoft.ApiManagement/service/samirmsiservice2/apis/echo-api/operations/create-resource/policies/policy", + "properties": { + "value": "\r\n \r\n \r\n \r\n \"@(context.Request.Headers.FirstOrDefault(h => h.Ke==\"Via\"))\" \r\n \r\n \r\n" + } + } + }, + "201": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/apis/operations/policies", + "id": "/subscriptions/4c1a3bc6-89f9-46fe-a175-5d8984b25095/resourcegroups/Api-DF-West-US/providers/Microsoft.ApiManagement/service/samirmsiservice2/apis/echo-api/operations/create-resource/policies/policy", + "properties": { + "value": "\r\n \r\n \r\n \r\n \"@(context.Request.Headers.FirstOrDefault(h => h.Ke==\"Via\"))\" \r\n \r\n \r\n" + } + } + } + }, + "operationId": "ApiPolicy_CreateOrUpdate", + "title": "ApiManagementCreateApiPolicyNonXmlEncoded" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateApiTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateApiTag.json new file mode 100644 index 0000000000..40f5f1bf98 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateApiTag.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "apiId": "5931a75ae4bbd512a88c680b", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "tagId1" + }, + "responses": { + "200": { + "body": { + "name": "tagId1", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/tagId1", + "properties": { + "displayName": "tag1" + } + } + }, + "201": { + "body": { + "name": "tagId1", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/tagId1", + "properties": { + "displayName": "tag1" + } + } + } + }, + "operationId": "Tag_AssignToApi", + "title": "ApiManagementCreateApiTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateDiagnostic.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateDiagnostic.json new file mode 100644 index 0000000000..230c0a2776 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateDiagnostic.json @@ -0,0 +1,161 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "diagnosticId": "applicationinsights", + "parameters": { + "properties": { + "alwaysLog": "allErrors", + "backend": { + "response": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + }, + "request": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + } + }, + "frontend": { + "response": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + }, + "request": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + } + }, + "loggerId": "/loggers/azuremonitor", + "sampling": { + "percentage": 50, + "samplingType": "fixed" + } + } + }, + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "applicationinsights", + "type": "Microsoft.ApiManagement/service/diagnostics", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/diagnostics/applicationinsights", + "properties": { + "alwaysLog": "allErrors", + "backend": { + "response": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + }, + "request": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + } + }, + "frontend": { + "response": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + }, + "request": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + } + }, + "loggerId": "/loggers/applicationinsights", + "sampling": { + "percentage": 50, + "samplingType": "fixed" + } + } + } + }, + "201": { + "body": { + "name": "applicationinsights", + "type": "Microsoft.ApiManagement/service/diagnostics", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/diagnostics/applicationinsights", + "properties": { + "alwaysLog": "allErrors", + "backend": { + "response": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + }, + "request": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + } + }, + "frontend": { + "response": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + }, + "request": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + } + }, + "loggerId": "/loggers/azuremonitor", + "sampling": { + "percentage": 50, + "samplingType": "fixed" + } + } + } + } + }, + "operationId": "Diagnostic_CreateOrUpdate", + "title": "ApiManagementCreateDiagnostic" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreatePolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreatePolicy.json new file mode 100644 index 0000000000..a041dac7a3 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreatePolicy.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "parameters": { + "properties": { + "format": "xml", + "value": "\r\n \r\n \r\n \r\n \r\n \r\n" + } + }, + "policyId": "policy", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/policies/policy", + "properties": { + "value": "\r\n \r\n \r\n \r\n \r\n \r\n" + } + } + }, + "201": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/policies/policy", + "properties": { + "value": "\r\n \r\n \r\n \r\n \r\n \r\n" + } + } + } + }, + "operationId": "Policy_CreateOrUpdate", + "title": "ApiManagementCreatePolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateProductPolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateProductPolicy.json new file mode 100644 index 0000000000..e4a2fd793f --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateProductPolicy.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "parameters": { + "properties": { + "format": "xml", + "value": "\r\n \r\n \r\n \r\n @( string.Join(\",\", DateTime.UtcNow, context.Deployment.ServiceName, context.RequestId, context.Request.IpAddress, context.Operation.Name) ) \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n" + } + }, + "policyId": "policy", + "productId": "5702e97e5157a50f48dce801", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/products/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/products/5702e97e5157a50f48dce801/policies/policy", + "properties": { + "value": "\r\n \r\n \r\n \r\n @( string.Join(\",\", DateTime.UtcNow, context.Deployment.ServiceName, context.RequestId, context.Request.IpAddress, context.Operation.Name) ) \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n" + } + } + }, + "201": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/products/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/products/5702e97e5157a50f48dce801/policies/policy", + "properties": { + "value": "\r\n \r\n \r\n \r\n @( string.Join(\",\", DateTime.UtcNow, context.Deployment.ServiceName, context.RequestId, context.Request.IpAddress, context.Operation.Name) ) \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n" + } + } + } + }, + "operationId": "ProductPolicy_CreateOrUpdate", + "title": "ApiManagementCreateProductPolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateProductTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateProductTag.json new file mode 100644 index 0000000000..3020395bd8 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateProductTag.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "productId": "5931a75ae4bbd512a88c680b", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "tagId1" + }, + "responses": { + "200": { + "body": { + "name": "tagId1", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/tagId1", + "properties": { + "displayName": "tag1" + } + } + }, + "201": { + "body": { + "name": "tagId1", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/tagId1", + "properties": { + "displayName": "tag1" + } + } + } + }, + "operationId": "Tag_AssignToProduct", + "title": "ApiManagementCreateProductTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateTag.json new file mode 100644 index 0000000000..8c3313b06a --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementCreateTag.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "parameters": { + "properties": { + "displayName": "tag1" + } + }, + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "tagId1" + }, + "responses": { + "200": { + "body": { + "name": "tagId1", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/tagId1", + "properties": { + "displayName": "tag1" + } + } + }, + "201": { + "body": { + "name": "tagId1", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/tagId1", + "properties": { + "displayName": "tag1" + } + } + } + }, + "operationId": "Tag_CreateOrUpdate", + "title": "ApiManagementCreateTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteApiPolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteApiPolicy.json new file mode 100644 index 0000000000..6aac4b3d4b --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteApiPolicy.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "apiId": "loggerId", + "policyId": "policy", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ApiPolicy_Delete", + "title": "ApiManagementDeleteApiPolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteApiTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteApiTag.json new file mode 100644 index 0000000000..aa0b77e33a --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteApiTag.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "apiId": "59d5b28d1f7fab116c282650", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "59d5b28e1f7fab116402044e" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Tag_DetachFromApi", + "title": "ApiManagementDeleteApiTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteDiagnostic.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteDiagnostic.json new file mode 100644 index 0000000000..4a8aa32392 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteDiagnostic.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "diagnosticId": "applicationinsights", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Diagnostic_Delete", + "title": "ApiManagementDeleteDiagnostic" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeletePolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeletePolicy.json new file mode 100644 index 0000000000..8180e8cffe --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeletePolicy.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "policyId": "policy", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Policy_Delete", + "title": "ApiManagementDeletePolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteProductPolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteProductPolicy.json new file mode 100644 index 0000000000..e93eed837f --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteProductPolicy.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "policyId": "policy", + "productId": "testproduct", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ProductPolicy_Delete", + "title": "ApiManagementDeleteProductPolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteProductTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteProductTag.json new file mode 100644 index 0000000000..989e7f160a --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteProductTag.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "productId": "59d5b28d1f7fab116c282650", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "59d5b28e1f7fab116402044e" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Tag_DetachFromProduct", + "title": "ApiManagementDeleteProductTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteTag.json new file mode 100644 index 0000000000..d9ba529c2b --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementDeleteTag.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "tagId1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Tag_Delete", + "title": "ApiManagementDeleteTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetApiPolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetApiPolicy.json new file mode 100644 index 0000000000..1ee0b036c8 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetApiPolicy.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "apiId": "5600b59475ff190048040001", + "policyId": "policy", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/apis/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5600b59475ff190048040001/policies/policy", + "properties": { + "value": "\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n@{\r\n\tRandom Random = new Random();\r\n\t\t\t\tconst string Chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz \"; \r\n return string.Join(\",\", DateTime.UtcNow, new string(\r\n Enumerable.Repeat(Chars, Random.Next(2150400))\r\n .Select(s => s[Random.Next(s.Length)])\r\n .ToArray()));\r\n } \r\n \r\n \r\n \r\n" + } + } + } + }, + "operationId": "ApiPolicy_Get", + "title": "ApiManagementGetApiPolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetApiTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetApiTag.json new file mode 100644 index 0000000000..02ad64aef8 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetApiTag.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "apiId": "59d6bb8f1f7fab13dc67ec9b", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "59306a29e4bbd510dc24e5f9" + }, + "responses": { + "200": { + "body": { + "name": "59306a29e4bbd510dc24e5f9", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/59306a29e4bbd510dc24e5f9", + "properties": { + "displayName": "tag1" + } + } + } + }, + "operationId": "Tag_GetByApi", + "title": "ApiManagementGetApiTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetDiagnostic.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetDiagnostic.json new file mode 100644 index 0000000000..9f6f58fed9 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetDiagnostic.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "diagnosticId": "applicationinsights", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "applicationinsights", + "type": "Microsoft.ApiManagement/service/diagnostics", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/diagnostics/applicationinsights", + "properties": { + "alwaysLog": "allErrors", + "backend": { + "response": { + "body": { + "bytes": 100 + }, + "headers": [] + }, + "request": { + "body": { + "bytes": 100 + }, + "headers": [] + } + }, + "frontend": { + "response": { + "body": { + "bytes": 100 + }, + "headers": [] + }, + "request": { + "body": { + "bytes": 100 + }, + "headers": [] + } + }, + "httpCorrelationProtocol": "Legacy", + "logClientIp": true, + "loggerId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/loggers/aisamplingtest", + "sampling": { + "percentage": 100, + "samplingType": "fixed" + } + } + } + } + }, + "operationId": "Diagnostic_Get", + "title": "ApiManagementGetDiagnostic" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetIssue.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetIssue.json new file mode 100644 index 0000000000..bd6f94501f --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetIssue.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "issueId": "57d2ef278aa04f0ad01d6cdc", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "57d2ef278aa04f0ad01d6cdc", + "type": "Microsoft.ApiManagement/service/issues", + "id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/issues/57d2ef278aa04f0ad01d6cdc", + "properties": { + "description": "New API issue description", + "apiId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/57d1f7558aa04f15146d9d8a", + "createdDate": "2018-02-01T22:21:20.467Z", + "state": "open", + "title": "New API issue", + "userId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1" + } + } + } + }, + "operationId": "Issue_Get", + "title": "ApiManagementGetIssue" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetPolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetPolicy.json new file mode 100644 index 0000000000..45e2a29916 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetPolicy.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "policyId": "policy", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/policies/policy", + "properties": { + "value": "\r\n\r\n \r\n \r\n \r\n \r\n \r\n" + } + } + } + }, + "operationId": "Policy_Get", + "title": "ApiManagementGetPolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetPolicyFormat.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetPolicyFormat.json new file mode 100644 index 0000000000..3dfe0898f8 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetPolicyFormat.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "format": "rawxml", + "api-version": "2021-08-01", + "policyId": "policy", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/policies/policy", + "properties": { + "format": "rawxml", + "value": "\r\n\r\n\t\r\n\t\t\r\n\t\t\t@{\n var guidBinary = new byte[16];\n Array.Copy(Guid.NewGuid().ToByteArray(), 0, guidBinary, 0, 10);\n long time = DateTime.Now.Ticks;\n byte[] bytes = new byte[6];\n unchecked\n {\n bytes[5] = (byte)(time >> 40);\n bytes[4] = (byte)(time >> 32);\n bytes[3] = (byte)(time >> 24);\n bytes[2] = (byte)(time >> 16);\n bytes[1] = (byte)(time >> 8);\n bytes[0] = (byte)(time);\n }\n Array.Copy(bytes, 0, guidBinary, 10, 6);\n return new Guid(guidBinary).ToString();\n }\n \r\n\t\t\r\n\t\r\n\t\r\n\t\t\r\n\t\r\n\t\r\n\t\r\n" + } + } + } + }, + "operationId": "Policy_Get", + "title": "ApiManagementGetPolicyFormat" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetProductPolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetProductPolicy.json new file mode 100644 index 0000000000..7201efde6f --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetProductPolicy.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "policyId": "policy", + "productId": "kjoshiarmTemplateProduct4", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "policy", + "type": "Microsoft.ApiManagement/service/products/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/products/kjoshiarmTemplateProduct4/policies/policy", + "properties": { + "value": "\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n" + } + } + } + }, + "operationId": "ProductPolicy_Get", + "title": "ApiManagementGetProductPolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetProductTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetProductTag.json new file mode 100644 index 0000000000..f88a51ced1 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetProductTag.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "productId": "59d6bb8f1f7fab13dc67ec9b", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "59306a29e4bbd510dc24e5f9" + }, + "responses": { + "200": { + "body": { + "name": "59306a29e4bbd510dc24e5f9", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/59306a29e4bbd510dc24e5f9", + "properties": { + "displayName": "tag1" + } + } + } + }, + "operationId": "Tag_GetByProduct", + "title": "ApiManagementGetProductTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetTag.json new file mode 100644 index 0000000000..af0ba8ab2c --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetTag.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "59306a29e4bbd510dc24e5f9" + }, + "responses": { + "200": { + "body": { + "name": "59306a29e4bbd510dc24e5f9", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/59306a29e4bbd510dc24e5f9", + "properties": { + "displayName": "tag1" + } + } + } + }, + "operationId": "Tag_Get", + "title": "ApiManagementGetTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetUserSubscription.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetUserSubscription.json new file mode 100644 index 0000000000..d3cd295152 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementGetUserSubscription.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "sid": "5fa9b096f3df14003c070001", + "subscriptionId": "subid", + "userId": "1" + }, + "responses": { + "200": { + "body": { + "name": "5fa9b096f3df14003c070001", + "type": "Microsoft.ApiManagement/service/users/subscriptions", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1/subscriptions/5fa9b096f3df14003c070001", + "properties": { + "allowTracing": true, + "createdDate": "2020-11-09T21:11:50.58Z", + "ownerId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1", + "scope": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/products/starter", + "state": "active" + } + } + } + }, + "operationId": "UserSubscription_Get", + "title": "ApiManagementGetUserSubscription" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadApiPolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadApiPolicy.json new file mode 100644 index 0000000000..933cd730dc --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadApiPolicy.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "apiId": "57d1f7558aa04f15146d9d8a", + "policyId": "policy", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "headers": { + "etag": "AAAAAAAAAAa=" + } + } + }, + "operationId": "ApiPolicy_GetEntityTag", + "title": "ApiManagementHeadApiPolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadApiTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadApiTag.json new file mode 100644 index 0000000000..28d419aca5 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadApiTag.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "apiId": "59d6bb8f1f7fab13dc67ec9b", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "59306a29e4bbd510dc24e5f9" + }, + "responses": { + "200": { + "headers": { + "Etag": "AAAAAAAACCI=" + } + } + }, + "operationId": "Tag_GetEntityStateByApi", + "title": "ApiManagementHeadApiTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadDiagnostic.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadDiagnostic.json new file mode 100644 index 0000000000..c5d61705da --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadDiagnostic.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "diagnosticId": "applicationinsights", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "headers": { + "etag": "AAAAAAAAAAa=" + } + } + }, + "operationId": "Diagnostic_GetEntityTag", + "title": "ApiManagementHeadDiagnostic" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadPolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadPolicy.json new file mode 100644 index 0000000000..2d7d002060 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadPolicy.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "policyId": "policy", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "headers": { + "etag": "AAAAAAAAAAa=" + } + } + }, + "operationId": "Policy_GetEntityTag", + "title": "ApiManagementHeadPolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadProductPolicy.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadProductPolicy.json new file mode 100644 index 0000000000..29c8186f7d --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadProductPolicy.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "policyId": "policy", + "productId": "unlimited", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "headers": { + "etag": "AAAAAAAAAAa=" + } + } + }, + "operationId": "ProductPolicy_GetEntityTag", + "title": "ApiManagementHeadProductPolicy" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadProductTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadProductTag.json new file mode 100644 index 0000000000..4520770923 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadProductTag.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "productId": "59306a29e4bbd510dc24e5f8", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "59306a29e4bbd510dc24e5f9" + }, + "responses": { + "200": { + "headers": { + "Etag": "AAAAAAAACCI=" + } + } + }, + "operationId": "Tag_GetEntityStateByProduct", + "title": "ApiManagementHeadProductTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadTag.json new file mode 100644 index 0000000000..743510b2c5 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementHeadTag.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "59306a29e4bbd510dc24e5f9" + }, + "responses": { + "200": { + "headers": { + "Etag": "AAAAAAAACCI=" + } + } + }, + "operationId": "Tag_GetEntityState", + "title": "ApiManagementHeadTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListApiPolicies.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListApiPolicies.json new file mode 100644 index 0000000000..6a85845f88 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListApiPolicies.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "apiId": "5600b59475ff190048040001", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "count": 1, + "nextLink": "", + "value": [ + { + "name": "policy", + "type": "Microsoft.ApiManagement/service/apis/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5600b59475ff190048040001/policies/policy", + "properties": { + "value": "\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n@{\r\n\tRandom Random = new Random();\r\n\t\t\t\tconst string Chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz \"; \r\n return string.Join(\",\", DateTime.UtcNow, new string(\r\n Enumerable.Repeat(Chars, Random.Next(2150400))\r\n .Select(s => s[Random.Next(s.Length)])\r\n .ToArray()));\r\n } \r\n \r\n \r\n \r\n" + } + } + ] + } + } + }, + "operationId": "ApiPolicy_ListByApi", + "title": "ApiManagementListApiPolicies" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListApiTags.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListApiTags.json new file mode 100644 index 0000000000..3ad0e2d9f6 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListApiTags.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "apiId": "57d2ef278aa04f0888cba3f3", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "count": 1, + "nextLink": "", + "value": [ + { + "name": "5600b539c53f5b0062060002", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/5600b539c53f5b0062060002", + "properties": { + "displayName": "tag1" + } + } + ] + } + } + }, + "operationId": "Tag_ListByApi", + "title": "ApiManagementListApiTags" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListDiagnostics.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListDiagnostics.json new file mode 100644 index 0000000000..78816de222 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListDiagnostics.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "count": 1, + "value": [ + { + "name": "applicationinsights", + "type": "Microsoft.ApiManagement/service/diagnostics", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/diagnostics/applicationinsights", + "properties": { + "alwaysLog": "allErrors", + "backend": { + "response": { + "body": { + "bytes": 0 + }, + "headers": [] + }, + "request": { + "body": { + "bytes": 0 + }, + "headers": [] + } + }, + "frontend": { + "response": { + "body": { + "bytes": 0 + }, + "headers": [] + }, + "request": { + "body": { + "bytes": 0 + }, + "headers": [] + } + }, + "httpCorrelationProtocol": "Legacy", + "logClientIp": true, + "loggerId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/loggers/aisamplingtest", + "sampling": { + "percentage": 100, + "samplingType": "fixed" + }, + "verbosity": "information" + } + }, + { + "name": "azuremonitor", + "type": "Microsoft.ApiManagement/service/diagnostics", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/diagnostics/azuremonitor", + "properties": { + "logClientIp": true, + "loggerId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/loggers/azuremonitor", + "sampling": { + "percentage": 100, + "samplingType": "fixed" + } + } + } + ] + } + } + }, + "operationId": "Diagnostic_ListByService", + "title": "ApiManagementListDiagnostics" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListIssues.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListIssues.json new file mode 100644 index 0000000000..97feaeed37 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListIssues.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "count": 1, + "nextLink": "", + "value": [ + { + "name": "57d2ef278aa04f0ad01d6cdc", + "type": "Microsoft.ApiManagement/service/issues", + "id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/issues/57d2ef278aa04f0ad01d6cdc", + "properties": { + "description": "New API issue description", + "apiId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/57d1f7558aa04f15146d9d8a", + "createdDate": "2018-02-01T22:21:20.467Z", + "state": "open", + "title": "New API issue", + "userId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1" + } + } + ] + } + } + }, + "operationId": "Issue_ListByService", + "title": "ApiManagementListIssues" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListPolicies.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListPolicies.json new file mode 100644 index 0000000000..0659d40f2f --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListPolicies.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "count": 1, + "nextLink": "", + "value": [ + { + "name": "policy", + "type": "Microsoft.ApiManagement/service/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/policies/policy", + "properties": { + "value": "\r\n\r\n \r\n \r\n \r\n \r\n \r\n" + } + } + ] + } + } + }, + "operationId": "Policy_ListByService", + "title": "ApiManagementListPolicies" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListProductPolicies.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListProductPolicies.json new file mode 100644 index 0000000000..189974286e --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListProductPolicies.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "productId": "armTemplateProduct4", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "count": 1, + "nextLink": "", + "value": [ + { + "name": "policy", + "type": "Microsoft.ApiManagement/service/products/policies", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/products/armTemplateProduct4/policies/policy", + "properties": { + "value": "\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n" + } + } + ] + } + } + }, + "operationId": "ProductPolicy_ListByProduct", + "title": "ApiManagementListProductPolicies" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListProductTags.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListProductTags.json new file mode 100644 index 0000000000..a6ad5ca0e4 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListProductTags.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "productId": "57d2ef278aa04f0888cba3f1", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "count": 1, + "nextLink": "", + "value": [ + { + "name": "5600b539c53f5b0062060002", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/5600b539c53f5b0062060002", + "properties": { + "displayName": "tag1" + } + } + ] + } + } + }, + "operationId": "Tag_ListByProduct", + "title": "ApiManagementListProductTags" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListTags.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListTags.json new file mode 100644 index 0000000000..bf6c2d5257 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListTags.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "count": 2, + "nextLink": "", + "value": [ + { + "name": "5600b59375ff190048020001", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/5600b59375ff190048020001", + "properties": { + "displayName": "tag1" + } + }, + { + "name": "5600b59375ff190048020002", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/5600b59375ff190048020002", + "properties": { + "displayName": "tag2" + } + } + ] + } + } + }, + "operationId": "Tag_ListByService", + "title": "ApiManagementListTags" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListUserSubscriptions.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListUserSubscriptions.json new file mode 100644 index 0000000000..50fb873a00 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementListUserSubscriptions.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "userId": "57681833a40f7eb6c49f6acf" + }, + "responses": { + "200": { + "body": { + "nextLink": "", + "value": [ + { + "name": "57681850a40f7eb6c49f6ae3", + "type": "Microsoft.ApiManagement/service/users/subscriptions", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57681833a40f7eb6c49f6acf/subscriptions/57681850a40f7eb6c49f6ae3", + "properties": { + "createdDate": "2016-06-20T16:22:39.547Z", + "displayName": "57681850a40f7eb6c49f6ae5", + "ownerId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57681833a40f7eb6c49f6acf", + "scope": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/products/5768181ea40f7eb6c49f6ac7", + "startDate": "2016-06-20T00:00:00Z", + "state": "active" + } + }, + { + "name": "57681850a40f7eb6c49f6b2b", + "type": "Microsoft.ApiManagement/service/users/subscriptions", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57681833a40f7eb6c49f6acf/subscriptions/57681850a40f7eb6c49f6b2b", + "properties": { + "createdDate": "2016-06-20T16:22:41.103Z", + "displayName": "57681850a40f7eb6c49f6b2d", + "ownerId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57681833a40f7eb6c49f6acf", + "scope": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/products/5768181ea40f7eb6c49f6ac7", + "startDate": "2016-06-20T00:00:00Z", + "state": "active" + } + } + ] + } + } + }, + "operationId": "UserSubscription_List", + "title": "ApiManagementListUserSubscriptions" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementUpdateDiagnostic.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementUpdateDiagnostic.json new file mode 100644 index 0000000000..2b60451b37 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementUpdateDiagnostic.json @@ -0,0 +1,113 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "diagnosticId": "applicationinsights", + "parameters": { + "properties": { + "alwaysLog": "allErrors", + "backend": { + "response": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + }, + "request": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + } + }, + "frontend": { + "response": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + }, + "request": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + } + }, + "loggerId": "/loggers/applicationinsights", + "sampling": { + "percentage": 50, + "samplingType": "fixed" + } + } + }, + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "applicationinsights", + "type": "Microsoft.ApiManagement/service/diagnostics", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/diagnostics/applicationinsights", + "properties": { + "alwaysLog": "allErrors", + "backend": { + "response": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + }, + "request": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + } + }, + "frontend": { + "response": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + }, + "request": { + "body": { + "bytes": 512 + }, + "headers": [ + "Content-type" + ] + } + }, + "httpCorrelationProtocol": "Legacy", + "logClientIp": true, + "loggerId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/loggers/aisamplingtest", + "sampling": { + "percentage": 50, + "samplingType": "fixed" + } + } + } + } + }, + "operationId": "Diagnostic_Update", + "title": "ApiManagementUpdateDiagnostic" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementUpdateTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementUpdateTag.json new file mode 100644 index 0000000000..736eac828a --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementUpdateTag.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "parameters": { + "properties": { + "displayName": "temp tag" + } + }, + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid", + "tagId": "temptag" + }, + "responses": { + "200": { + "body": { + "name": "temptag", + "type": "Microsoft.ApiManagement/service/tags", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tags/temptag", + "properties": { + "displayName": "tag1" + } + } + } + }, + "operationId": "Tag_Update", + "title": "ApiManagementUpdateTag" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/legacy.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/legacy.tsp new file mode 100644 index 0000000000..05225f6ce2 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/legacy.tsp @@ -0,0 +1,326 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Legacy { + interface LegacyOperations< + ParentParameters extends {}, + ResourceTypeParameter extends {}, + ErrorType extends {} = ErrorResponse + > { + /** + * @dev A long-running resource CreateOrUpdate (PUT) + * @template Resource the resource being created or updated + * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PUT operation + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @doc("Create a {name}", Resource) + @armResourceCreateOrUpdate(Resource) + @Azure.Core.Foundations.Private.defaultFinalStateVia(#[ + "location", + "azure-async-operation" + ]) + @put + CreateOrUpdateAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + LroHeaders extends TypeSpec.Reflection.Model = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< + Resource, + LroHeaders + > + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot resource: Resource, + ): Response | ErrorType; + + /** + * @dev A synchronous resource CreateOrUpdate (PUT) + * @template Resource the resource being created or updated + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PUT operation + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @doc("Create a {name}", Resource) + @armResourceCreateOrUpdate(Resource) + @put + CreateOrUpdateSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResourceUpdatedResponse | ArmResourceCreatedSyncResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot resource: Resource, + ): Response | ErrorType; + + /** + * @dev A long-running resource Update (PATCH) + * @template Resource the resource being created or updated + * @template PatchModel the PATCH request model + * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PATCH operation + */ + @autoRoute + @doc("Update a {name}", Resource) + @armResourceUpdate(Resource) + @patch + CustomPatchAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader< + Azure.Core.StatusMonitorPollingOptions, + Resource, + string + > & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmResponse | ArmAcceptedLroResponse< + "Resource update request accepted.", + LroHeaders + > + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot properties: PatchModel, + ): Response | ErrorType; + + /** + * @dev A synchronous resource Update (PATCH) + * @template Resource the resource being created or updated + * @template PatchModel the PATCH request model + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PATCH operation + */ + @autoRoute + @doc("Update a {name}", Resource) + @armResourceUpdate(Resource) + @patch + CustomPatchSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot properties: PatchModel, + ): Response | ErrorType; + + /** + * @dev Delete a resource asynchronously + * @template Resource The resource being deleted + * @template LroHeaders The lro headers for the operation + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the delete operation + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid" + @autoRoute + @doc("Delete a {name}", Resource) + @delete + @deletesResource(Resource) + @armResourceDelete(Resource) + DeleteWithoutOkAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Delete a resource synchronously + * @template Resource The resource being deleted + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the delete operation + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid" + @autoRoute + @doc("Delete a {name}", Resource) + @delete + @deletesResource(Resource) + @armResourceDelete(Resource) + DeleteSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmDeletedResponse | ArmDeletedNoContentResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Get a resource + * @template Resource The resource being read + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response for a get operation. + */ + @autoRoute + @doc("Get a {name}", Resource) + @get + @readsResource(Resource) + @armResourceRead(Resource) + Read< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Get a resource + * @template Resource The resource being read + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response for a get operation. + */ + @doc("Get a {name}", Resource) + @get + @readsResource(Resource) + @armResourceRead(Resource) + ReadRoute< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev List a resource + * @template Resource The resource being listed + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The response returned by the list + */ + @autoRoute + @doc("List {name} resources", Resource) + @get + @listsResource(Resource) + @segmentOf(Resource) + @armResourceList(Resource) + List< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse> + >(...ParentParameters, ...Parameters): Response | ErrorType; + + /** + * @dev List a resource + * @template Resource The resource being listed + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The response returned by the list + */ + @doc("List {name} resources", Resource) + @get + @listsResource(Resource) + @armResourceList(Resource) + ListRoute< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse> + >(...ParentParameters, ...Parameters): Response | ErrorType; + + /** + * A synchronous resource action. + * @template Resource The resource being acted upon + * @template Request The request model for the action + * @template Response The response model for the action + * @template Parameters Optional. Additional parameters after the path parameters + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @armResourceAction(Resource) + @Private.enforceConstraint(Resource, Foundations.Resource) + @post + @returnsDoc("Azure operation completed successfully.") + ActionSync< + Resource extends Foundations.Resource, + Request extends TypeSpec.Reflection.Model | void, + Response extends TypeSpec.Reflection.Model | void, + Parameters extends {} = {} + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + + @doc("The content of the action request") + @bodyRoot + body: Request, + ): Response | ErrorType; + + /** + * A long-running resource action. + * @template Resource The resource being acted upon + * @template Request The request model for the action + * @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response + * @template Response The response model for the action + * @template Parameters Optional. Additional parameters after the path parameters + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "ARM" + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "template" + @autoRoute + @armResourceAction(Resource) + @Private.enforceConstraint(Resource, Foundations.Resource) + @post + @returnsDoc("Azure operation completed successfully.") + ActionAsync< + Resource extends Foundations.Resource, + Request extends TypeSpec.Reflection.Model | void, + Result extends TypeSpec.Reflection.Model | void, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader< + Azure.Core.StatusMonitorPollingOptions, + Result, + string + > & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} | void = ArmAcceptedLroResponse< + "Resource operation accepted.", + LroHeaders + > | Result + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + + @doc("The content of the action request") + @bodyRoot + body: Request, + ): Response | ErrorType; + } + /** + * @dev Get the provider namespace key-value pair + * @template Resource Optional. The resource to get the provider namespace for. + */ + model Provider { + ...ProviderNamespace; + } +} diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/main.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/main.tsp index f9bd3f060b..f6d63d7fa6 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/main.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/main.tsp @@ -55,6 +55,7 @@ import "./SubscriptionContract.tsp"; import "./AccessInformationContract.tsp"; import "./UserContract.tsp"; import "./routes.tsp"; +import "./legacy.tsp"; using TypeSpec.Rest; using TypeSpec.Http; diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/routes.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/routes.tsp index f444fac13d..5002ad9361 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/routes.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/routes.tsp @@ -14,1467 +14,15 @@ using TypeSpec.OpenAPI; namespace Azure.ResourceManager.ApiManagement; #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface TagOperations { - /** - * Lists all Tags associated with the API. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_ListByApi") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags") - @get - listByApi( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - /** - * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
- */ - @query("$filter") - $filter?: string, - - /** - * Number of records to return. - */ - @minValue(1) - @query("$top") - $top?: int32, - - /** - * Number of records to skip. - */ - @query("$skip") - $skip?: int32, - - ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; - - /** - * Gets the entity state version of the tag specified by its identifier. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_GetEntityStateByApi") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}") - @head - getEntityStateByApi( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; - - /** - * Get tag associated with the API. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_GetByApi") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}") - @get - getByApi( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - - /** - * Assign tag to the Api. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_AssignToApi") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}") - @put - assignToApi( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - - /** - * Detach the tag from the Api. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_DetachFromApi") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}") - @delete - detachFromApi( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; - - /** - * Lists all Tags associated with the Product. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_ListByProduct") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags") - @get - listByProduct( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Product identifier. Must be unique in the current API Management service instance. - */ - @maxLength(256) - @minLength(1) - @path - productId: string, - - /** - * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
- */ - @query("$filter") - $filter?: string, - - /** - * Number of records to return. - */ - @minValue(1) - @query("$top") - $top?: int32, - - /** - * Number of records to skip. - */ - @query("$skip") - $skip?: int32, - - ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; - - /** - * Gets the entity state version of the tag specified by its identifier. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_GetEntityStateByProduct") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}") - @head - getEntityStateByProduct( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Product identifier. Must be unique in the current API Management service instance. - */ - @maxLength(256) - @minLength(1) - @path - productId: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; - - /** - * Get tag associated with the Product. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_GetByProduct") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}") - @get - getByProduct( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Product identifier. Must be unique in the current API Management service instance. - */ - @maxLength(256) - @minLength(1) - @path - productId: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - - /** - * Assign tag to the Product. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_AssignToProduct") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}") - @put - assignToProduct( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Product identifier. Must be unique in the current API Management service instance. - */ - @maxLength(256) - @minLength(1) - @path - productId: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - - /** - * Detach the tag from the Product. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_DetachFromProduct") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}") - @delete - detachFromProduct( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Product identifier. Must be unique in the current API Management service instance. - */ - @maxLength(256) - @minLength(1) - @path - productId: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; - - /** - * Lists a collection of tags defined within a service instance. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_ListByService") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags") - @get - listByService( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
- */ - @query("$filter") - $filter?: string, - - /** - * Number of records to return. - */ - @minValue(1) - @query("$top") - $top?: int32, - - /** - * Number of records to skip. - */ - @query("$skip") - $skip?: int32, - - /** - * Scope like 'apis', 'products' or 'apis/{apiId} - */ - @query("scope") - scope?: string, - - ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; - - /** - * Gets the entity state version of the tag specified by its identifier. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_GetEntityState") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}") - @head - getEntityState( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; - - /** - * Gets the details of the tag specified by its identifier. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}") - @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - - /** - * Creates a tag. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - /** - * ETag of the Entity. Not required when creating an entity, but required when updating an entity. - */ - @header - `If-Match`?: string, - - ...SubscriptionIdParameter, - - /** - * Create parameters. - */ - @bodyRoot - parameters: TagCreateUpdateParameters, - ): ArmResponse | ErrorResponse; - - /** - * Updates the details of the tag specified by its identifier. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_Update") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}") - @patch - update( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - /** - * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. - */ - @header - `If-Match`: string, - - ...SubscriptionIdParameter, - - /** - * Update parameters. - */ - @bodyRoot - parameters: TagCreateUpdateParameters, - ): ArmResponse | ErrorResponse; - - /** - * Deletes specific tag of the API Management service instance. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Tag_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}") - @delete - delete( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Tag identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - tagId: string, - - /** - * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. - */ - @header - `If-Match`: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface ApiPolicyOperations { - /** - * Get the policy configuration at the API level. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ApiPolicy_ListByApi") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies") - @get - listByApi( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; - - /** - * Gets the entity state (Etag) version of the API policy specified by its identifier. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ApiPolicy_GetEntityTag") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}") - @head - getEntityTag( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; - - /** - * Get the policy configuration at the API level. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ApiPolicy_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}") - @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - /** - * Policy Export Format. - */ - @query("format") - format?: PolicyExportFormat = PolicyExportFormat.xml, - - ...SubscriptionIdParameter, - - /** - * Accept header - */ - @header - accept: "application/json, application/vnd.ms-azure-apim.policy+xml, application/vnd.ms-azure-apim.policy.raw+xml", - ): ArmResponse | ErrorResponse; - - /** - * Creates or updates policy configuration for the API. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ApiPolicy_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - /** - * ETag of the Entity. Not required when creating an entity, but required when updating an entity. - */ - @header - `If-Match`?: string, - - ...SubscriptionIdParameter, - - /** - * The policy contents to apply. - */ - @bodyRoot - parameters: PolicyContract, - ): ArmResponse | ErrorResponse; - - /** - * Deletes the policy configuration at the Api. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ApiPolicy_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}") - @delete - delete( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - /** - * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. - */ - @header - `If-Match`: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface ApiExportOperations { - /** - * Gets the details of the API specified by its identifier in the format specified to the Storage Blob with SAS Key valid for 5 minutes. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ApiExport_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}") - @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - apiId: string, - - /** - * Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 minutes. - */ - @query("format") - format: ExportFormat, - - /** - * Query parameter required to export the API details. - */ - @query("export") - export: ExportApi, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface DeletedServicesOperations { - /** - * Lists all soft-deleted services available for undelete for the given subscription. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("DeletedServices_ListBySubscription") - @autoRoute - @get - @action("deletedservices") - listBySubscription is ArmProviderActionSync< - Response = ResourceListResult, - Scope = SubscriptionActionScope, - Parameters = {} - >; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface ApiManagementServiceOperations { - /** - * Checks availability and correctness of a name for an API Management service. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ApiManagementService_CheckNameAvailability") - @autoRoute - checkNameAvailability is ArmProviderActionSync< - Request = ApiManagementServiceCheckNameAvailabilityParameters, - Response = ApiManagementServiceNameAvailabilityResult, - Scope = SubscriptionActionScope, - Parameters = {} - >; - /** - * Get the custom domain ownership identifier for an API Management service. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ApiManagementService_GetDomainOwnershipIdentifier") - @autoRoute - getDomainOwnershipIdentifier is ArmProviderActionSync< - Response = ApiManagementServiceGetDomainOwnershipIdentifierResult, - Scope = SubscriptionActionScope, - Parameters = {} - >; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface DiagnosticOperations { - /** - * Lists all diagnostics of the API Management service instance. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Diagnostic_ListByService") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics") - @get - listByService( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
- */ - @query("$filter") - $filter?: string, - - /** - * Number of records to return. - */ - @minValue(1) - @query("$top") - $top?: int32, - - /** - * Number of records to skip. - */ - @query("$skip") - $skip?: int32, - - ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; - - /** - * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Diagnostic_GetEntityTag") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") - @head - getEntityTag( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Diagnostic identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - diagnosticId: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; - - /** - * Gets the details of the Diagnostic specified by its identifier. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Diagnostic_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") - @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Diagnostic identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - diagnosticId: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - - /** - * Creates a new Diagnostic or updates an existing one. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Diagnostic_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Diagnostic identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - diagnosticId: string, - - /** - * ETag of the Entity. Not required when creating an entity, but required when updating an entity. - */ - @header - `If-Match`?: string, - - ...SubscriptionIdParameter, - - /** - * Create parameters. - */ - @bodyRoot - parameters: DiagnosticContract, - ): ArmResponse | ErrorResponse; - - /** - * Updates the details of the Diagnostic specified by its identifier. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Diagnostic_Update") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") - @patch - update( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Diagnostic identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - diagnosticId: string, - - /** - * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. - */ - @header - `If-Match`: string, - - ...SubscriptionIdParameter, - - /** - * Diagnostic Update parameters. - */ - @bodyRoot - parameters: DiagnosticContract, - ): ArmResponse | ErrorResponse; - - /** - * Deletes the specified Diagnostic. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Diagnostic_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") - @delete - delete( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Diagnostic identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - diagnosticId: string, - - /** - * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. - */ - @header - `If-Match`: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface IssueOperations { - /** - * Lists a collection of issues in the specified service instance. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Issue_ListByService") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues") - @get - listByService( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
- */ - @query("$filter") - $filter?: string, - - /** - * Number of records to return. - */ - @minValue(1) - @query("$top") - $top?: int32, - - /** - * Number of records to skip. - */ - @query("$skip") - $skip?: int32, - - ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; - - /** - * Gets API Management issue details - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Issue_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}") - @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Issue identifier. Must be unique in the current API Management service instance. - */ - @maxLength(256) - @minLength(1) - @pattern("^[^*#&+:<>?]+$") - @path - issueId: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface PolicyOperations { - /** - * Lists all the Global Policy definitions of the Api Management service. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Policy_ListByService") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies") - @get - listByService( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; - - /** - * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Policy_GetEntityTag") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}") - @head - getEntityTag( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; - - /** - * Get the Global policy definition of the Api Management service. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Policy_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}") - @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - /** - * Policy Export Format. - */ - @query("format") - format?: PolicyExportFormat = PolicyExportFormat.xml, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - - /** - * Creates or updates the global policy configuration of the Api Management service. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Policy_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - /** - * ETag of the Entity. Not required when creating an entity, but required when updating an entity. - */ - @header - `If-Match`?: string, - - ...SubscriptionIdParameter, - - /** - * The policy contents to apply. - */ - @bodyRoot - parameters: PolicyContract, - ): ArmResponse | ErrorResponse; - - /** - * Deletes the global policy configuration of the Api Management Service. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Policy_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}") - @delete - delete( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - /** - * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. - */ - @header - `If-Match`: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface ProductPolicyOperations { +interface ApiExportOperations { /** - * Get the policy configuration at the Product level. + * Gets the details of the API specified by its identifier in the format specified to the Storage Blob with SAS Key valid for 5 minutes. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ProductPolicy_ListByProduct") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies") + @operationId("ApiExport_Get") + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}") @get - listByProduct( + get( ...ApiVersionParameter, ...ResourceGroupParameter, @@ -1488,187 +36,72 @@ interface ProductPolicyOperations { serviceName: string, /** - * Product identifier. Must be unique in the current API Management service instance. + * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. */ @maxLength(256) @minLength(1) + @pattern("^[^*#&+:<>?]+$") @path - productId: string, - - ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; - - /** - * Get the ETag of the policy configuration at the Product level. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ProductPolicy_GetEntityTag") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}") - @head - getEntityTag( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, + apiId: string, /** - * Product identifier. Must be unique in the current API Management service instance. + * Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 minutes. */ - @maxLength(256) - @minLength(1) - @path - productId: string, + @query("format") + format: ExportFormat, /** - * The identifier of the Policy. + * Query parameter required to export the API details. */ - @path - policyId: PolicyIdName, + @query("export") + export: ExportApi, ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; + ): ArmResponse | ErrorResponse; +} +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface DeletedServicesOperations { /** - * Get the policy configuration at the Product level. + * Lists all soft-deleted services available for undelete for the given subscription. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ProductPolicy_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}") + @operationId("DeletedServices_ListBySubscription") + @autoRoute @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Product identifier. Must be unique in the current API Management service instance. - */ - @maxLength(256) - @minLength(1) - @path - productId: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - /** - * Policy Export Format. - */ - @query("format") - format?: PolicyExportFormat = PolicyExportFormat.xml, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; + @action("deletedservices") + listBySubscription is ArmProviderActionSync< + Response = ResourceListResult, + Scope = SubscriptionActionScope, + Parameters = {} + >; +} +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface ApiManagementServiceOperations { /** - * Creates or updates policy configuration for the Product. + * Checks availability and correctness of a name for an API Management service. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ProductPolicy_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Product identifier. Must be unique in the current API Management service instance. - */ - @maxLength(256) - @minLength(1) - @path - productId: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - /** - * ETag of the Entity. Not required when creating an entity, but required when updating an entity. - */ - @header - `If-Match`?: string, - - ...SubscriptionIdParameter, - - /** - * The policy contents to apply. - */ - @bodyRoot - parameters: PolicyContract, - ): ArmResponse | ErrorResponse; - + @operationId("ApiManagementService_CheckNameAvailability") + @autoRoute + checkNameAvailability is ArmProviderActionSync< + Request = ApiManagementServiceCheckNameAvailabilityParameters, + Response = ApiManagementServiceNameAvailabilityResult, + Scope = SubscriptionActionScope, + Parameters = {} + >; /** - * Deletes the policy configuration at the Product. + * Get the custom domain ownership identifier for an API Management service. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ProductPolicy_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}") - @delete - delete( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Product identifier. Must be unique in the current API Management service instance. - */ - @maxLength(256) - @minLength(1) - @path - productId: string, - - /** - * The identifier of the Policy. - */ - @path - policyId: PolicyIdName, - - /** - * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. - */ - @header - `If-Match`: string, - - ...SubscriptionIdParameter, - ): OkResponse | ErrorResponse; + @operationId("ApiManagementService_GetDomainOwnershipIdentifier") + @autoRoute + getDomainOwnershipIdentifier is ArmProviderActionSync< + Response = ApiManagementServiceGetDomainOwnershipIdentifierResult, + Scope = SubscriptionActionScope, + Parameters = {} + >; } #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" @@ -1687,95 +120,3 @@ interface ApiManagementSkusOperations { Parameters = {} >; } - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface UserSubscriptionOperations { - /** - * Lists the collection of subscriptions of the specified user. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("UserSubscription_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions") - @get - list( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * User identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @path - userId: string, - - /** - * | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
|name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
- */ - @query("$filter") - $filter?: string, - - /** - * Number of records to return. - */ - @minValue(1) - @query("$top") - $top?: int32, - - /** - * Number of records to skip. - */ - @query("$skip") - $skip?: int32, - - ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; - - /** - * Gets the specified Subscription entity associated with a particular user. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("UserSubscription_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}") - @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * User identifier. Must be unique in the current API Management service instance. - */ - @maxLength(80) - @minLength(1) - @path - userId: string, - - /** - * Subscription entity Identifier. The entity represents the association between a user and a product in API Management. - */ - @maxLength(256) - @pattern("^[^*#&+:<>?]+$") - @path - sid: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; -} diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/resources.json b/packages/extensions/openapi-to-typespec/test/arm-authorization/resources.json index 2ad2764e69..a45890913f 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/resources.json @@ -1,812 +1,836 @@ { "Resources": { - "DenyAssignment": { - "Name": "DenyAssignment", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}", - "Method": "GET", - "OperationID": "DenyAssignments_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the specified deny assignment." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/denyAssignments", - "Method": "GET", - "OperationID": "DenyAssignments_ListForResource", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForResource", - "ItemName": "value", - "NextLinkName": "nextLink" + "DenyAssignment": [ + { + "Name": "DenyAssignment", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}", + "Method": "GET", + "OperationID": "DenyAssignments_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the specified deny assignment." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/denyAssignments", + "Method": "GET", + "OperationID": "DenyAssignments_ListForResource", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForResource", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets deny assignments for a resource." }, - "Description": "Gets deny assignments for a resource." - }, - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/denyAssignments", - "Method": "GET", - "OperationID": "DenyAssignments_ListForResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/denyAssignments", + "Method": "GET", + "OperationID": "DenyAssignments_ListForResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets deny assignments for a resource group." }, - "Description": "Gets deny assignments for a resource group." - }, - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/denyAssignments", - "Method": "GET", - "OperationID": "DenyAssignments_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/denyAssignments", + "Method": "GET", + "OperationID": "DenyAssignments_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets all deny assignments for the subscription." }, - "Description": "Gets all deny assignments for the subscription." - }, - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/denyAssignments", - "Method": "GET", - "OperationID": "DenyAssignments_ListForScope", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForScope", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/denyAssignments", + "Method": "GET", + "OperationID": "DenyAssignments_ListForScope", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForScope", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets deny assignments for a scope." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "DenyAssignment", + "ResourceType": "Microsoft.Authorization/denyAssignments", + "ResourceKey": "denyAssignmentId", + "ResourceKeySegment": "denyAssignments", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ], + "ProviderOperationsMetadata": [ + { + "Name": "ProviderOperationsMetadatum", + "GetOperations": [ + { + "Name": "Get", + "Path": "/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}", + "Method": "GET", + "OperationID": "ProviderOperationsMetadata_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets provider operations metadata for the specified resource provider." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/providers/Microsoft.Authorization/providerOperations", + "Method": "GET", + "OperationID": "ProviderOperationsMetadata_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets provider operations metadata for all resource providers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "TenantResource" + ], + "SwaggerModelName": "ProviderOperationsMetadata", + "ResourceType": "Microsoft.Authorization/providerOperations", + "ResourceKey": "resourceProviderNamespace", + "ResourceKeySegment": "providerOperations", + "IsTrackedResource": false, + "IsTenantResource": true, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "RoleAssignment": [ + { + "Name": "RoleAssignment", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", + "Method": "GET", + "OperationID": "RoleAssignments_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a role assignment by scope and name." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", + "Method": "PUT", + "OperationID": "RoleAssignments_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a role assignment by scope and name." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", + "Method": "PUT", + "OperationID": "RoleAssignments_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a role assignment by scope and name." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", + "Method": "DELETE", + "OperationID": "RoleAssignments_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a role assignment by scope and name." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignments", + "Method": "GET", + "OperationID": "RoleAssignments_ListForScope", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForScope", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List all role assignments that apply to a scope." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "RoleAssignment", + "ResourceType": "Microsoft.Authorization/roleAssignments", + "ResourceKey": "roleAssignmentName", + "ResourceKeySegment": "roleAssignments", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ], + "RoleDefinition": [ + { + "Name": "RoleDefinition", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", + "Method": "GET", + "OperationID": "RoleDefinitions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get role definition by name (GUID)." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", + "Method": "PUT", + "OperationID": "RoleDefinitions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates a role definition." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", + "Method": "PUT", + "OperationID": "RoleDefinitions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates a role definition." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", + "Method": "DELETE", + "OperationID": "RoleDefinitions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a role definition." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/roleDefinitions", + "Method": "GET", + "OperationID": "RoleDefinitions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Get all role definitions that are applicable at scope and above." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "RoleDefinition", + "ResourceType": "Microsoft.Authorization/roleDefinitions", + "ResourceKey": "roleDefinitionId", + "ResourceKeySegment": "roleDefinitions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ], + "RoleAssignmentSchedule": [ + { + "Name": "RoleAssignmentSchedule", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules/{roleAssignmentScheduleName}", + "Method": "GET", + "OperationID": "RoleAssignmentSchedules_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the specified role assignment schedule for a resource scope" + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules", + "Method": "GET", + "OperationID": "RoleAssignmentSchedules_ListForScope", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForScope", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets role assignment schedules for a resource scope." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "RoleAssignmentSchedule", + "ResourceType": "Microsoft.Authorization/roleAssignmentSchedules", + "ResourceKey": "roleAssignmentScheduleName", + "ResourceKeySegment": "roleAssignmentSchedules", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ], + "RoleAssignmentScheduleInstance": [ + { + "Name": "RoleAssignmentScheduleInstance", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances/{roleAssignmentScheduleInstanceName}", + "Method": "GET", + "OperationID": "RoleAssignmentScheduleInstances_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the specified role assignment schedule instance." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances", + "Method": "GET", + "OperationID": "RoleAssignmentScheduleInstances_ListForScope", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForScope", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets role assignment schedule instances of a role assignment schedule." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "RoleAssignmentScheduleInstance", + "ResourceType": "Microsoft.Authorization/roleAssignmentScheduleInstances", + "ResourceKey": "roleAssignmentScheduleInstanceName", + "ResourceKeySegment": "roleAssignmentScheduleInstances", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ], + "RoleAssignmentScheduleRequest": [ + { + "Name": "RoleAssignmentScheduleRequest", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}", + "Method": "GET", + "OperationID": "RoleAssignmentScheduleRequests_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the specified role assignment schedule request." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}", + "Method": "PUT", + "OperationID": "RoleAssignmentScheduleRequests_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a role assignment schedule request." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}", + "Method": "PUT", + "OperationID": "RoleAssignmentScheduleRequests_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a role assignment schedule request." + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests", + "Method": "GET", + "OperationID": "RoleAssignmentScheduleRequests_ListForScope", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForScope", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets role assignment schedule requests for a scope." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Cancel", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/cancel", + "Method": "POST", + "OperationID": "RoleAssignmentScheduleRequests_Cancel", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Cancels a pending role assignment schedule request." }, - "Description": "Gets deny assignments for a scope." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "DenyAssignment", - "ResourceType": "Microsoft.Authorization/denyAssignments", - "ResourceKey": "denyAssignmentId", - "ResourceKeySegment": "denyAssignments", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - }, - "ProviderOperationsMetadata": { - "Name": "ProviderOperationsMetadatum", - "GetOperations": [ - { - "Name": "Get", - "Path": "/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}", - "Method": "GET", - "OperationID": "ProviderOperationsMetadata_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets provider operations metadata for the specified resource provider." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/providers/Microsoft.Authorization/providerOperations", - "Method": "GET", - "OperationID": "ProviderOperationsMetadata_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "Validate", + "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/validate", + "Method": "POST", + "OperationID": "RoleAssignmentScheduleRequests_Validate", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Validates a new role assignment schedule request." + } + ], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "RoleAssignmentScheduleRequest", + "ResourceType": "Microsoft.Authorization/roleAssignmentScheduleRequests", + "ResourceKey": "roleAssignmentScheduleRequestName", + "ResourceKeySegment": "roleAssignmentScheduleRequests", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ], + "RoleEligibilitySchedule": [ + { + "Name": "RoleEligibilitySchedule", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilitySchedules/{roleEligibilityScheduleName}", + "Method": "GET", + "OperationID": "RoleEligibilitySchedules_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the specified role eligibility schedule for a resource scope" + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilitySchedules", + "Method": "GET", + "OperationID": "RoleEligibilitySchedules_ListForScope", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForScope", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets role eligibility schedules for a resource scope." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "RoleEligibilitySchedule", + "ResourceType": "Microsoft.Authorization/roleEligibilitySchedules", + "ResourceKey": "roleEligibilityScheduleName", + "ResourceKeySegment": "roleEligibilitySchedules", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ], + "RoleEligibilityScheduleInstance": [ + { + "Name": "RoleEligibilityScheduleInstance", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleInstances/{roleEligibilityScheduleInstanceName}", + "Method": "GET", + "OperationID": "RoleEligibilityScheduleInstances_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the specified role eligibility schedule instance." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleInstances", + "Method": "GET", + "OperationID": "RoleEligibilityScheduleInstances_ListForScope", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForScope", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets role eligibility schedule instances of a role eligibility schedule." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "RoleEligibilityScheduleInstance", + "ResourceType": "Microsoft.Authorization/roleEligibilityScheduleInstances", + "ResourceKey": "roleEligibilityScheduleInstanceName", + "ResourceKeySegment": "roleEligibilityScheduleInstances", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ], + "RoleEligibilityScheduleRequest": [ + { + "Name": "RoleEligibilityScheduleRequest", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}", + "Method": "GET", + "OperationID": "RoleEligibilityScheduleRequests_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the specified role eligibility schedule request." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}", + "Method": "PUT", + "OperationID": "RoleEligibilityScheduleRequests_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a role eligibility schedule request." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}", + "Method": "PUT", + "OperationID": "RoleEligibilityScheduleRequests_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a role eligibility schedule request." + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests", + "Method": "GET", + "OperationID": "RoleEligibilityScheduleRequests_ListForScope", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForScope", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets role eligibility schedule requests for a scope." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Cancel", + "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}/cancel", + "Method": "POST", + "OperationID": "RoleEligibilityScheduleRequests_Cancel", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Cancels a pending role eligibility schedule request." }, - "Description": "Gets provider operations metadata for all resource providers." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "TenantResource" - ], - "SwaggerModelName": "ProviderOperationsMetadata", - "ResourceType": "Microsoft.Authorization/providerOperations", - "ResourceKey": "resourceProviderNamespace", - "ResourceKeySegment": "providerOperations", - "IsTrackedResource": false, - "IsTenantResource": true, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "RoleAssignment": { - "Name": "RoleAssignment", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", - "Method": "GET", - "OperationID": "RoleAssignments_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a role assignment by scope and name." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", - "Method": "PUT", - "OperationID": "RoleAssignments_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a role assignment by scope and name." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", - "Method": "PUT", - "OperationID": "RoleAssignments_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a role assignment by scope and name." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", - "Method": "DELETE", - "OperationID": "RoleAssignments_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a role assignment by scope and name." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignments", - "Method": "GET", - "OperationID": "RoleAssignments_ListForScope", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForScope", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List all role assignments that apply to a scope." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "RoleAssignment", - "ResourceType": "Microsoft.Authorization/roleAssignments", - "ResourceKey": "roleAssignmentName", - "ResourceKeySegment": "roleAssignments", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - }, - "RoleDefinition": { - "Name": "RoleDefinition", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", - "Method": "GET", - "OperationID": "RoleDefinitions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get role definition by name (GUID)." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", - "Method": "PUT", - "OperationID": "RoleDefinitions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates a role definition." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", - "Method": "PUT", - "OperationID": "RoleDefinitions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates a role definition." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", - "Method": "DELETE", - "OperationID": "RoleDefinitions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a role definition." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/roleDefinitions", - "Method": "GET", - "OperationID": "RoleDefinitions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Get all role definitions that are applicable at scope and above." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "RoleDefinition", - "ResourceType": "Microsoft.Authorization/roleDefinitions", - "ResourceKey": "roleDefinitionId", - "ResourceKeySegment": "roleDefinitions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - }, - "RoleAssignmentSchedule": { - "Name": "RoleAssignmentSchedule", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules/{roleAssignmentScheduleName}", - "Method": "GET", - "OperationID": "RoleAssignmentSchedules_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the specified role assignment schedule for a resource scope" - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules", - "Method": "GET", - "OperationID": "RoleAssignmentSchedules_ListForScope", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForScope", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets role assignment schedules for a resource scope." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "RoleAssignmentSchedule", - "ResourceType": "Microsoft.Authorization/roleAssignmentSchedules", - "ResourceKey": "roleAssignmentScheduleName", - "ResourceKeySegment": "roleAssignmentSchedules", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - }, - "RoleAssignmentScheduleInstance": { - "Name": "RoleAssignmentScheduleInstance", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances/{roleAssignmentScheduleInstanceName}", - "Method": "GET", - "OperationID": "RoleAssignmentScheduleInstances_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the specified role assignment schedule instance." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances", - "Method": "GET", - "OperationID": "RoleAssignmentScheduleInstances_ListForScope", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForScope", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets role assignment schedule instances of a role assignment schedule." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "RoleAssignmentScheduleInstance", - "ResourceType": "Microsoft.Authorization/roleAssignmentScheduleInstances", - "ResourceKey": "roleAssignmentScheduleInstanceName", - "ResourceKeySegment": "roleAssignmentScheduleInstances", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - }, - "RoleAssignmentScheduleRequest": { - "Name": "RoleAssignmentScheduleRequest", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}", - "Method": "GET", - "OperationID": "RoleAssignmentScheduleRequests_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the specified role assignment schedule request." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}", - "Method": "PUT", - "OperationID": "RoleAssignmentScheduleRequests_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a role assignment schedule request." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}", - "Method": "PUT", - "OperationID": "RoleAssignmentScheduleRequests_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a role assignment schedule request." - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests", - "Method": "GET", - "OperationID": "RoleAssignmentScheduleRequests_ListForScope", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForScope", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets role assignment schedule requests for a scope." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Cancel", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/cancel", - "Method": "POST", - "OperationID": "RoleAssignmentScheduleRequests_Cancel", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Cancels a pending role assignment schedule request." - }, - { - "Name": "Validate", - "Path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/validate", - "Method": "POST", - "OperationID": "RoleAssignmentScheduleRequests_Validate", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Validates a new role assignment schedule request." - } - ], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "RoleAssignmentScheduleRequest", - "ResourceType": "Microsoft.Authorization/roleAssignmentScheduleRequests", - "ResourceKey": "roleAssignmentScheduleRequestName", - "ResourceKeySegment": "roleAssignmentScheduleRequests", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - }, - "RoleEligibilitySchedule": { - "Name": "RoleEligibilitySchedule", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilitySchedules/{roleEligibilityScheduleName}", - "Method": "GET", - "OperationID": "RoleEligibilitySchedules_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the specified role eligibility schedule for a resource scope" - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilitySchedules", - "Method": "GET", - "OperationID": "RoleEligibilitySchedules_ListForScope", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForScope", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets role eligibility schedules for a resource scope." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "RoleEligibilitySchedule", - "ResourceType": "Microsoft.Authorization/roleEligibilitySchedules", - "ResourceKey": "roleEligibilityScheduleName", - "ResourceKeySegment": "roleEligibilitySchedules", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - }, - "RoleEligibilityScheduleInstance": { - "Name": "RoleEligibilityScheduleInstance", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleInstances/{roleEligibilityScheduleInstanceName}", - "Method": "GET", - "OperationID": "RoleEligibilityScheduleInstances_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the specified role eligibility schedule instance." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleInstances", - "Method": "GET", - "OperationID": "RoleEligibilityScheduleInstances_ListForScope", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForScope", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets role eligibility schedule instances of a role eligibility schedule." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "RoleEligibilityScheduleInstance", - "ResourceType": "Microsoft.Authorization/roleEligibilityScheduleInstances", - "ResourceKey": "roleEligibilityScheduleInstanceName", - "ResourceKeySegment": "roleEligibilityScheduleInstances", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - }, - "RoleEligibilityScheduleRequest": { - "Name": "RoleEligibilityScheduleRequest", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}", - "Method": "GET", - "OperationID": "RoleEligibilityScheduleRequests_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the specified role eligibility schedule request." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}", - "Method": "PUT", - "OperationID": "RoleEligibilityScheduleRequests_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a role eligibility schedule request." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}", - "Method": "PUT", - "OperationID": "RoleEligibilityScheduleRequests_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a role eligibility schedule request." - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests", - "Method": "GET", - "OperationID": "RoleEligibilityScheduleRequests_ListForScope", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForScope", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets role eligibility schedule requests for a scope." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Cancel", - "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}/cancel", - "Method": "POST", - "OperationID": "RoleEligibilityScheduleRequests_Cancel", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Cancels a pending role eligibility schedule request." - }, - { - "Name": "Validate", - "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}/validate", - "Method": "POST", - "OperationID": "RoleEligibilityScheduleRequests_Validate", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Validates a new role eligibility schedule request." - } - ], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "RoleEligibilityScheduleRequest", - "ResourceType": "Microsoft.Authorization/roleEligibilityScheduleRequests", - "ResourceKey": "roleEligibilityScheduleRequestName", - "ResourceKeySegment": "roleEligibilityScheduleRequests", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - }, - "RoleManagementPolicy": { - "Name": "RoleManagementPolicy", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}", - "Method": "GET", - "OperationID": "RoleManagementPolicies_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the specified role management policy for a resource scope" - } - ], - "CreateOperations": [], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}", - "Method": "PATCH", - "OperationID": "RoleManagementPolicies_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a role management policy" - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies", - "Method": "GET", - "OperationID": "RoleManagementPolicies_ListForScope", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForScope", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets role management policies for a resource scope." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "RoleManagementPolicy", - "ResourceType": "Microsoft.Authorization/roleManagementPolicies", - "ResourceKey": "roleManagementPolicyName", - "ResourceKeySegment": "roleManagementPolicies", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - }, - "RoleManagementPolicyAssignment": { - "Name": "RoleManagementPolicyAssignment", - "GetOperations": [ - { - "Name": "Get", - "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", - "Method": "GET", - "OperationID": "RoleManagementPolicyAssignments_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the specified role management policy assignment for a resource scope" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", - "Method": "PUT", - "OperationID": "RoleManagementPolicyAssignments_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a role management policy assignment" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", - "Method": "PUT", - "OperationID": "RoleManagementPolicyAssignments_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a role management policy assignment" - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments", - "Method": "GET", - "OperationID": "RoleManagementPolicyAssignments_ListForScope", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListForScope", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets role management assignment policies for a resource scope." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ArmResource" - ], - "SwaggerModelName": "RoleManagementPolicyAssignment", - "ResourceType": "Microsoft.Authorization/roleManagementPolicyAssignments", - "ResourceKey": "roleManagementPolicyAssignmentName", - "ResourceKeySegment": "roleManagementPolicyAssignments", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": true, - "IsSingletonResource": false - } + { + "Name": "Validate", + "Path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}/validate", + "Method": "POST", + "OperationID": "RoleEligibilityScheduleRequests_Validate", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Validates a new role eligibility schedule request." + } + ], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "RoleEligibilityScheduleRequest", + "ResourceType": "Microsoft.Authorization/roleEligibilityScheduleRequests", + "ResourceKey": "roleEligibilityScheduleRequestName", + "ResourceKeySegment": "roleEligibilityScheduleRequests", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ], + "RoleManagementPolicy": [ + { + "Name": "RoleManagementPolicy", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}", + "Method": "GET", + "OperationID": "RoleManagementPolicies_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the specified role management policy for a resource scope" + } + ], + "CreateOperations": [], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}", + "Method": "PATCH", + "OperationID": "RoleManagementPolicies_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a role management policy" + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies", + "Method": "GET", + "OperationID": "RoleManagementPolicies_ListForScope", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForScope", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets role management policies for a resource scope." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "RoleManagementPolicy", + "ResourceType": "Microsoft.Authorization/roleManagementPolicies", + "ResourceKey": "roleManagementPolicyName", + "ResourceKeySegment": "roleManagementPolicies", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ], + "RoleManagementPolicyAssignment": [ + { + "Name": "RoleManagementPolicyAssignment", + "GetOperations": [ + { + "Name": "Get", + "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", + "Method": "GET", + "OperationID": "RoleManagementPolicyAssignments_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the specified role management policy assignment for a resource scope" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", + "Method": "PUT", + "OperationID": "RoleManagementPolicyAssignments_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a role management policy assignment" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", + "Method": "PUT", + "OperationID": "RoleManagementPolicyAssignments_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a role management policy assignment" + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments", + "Method": "GET", + "OperationID": "RoleManagementPolicyAssignments_ListForScope", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListForScope", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets role management assignment policies for a resource scope." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ArmResource" + ], + "SwaggerModelName": "RoleManagementPolicyAssignment", + "ResourceType": "Microsoft.Authorization/roleManagementPolicyAssignments", + "ResourceKey": "roleManagementPolicyAssignmentName", + "ResourceKeySegment": "roleManagementPolicyAssignments", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": true, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/DenyAssignment.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/DenyAssignment.tsp index fed4af81d7..acece9c866 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/DenyAssignment.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/DenyAssignment.tsp @@ -30,7 +30,20 @@ interface DenyAssignments { */ get is ArmResourceRead< DenyAssignment, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the deny assignment. + */ + @path + scope: string; + + /** + * The ID of the deny assignment to get. + */ + @path + denyAssignmentId: string; + } >; /** diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignment.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignment.tsp index 0154d6c733..77b08e8cae 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignment.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignment.tsp @@ -32,6 +32,18 @@ interface RoleAssignments { RoleAssignment, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, Parameters = { + /** + * The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + */ + @path + scope: string; + + /** + * The name of the role assignment. It can be any valid GUID. + */ + @path + roleAssignmentName: string; + /** * Tenant ID for cross-tenant request */ @@ -45,7 +57,20 @@ interface RoleAssignments { */ create is ArmResourceCreateOrReplaceSync< RoleAssignment, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + */ + @path + scope: string; + + /** + * The name of the role assignment. It can be any valid GUID. + */ + @path + roleAssignmentName: string; + } >; /** @@ -56,6 +81,18 @@ interface RoleAssignments { RoleAssignment, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, Parameters = { + /** + * The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + */ + @path + scope: string; + + /** + * The name of the role assignment. It can be any valid GUID. + */ + @path + roleAssignmentName: string; + /** * Tenant ID for cross-tenant request */ @@ -72,6 +109,12 @@ interface RoleAssignments { RoleAssignment, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, Parameters = { + /** + * The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + */ + @path + scope: string; + /** * The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentSchedule.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentSchedule.tsp index a4c9d9ad51..98e1f33aa0 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentSchedule.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentSchedule.tsp @@ -30,7 +30,20 @@ interface RoleAssignmentSchedules { */ get is ArmResourceRead< RoleAssignmentSchedule, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role assignment schedule. + */ + @path + scope: string; + + /** + * The name (guid) of the role assignment schedule to get. + */ + @path + roleAssignmentScheduleName: string; + } >; /** @@ -40,6 +53,12 @@ interface RoleAssignmentSchedules { RoleAssignmentSchedule, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, Parameters = { + /** + * The scope of the role assignments schedules. + */ + @path + scope: string; + /** * The filter to apply on the operation. Use $filter=atScope() to return all role assignment schedules at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role assignment schedules for the current user. Use $filter=asTarget() to return all role assignment schedules created for the current user. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentScheduleInstance.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentScheduleInstance.tsp index fedc78b479..eb7a311c3d 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentScheduleInstance.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentScheduleInstance.tsp @@ -30,7 +30,20 @@ interface RoleAssignmentScheduleInstances { */ get is ArmResourceRead< RoleAssignmentScheduleInstance, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role assignments schedules. + */ + @path + scope: string; + + /** + * The name (hash of schedule name + time) of the role assignment schedule to get. + */ + @path + roleAssignmentScheduleInstanceName: string; + } >; /** @@ -40,6 +53,12 @@ interface RoleAssignmentScheduleInstances { RoleAssignmentScheduleInstance, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, Parameters = { + /** + * The scope of the role assignment schedule. + */ + @path + scope: string; + /** * The filter to apply on the operation. Use $filter=atScope() to return all role assignment schedules at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role assignment schedule instances for the user. Use $filter=asTarget() to return all role assignment schedule instances created for the current user. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentScheduleRequest.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentScheduleRequest.tsp index dca7d9b1c6..cb37c64d84 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentScheduleRequest.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleAssignmentScheduleRequest.tsp @@ -30,7 +30,20 @@ interface RoleAssignmentScheduleRequests { */ get is ArmResourceRead< RoleAssignmentScheduleRequest, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role assignment schedule request. + */ + @path + scope: string; + + /** + * The name (guid) of the role assignment schedule request to get. + */ + @path + roleAssignmentScheduleRequestName: string; + } >; /** @@ -40,6 +53,19 @@ interface RoleAssignmentScheduleRequests { create is ArmResourceCreateOrReplaceSync< RoleAssignmentScheduleRequest, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role assignment schedule request to create. The scope can be any REST resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource. + */ + @path + scope: string; + + /** + * A GUID for the role assignment to create. The name must be unique and different for each role assignment. + */ + @path + roleAssignmentScheduleRequestName: string; + }, Response = ArmResourceCreatedSyncResponse >; @@ -50,6 +76,12 @@ interface RoleAssignmentScheduleRequests { RoleAssignmentScheduleRequest, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, Parameters = { + /** + * The scope of the role assignments schedule requests. + */ + @path + scope: string; + /** * The filter to apply on the operation. Use $filter=atScope() to return all role assignment schedule requests at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedule requests at, above or below the scope for the specified principal. Use $filter=asRequestor() to return all role assignment schedule requests requested by the current user. Use $filter=asTarget() to return all role assignment schedule requests created for the current user. Use $filter=asApprover() to return all role assignment schedule requests where the current user is an approver. */ @@ -65,7 +97,20 @@ interface RoleAssignmentScheduleRequests { RoleAssignmentScheduleRequest, void, OkResponse, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role assignment request to cancel. + */ + @path + scope: string; + + /** + * The name of the role assignment request to cancel. + */ + @path + roleAssignmentScheduleRequestName: string; + } >; /** @@ -75,7 +120,20 @@ interface RoleAssignmentScheduleRequests { RoleAssignmentScheduleRequest, RoleAssignmentScheduleRequest, ArmResponse, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role assignment request to validate. + */ + @path + scope: string; + + /** + * The name of the role assignment request to validate. + */ + @path + roleAssignmentScheduleRequestName: string; + } >; } diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleDefinition.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleDefinition.tsp index 0940bb879b..f0f6692de0 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleDefinition.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleDefinition.tsp @@ -30,7 +30,20 @@ interface RoleDefinitions { */ get is ArmResourceRead< RoleDefinition, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role definition. + */ + @path + scope: string; + + /** + * The ID of the role definition. + */ + @path + roleDefinitionId: string; + } >; /** @@ -40,6 +53,19 @@ interface RoleDefinitions { createOrUpdate is ArmResourceCreateOrReplaceSync< RoleDefinition, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role definition. + */ + @path + scope: string; + + /** + * The ID of the role definition. + */ + @path + roleDefinitionId: string; + }, Response = ArmResourceCreatedSyncResponse >; @@ -50,6 +76,19 @@ interface RoleDefinitions { delete is ArmResourceDeleteSync< RoleDefinition, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role definition. + */ + @path + scope: string; + + /** + * The ID of the role definition to delete. + */ + @path + roleDefinitionId: string; + }, Response = ArmResponse | ArmDeletedNoContentResponse >; @@ -60,6 +99,12 @@ interface RoleDefinitions { RoleDefinition, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, Parameters = { + /** + * The scope of the role definition. + */ + @path + scope: string; + /** * The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilitySchedule.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilitySchedule.tsp index eb1563bd72..6c596378a9 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilitySchedule.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilitySchedule.tsp @@ -30,7 +30,20 @@ interface RoleEligibilitySchedules { */ get is ArmResourceRead< RoleEligibilitySchedule, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role eligibility schedule. + */ + @path + scope: string; + + /** + * The name (guid) of the role eligibility schedule to get. + */ + @path + roleEligibilityScheduleName: string; + } >; /** @@ -40,6 +53,12 @@ interface RoleEligibilitySchedules { RoleEligibilitySchedule, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, Parameters = { + /** + * The scope of the role eligibility schedules. + */ + @path + scope: string; + /** * The filter to apply on the operation. Use $filter=atScope() to return all role eligibility schedules at or above the scope. Use $filter=principalId eq {id} to return all role eligibility schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role eligibility schedules for the user. Use $filter=asTarget() to return all role eligibility schedules created for the current user. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilityScheduleInstance.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilityScheduleInstance.tsp index 1794b1235e..64dbe889b5 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilityScheduleInstance.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilityScheduleInstance.tsp @@ -30,7 +30,20 @@ interface RoleEligibilityScheduleInstances { */ get is ArmResourceRead< RoleEligibilityScheduleInstance, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role eligibility schedules. + */ + @path + scope: string; + + /** + * The name (hash of schedule name + time) of the role eligibility schedule to get. + */ + @path + roleEligibilityScheduleInstanceName: string; + } >; /** @@ -40,6 +53,12 @@ interface RoleEligibilityScheduleInstances { RoleEligibilityScheduleInstance, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, Parameters = { + /** + * The scope of the role eligibility schedule. + */ + @path + scope: string; + /** * The filter to apply on the operation. Use $filter=atScope() to return all role assignment schedules at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role eligibility schedules for the user. Use $filter=asTarget() to return all role eligibility schedules created for the current user. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilityScheduleRequest.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilityScheduleRequest.tsp index 727f1f75c3..892fa3e0bd 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilityScheduleRequest.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleEligibilityScheduleRequest.tsp @@ -30,7 +30,20 @@ interface RoleEligibilityScheduleRequests { */ get is ArmResourceRead< RoleEligibilityScheduleRequest, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role eligibility schedule request. + */ + @path + scope: string; + + /** + * The name (guid) of the role eligibility schedule request to get. + */ + @path + roleEligibilityScheduleRequestName: string; + } >; /** @@ -40,6 +53,19 @@ interface RoleEligibilityScheduleRequests { create is ArmResourceCreateOrReplaceSync< RoleEligibilityScheduleRequest, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role eligibility schedule request to create. The scope can be any REST resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource. + */ + @path + scope: string; + + /** + * The name of the role eligibility to create. It can be any valid GUID. + */ + @path + roleEligibilityScheduleRequestName: string; + }, Response = ArmResourceCreatedSyncResponse >; @@ -50,6 +76,12 @@ interface RoleEligibilityScheduleRequests { RoleEligibilityScheduleRequest, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, Parameters = { + /** + * The scope of the role eligibility schedule requests. + */ + @path + scope: string; + /** * The filter to apply on the operation. Use $filter=atScope() to return all role eligibility schedule requests at or above the scope. Use $filter=principalId eq {id} to return all role eligibility schedule requests at, above or below the scope for the specified principal. Use $filter=asRequestor() to return all role eligibility schedule requests requested by the current user. Use $filter=asTarget() to return all role eligibility schedule requests created for the current user. Use $filter=asApprover() to return all role eligibility schedule requests where the current user is an approver. */ @@ -65,7 +97,20 @@ interface RoleEligibilityScheduleRequests { RoleEligibilityScheduleRequest, void, OkResponse, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role eligibility request to cancel. + */ + @path + scope: string; + + /** + * The name of the role eligibility request to cancel. + */ + @path + roleEligibilityScheduleRequestName: string; + } >; /** @@ -75,7 +120,20 @@ interface RoleEligibilityScheduleRequests { RoleEligibilityScheduleRequest, RoleEligibilityScheduleRequest, ArmResponse, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role eligibility request to validate. + */ + @path + scope: string; + + /** + * The name of the role eligibility request to validate. + */ + @path + roleEligibilityScheduleRequestName: string; + } >; } diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleManagementPolicy.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleManagementPolicy.tsp index d3986d4a54..51ff50dc30 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleManagementPolicy.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleManagementPolicy.tsp @@ -30,7 +30,20 @@ interface RoleManagementPolicies { */ get is ArmResourceRead< RoleManagementPolicy, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role management policy. + */ + @path + scope: string; + + /** + * The name (guid) of the role management policy to get. + */ + @path + roleManagementPolicyName: string; + } >; /** @@ -40,7 +53,20 @@ interface RoleManagementPolicies { update is ArmCustomPatchSync< RoleManagementPolicy, PatchModel = RoleManagementPolicy, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role management policy to upsert. + */ + @path + scope: string; + + /** + * The name (guid) of the role management policy to upsert. + */ + @path + roleManagementPolicyName: string; + } >; /** @@ -48,7 +74,14 @@ interface RoleManagementPolicies { */ listForScope is ArmResourceListByParent< RoleManagementPolicy, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role management policy. + */ + @path + scope: string; + } >; } diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleManagementPolicyAssignment.tsp b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleManagementPolicyAssignment.tsp index af516e9d89..ee6ba359cc 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleManagementPolicyAssignment.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/RoleManagementPolicyAssignment.tsp @@ -30,7 +30,20 @@ interface RoleManagementPolicyAssignments { */ get is ArmResourceRead< RoleManagementPolicyAssignment, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role management policy. + */ + @path + scope: string; + + /** + * The name of format {guid_guid} the role management policy assignment to get. + */ + @path + roleManagementPolicyAssignmentName: string; + } >; /** @@ -40,6 +53,19 @@ interface RoleManagementPolicyAssignments { create is ArmResourceCreateOrReplaceSync< RoleManagementPolicyAssignment, BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role management policy assignment to upsert. + */ + @path + scope: string; + + /** + * The name of format {guid_guid} the role management policy assignment to upsert. + */ + @path + roleManagementPolicyAssignmentName: string; + }, Response = ArmResourceCreatedSyncResponse >; @@ -48,7 +74,14 @@ interface RoleManagementPolicyAssignments { */ listForScope is ArmResourceListByParent< RoleManagementPolicyAssignment, - BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters + BaseParameters = Azure.ResourceManager.Foundations.ExtensionBaseParameters, + Parameters = { + /** + * The scope of the role management policy. + */ + @path + scope: string; + } >; } diff --git a/packages/extensions/openapi-to-typespec/test/arm-azureintegrationspaces/resources.json b/packages/extensions/openapi-to-typespec/test/arm-azureintegrationspaces/resources.json index aa1339128b..915bfa98cf 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-azureintegrationspaces/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-azureintegrationspaces/resources.json @@ -1,519 +1,531 @@ { "Resources": { - "Space": { - "Name": "Space", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}", - "Method": "GET", - "OperationID": "Spaces_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Space" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}", - "Method": "PUT", - "OperationID": "Spaces_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Space" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}", - "Method": "PATCH", - "OperationID": "Spaces_Patch", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a Space" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}", - "Method": "DELETE", - "OperationID": "Spaces_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Space" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces", - "Method": "GET", - "OperationID": "Spaces_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" + "Space": [ + { + "Name": "Space", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}", + "Method": "GET", + "OperationID": "Spaces_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Space" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}", + "Method": "PUT", + "OperationID": "Spaces_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Space" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}", + "Method": "PATCH", + "OperationID": "Spaces_Patch", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a Space" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}", + "Method": "DELETE", + "OperationID": "Spaces_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Space" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces", + "Method": "GET", + "OperationID": "Spaces_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Space resources by resource group" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.IntegrationSpaces/spaces", + "Method": "GET", + "OperationID": "Spaces_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Space resources by subscription ID" + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "Space", + "ResourceType": "Microsoft.IntegrationSpaces/spaces", + "ResourceKey": "spaceName", + "ResourceKeySegment": "spaces", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Application": [ + { + "Name": "Application", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}", + "Method": "GET", + "OperationID": "Applications_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Application" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}", + "Method": "PUT", + "OperationID": "Applications_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Application" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}", + "Method": "PATCH", + "OperationID": "Applications_Patch", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a Application" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}", + "Method": "DELETE", + "OperationID": "Applications_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Application" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications", + "Method": "GET", + "OperationID": "Applications_ListBySpace", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySpace", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Application resources by Space" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "DeleteBusinessProcessDevelopmentArtifact", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/deleteBusinessProcessDevelopmentArtifact", + "Method": "POST", + "OperationID": "Applications_DeleteBusinessProcessDevelopmentArtifact", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The delete business process development artifact action." }, - "Description": "List Space resources by resource group" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.IntegrationSpaces/spaces", - "Method": "GET", - "OperationID": "Spaces_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "GetBusinessProcessDevelopmentArtifact", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/getBusinessProcessDevelopmentArtifact", + "Method": "POST", + "OperationID": "Applications_GetBusinessProcessDevelopmentArtifact", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The get business process development artifact action." }, - "Description": "List Space resources by subscription ID" - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "Space", - "ResourceType": "Microsoft.IntegrationSpaces/spaces", - "ResourceKey": "spaceName", - "ResourceKeySegment": "spaces", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Application": { - "Name": "Application", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}", - "Method": "GET", - "OperationID": "Applications_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Application" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}", - "Method": "PUT", - "OperationID": "Applications_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Application" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}", - "Method": "PATCH", - "OperationID": "Applications_Patch", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a Application" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}", - "Method": "DELETE", - "OperationID": "Applications_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Application" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications", - "Method": "GET", - "OperationID": "Applications_ListBySpace", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySpace", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListBusinessProcessDevelopmentArtifacts", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/listBusinessProcessDevelopmentArtifacts", + "Method": "POST", + "OperationID": "Applications_ListBusinessProcessDevelopmentArtifacts", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBusinessProcessDevelopmentArtifacts", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "The list business process development artifacts action." }, - "Description": "List Application resources by Space" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "DeleteBusinessProcessDevelopmentArtifact", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/deleteBusinessProcessDevelopmentArtifact", - "Method": "POST", - "OperationID": "Applications_DeleteBusinessProcessDevelopmentArtifact", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The delete business process development artifact action." - }, - { - "Name": "GetBusinessProcessDevelopmentArtifact", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/getBusinessProcessDevelopmentArtifact", - "Method": "POST", - "OperationID": "Applications_GetBusinessProcessDevelopmentArtifact", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The get business process development artifact action." - }, - { - "Name": "ListBusinessProcessDevelopmentArtifacts", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/listBusinessProcessDevelopmentArtifacts", - "Method": "POST", - "OperationID": "Applications_ListBusinessProcessDevelopmentArtifacts", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBusinessProcessDevelopmentArtifacts", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "SaveBusinessProcessDevelopmentArtifact", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/saveBusinessProcessDevelopmentArtifact", + "Method": "POST", + "OperationID": "Applications_SaveBusinessProcessDevelopmentArtifact", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The save business process development artifact action." }, - "Description": "The list business process development artifacts action." - }, - { - "Name": "SaveBusinessProcessDevelopmentArtifact", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/saveBusinessProcessDevelopmentArtifact", - "Method": "POST", - "OperationID": "Applications_SaveBusinessProcessDevelopmentArtifact", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The save business process development artifact action." - }, - { - "Name": "ValidateBusinessProcessDevelopmentArtifact", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/validateBusinessProcessDevelopmentArtifact", - "Method": "POST", - "OperationID": "Applications_ValidateBusinessProcessDevelopmentArtifact", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The validate business process development artifact action." - } - ], - "Parents": [ - "Space" - ], - "SwaggerModelName": "Application", - "ResourceType": "Microsoft.IntegrationSpaces/spaces/applications", - "ResourceKey": "applicationName", - "ResourceKeySegment": "applications", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "BusinessProcess": { - "Name": "BusinessProcess", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}", - "Method": "GET", - "OperationID": "BusinessProcesses_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a BusinessProcess" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}", - "Method": "PUT", - "OperationID": "BusinessProcesses_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a BusinessProcess" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}", - "Method": "PATCH", - "OperationID": "BusinessProcesses_Patch", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a BusinessProcess" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}", - "Method": "DELETE", - "OperationID": "BusinessProcesses_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a BusinessProcess" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses", - "Method": "GET", - "OperationID": "BusinessProcesses_ListByApplication", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByApplication", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List BusinessProcess resources by Application" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Application" - ], - "SwaggerModelName": "BusinessProcess", - "ResourceType": "Microsoft.IntegrationSpaces/spaces/applications/businessProcesses", - "ResourceKey": "businessProcessName", - "ResourceKeySegment": "businessProcesses", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "BusinessProcessVersion": { - "Name": "BusinessProcessVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}/versions/{businessProcessVersion}", - "Method": "GET", - "OperationID": "BusinessProcessVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a BusinessProcessVersion" - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}/versions", - "Method": "GET", - "OperationID": "BusinessProcessVersions_ListByBusinessProcess", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByBusinessProcess", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List BusinessProcessVersion resources by BusinessProcess" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "BusinessProcess" - ], - "SwaggerModelName": "BusinessProcessVersion", - "ResourceType": "Microsoft.IntegrationSpaces/spaces/applications/businessProcesses/versions", - "ResourceKey": "businessProcessVersion", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApplicationResource": { - "Name": "ApplicationResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources/{resourceName}", - "Method": "GET", - "OperationID": "ApplicationResources_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a ApplicationResource" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources/{resourceName}", - "Method": "PUT", - "OperationID": "ApplicationResources_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a ApplicationResource" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources/{resourceName}", - "Method": "PATCH", - "OperationID": "ApplicationResources_Patch", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a ApplicationResource" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources/{resourceName}", - "Method": "DELETE", - "OperationID": "ApplicationResources_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a ApplicationResource" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources", - "Method": "GET", - "OperationID": "ApplicationResources_ListByApplication", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByApplication", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List ApplicationResource resources by Application" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Application" - ], - "SwaggerModelName": "ApplicationResource", - "ResourceType": "Microsoft.IntegrationSpaces/spaces/applications/resources", - "ResourceKey": "resourceName", - "ResourceKeySegment": "resources", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "InfrastructureResource": { - "Name": "InfrastructureResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName}", - "Method": "GET", - "OperationID": "InfrastructureResources_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a InfrastructureResource" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName}", - "Method": "PUT", - "OperationID": "InfrastructureResources_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a InfrastructureResource" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName}", - "Method": "PATCH", - "OperationID": "InfrastructureResources_Patch", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a InfrastructureResource" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName}", - "Method": "DELETE", - "OperationID": "InfrastructureResources_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a InfrastructureResource" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources", - "Method": "GET", - "OperationID": "InfrastructureResources_ListBySpace", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySpace", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List InfrastructureResource resources by Space" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Space" - ], - "SwaggerModelName": "InfrastructureResource", - "ResourceType": "Microsoft.IntegrationSpaces/spaces/infrastructureResources", - "ResourceKey": "infrastructureResourceName", - "ResourceKeySegment": "infrastructureResources", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + { + "Name": "ValidateBusinessProcessDevelopmentArtifact", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/validateBusinessProcessDevelopmentArtifact", + "Method": "POST", + "OperationID": "Applications_ValidateBusinessProcessDevelopmentArtifact", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The validate business process development artifact action." + } + ], + "Parents": [ + "Space" + ], + "SwaggerModelName": "Application", + "ResourceType": "Microsoft.IntegrationSpaces/spaces/applications", + "ResourceKey": "applicationName", + "ResourceKeySegment": "applications", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "BusinessProcess": [ + { + "Name": "BusinessProcess", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}", + "Method": "GET", + "OperationID": "BusinessProcesses_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a BusinessProcess" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}", + "Method": "PUT", + "OperationID": "BusinessProcesses_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a BusinessProcess" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}", + "Method": "PATCH", + "OperationID": "BusinessProcesses_Patch", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a BusinessProcess" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}", + "Method": "DELETE", + "OperationID": "BusinessProcesses_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a BusinessProcess" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses", + "Method": "GET", + "OperationID": "BusinessProcesses_ListByApplication", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByApplication", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List BusinessProcess resources by Application" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Application" + ], + "SwaggerModelName": "BusinessProcess", + "ResourceType": "Microsoft.IntegrationSpaces/spaces/applications/businessProcesses", + "ResourceKey": "businessProcessName", + "ResourceKeySegment": "businessProcesses", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "BusinessProcessVersion": [ + { + "Name": "BusinessProcessVersion", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}/versions/{businessProcessVersion}", + "Method": "GET", + "OperationID": "BusinessProcessVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a BusinessProcessVersion" + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}/versions", + "Method": "GET", + "OperationID": "BusinessProcessVersions_ListByBusinessProcess", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByBusinessProcess", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List BusinessProcessVersion resources by BusinessProcess" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "BusinessProcess" + ], + "SwaggerModelName": "BusinessProcessVersion", + "ResourceType": "Microsoft.IntegrationSpaces/spaces/applications/businessProcesses/versions", + "ResourceKey": "businessProcessVersion", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ApplicationResource": [ + { + "Name": "ApplicationResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources/{resourceName}", + "Method": "GET", + "OperationID": "ApplicationResources_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a ApplicationResource" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources/{resourceName}", + "Method": "PUT", + "OperationID": "ApplicationResources_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a ApplicationResource" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources/{resourceName}", + "Method": "PATCH", + "OperationID": "ApplicationResources_Patch", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a ApplicationResource" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources/{resourceName}", + "Method": "DELETE", + "OperationID": "ApplicationResources_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a ApplicationResource" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources", + "Method": "GET", + "OperationID": "ApplicationResources_ListByApplication", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByApplication", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List ApplicationResource resources by Application" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Application" + ], + "SwaggerModelName": "ApplicationResource", + "ResourceType": "Microsoft.IntegrationSpaces/spaces/applications/resources", + "ResourceKey": "resourceName", + "ResourceKeySegment": "resources", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "InfrastructureResource": [ + { + "Name": "InfrastructureResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName}", + "Method": "GET", + "OperationID": "InfrastructureResources_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a InfrastructureResource" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName}", + "Method": "PUT", + "OperationID": "InfrastructureResources_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a InfrastructureResource" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName}", + "Method": "PATCH", + "OperationID": "InfrastructureResources_Patch", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a InfrastructureResource" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName}", + "Method": "DELETE", + "OperationID": "InfrastructureResources_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a InfrastructureResource" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources", + "Method": "GET", + "OperationID": "InfrastructureResources_ListBySpace", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySpace", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List InfrastructureResource resources by Space" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Space" + ], + "SwaggerModelName": "InfrastructureResource", + "ResourceType": "Microsoft.IntegrationSpaces/spaces/infrastructureResources", + "ResourceKey": "infrastructureResourceName", + "ResourceKeySegment": "infrastructureResources", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/resources.json b/packages/extensions/openapi-to-typespec/test/arm-compute/resources.json index 296ab0a08e..15638c8d38 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/resources.json @@ -1,3866 +1,4004 @@ { "Resources": { - "VirtualMachineScaleSet": { - "Name": "VirtualMachineScaleSet", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", - "Method": "GET", - "OperationID": "VirtualMachineScaleSets_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Display information about a virtual machine scale set." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", - "Method": "PUT", - "OperationID": "VirtualMachineScaleSets_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a VM scale set." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", - "Method": "PATCH", - "OperationID": "VirtualMachineScaleSets_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a VM scale set." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", - "Method": "DELETE", - "OperationID": "VirtualMachineScaleSets_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a VM scale set." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", - "Method": "GET", - "OperationID": "VirtualMachineScaleSets_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all VM scale sets under a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", - "Method": "GET", - "OperationID": "VirtualMachineScaleSets_ListAll", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListAll", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Deallocate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_Deallocate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates." - }, - { - "Name": "DeleteInstances", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_DeleteInstances", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes virtual machines in a VM scale set." - }, - { - "Name": "GetInstanceView", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", - "Method": "GET", - "OperationID": "VirtualMachineScaleSets_GetInstanceView", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the status of a VM scale set instance." - }, - { - "Name": "ListSkus", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", - "Method": "GET", - "OperationID": "VirtualMachineScaleSets_ListSkus", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListSkus", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU." - }, - { - "Name": "GetOSUpgradeHistory", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", - "Method": "GET", - "OperationID": "VirtualMachineScaleSets_GetOSUpgradeHistory", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "GetOSUpgradeHistory", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets list of OS upgrades on a VM scale set instance." - }, - { - "Name": "PowerOff", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_PowerOff", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges." - }, - { - "Name": "Restart", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_Restart", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Restarts one or more virtual machines in a VM scale set." - }, - { - "Name": "Start", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_Start", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Starts one or more virtual machines in a VM scale set." - }, - { - "Name": "Reapply", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_Reapply", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances" - }, - { - "Name": "Redeploy", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_Redeploy", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on." - }, - { - "Name": "PerformMaintenance", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_PerformMaintenance", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications" - }, - { - "Name": "UpdateInstances", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_UpdateInstances", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Upgrades one or more virtual machines to the latest SKU set in the VM scale set model." - }, - { - "Name": "Reimage", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_Reimage", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state." - }, - { - "Name": "ReimageAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_ReimageAll", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks." - }, - { - "Name": "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set." - }, - { - "Name": "ConvertToSinglePlacementGroup", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_ConvertToSinglePlacementGroup", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Converts SinglePlacementGroup property to false for a existing virtual machine scale set." - }, - { - "Name": "SetOrchestrationServiceState", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", - "Method": "POST", - "OperationID": "VirtualMachineScaleSets_SetOrchestrationServiceState", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Changes ServiceState property for a given service" - }, - { - "Name": "Cancel", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetRollingUpgrades_Cancel", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Cancels the current virtual machine scale set rolling upgrade." - }, - { - "Name": "StartOSUpgrade", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected." - }, - { - "Name": "StartExtensionUpgrade", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetRollingUpgrades_StartExtensionUpgrade", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "VirtualMachineScaleSet", - "ResourceType": "Microsoft.Compute/virtualMachineScaleSets", - "ResourceKey": "vmScaleSetName", - "ResourceKeySegment": "virtualMachineScaleSets", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "VirtualMachineScaleSetExtension": { - "Name": "VirtualMachineScaleSetExtension", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetExtensions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to get the extension." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", - "Method": "PUT", - "OperationID": "VirtualMachineScaleSetExtensions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create or update an extension." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", - "Method": "PATCH", - "OperationID": "VirtualMachineScaleSetExtensions_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to update an extension." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", - "Method": "DELETE", - "OperationID": "VirtualMachineScaleSetExtensions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to delete the extension." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetExtensions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all extensions in a VM scale set." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "VirtualMachineScaleSet" - ], - "SwaggerModelName": "VirtualMachineScaleSetExtension", - "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "ResourceKey": "vmssExtensionName", - "ResourceKeySegment": "extensions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "RollingUpgradeStatusInfo": { - "Name": "RollingUpgradeStatusInfo", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetRollingUpgrades_GetLatest", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the status of the latest virtual machine scale set rolling upgrade." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "VirtualMachineScaleSet" - ], - "SwaggerModelName": "RollingUpgradeStatusInfo", - "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/rollingUpgrades", - "ResourceKey": "latest", - "ResourceKeySegment": "rollingUpgrades", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "VirtualMachineScaleSetVMExtension": { - "Name": "VirtualMachineScaleSetVMExtension", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetVMExtensions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to get the VMSS VM extension." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", - "Method": "PUT", - "OperationID": "VirtualMachineScaleSetVMExtensions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create or update the VMSS VM extension." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", - "Method": "PATCH", - "OperationID": "VirtualMachineScaleSetVMExtensions_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to update the VMSS VM extension." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", - "Method": "DELETE", - "OperationID": "VirtualMachineScaleSetVMExtensions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to delete the VMSS VM extension." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetVMExtensions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "The operation to get all extensions of an instance in Virtual Machine Scaleset." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "VirtualMachineScaleSetVM" - ], - "SwaggerModelName": "VirtualMachineScaleSetVMExtension", - "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/extensions", - "ResourceKey": "vmExtensionName", - "ResourceKeySegment": "extensions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "VirtualMachineScaleSetVM": { - "Name": "VirtualMachineScaleSetVM", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetVMs_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets a virtual machine from a VM scale set." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", - "Method": "PUT", - "OperationID": "VirtualMachineScaleSetVMs_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates a virtual machine of a VM scale set." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", - "Method": "PUT", - "OperationID": "VirtualMachineScaleSetVMs_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates a virtual machine of a VM scale set." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", - "Method": "DELETE", - "OperationID": "VirtualMachineScaleSetVMs_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a virtual machine from a VM scale set." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetVMs_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all virtual machines in a VM scale sets." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Reimage", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_Reimage", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Reimages (upgrade the operating system) a specific virtual machine in a VM scale set." - }, - { - "Name": "ReimageAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_ReimageAll", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks." - }, - { - "Name": "Deallocate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_Deallocate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated." - }, - { - "Name": "GetInstanceView", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetVMs_GetInstanceView", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the status of a virtual machine from a VM scale set." - }, - { - "Name": "PowerOff", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_PowerOff", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges." - }, - { - "Name": "Restart", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_Restart", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Restarts a virtual machine in a VM scale set." - }, - { - "Name": "Start", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_Start", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Starts a virtual machine in a VM scale set." - }, - { - "Name": "Redeploy", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_Redeploy", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on." - }, - { - "Name": "RetrieveBootDiagnosticsData", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_RetrieveBootDiagnosticsData", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set." - }, - { - "Name": "PerformMaintenance", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_PerformMaintenance", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Performs maintenance on a virtual machine in a VM scale set." - }, - { - "Name": "SimulateEviction", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_SimulateEviction", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to simulate the eviction of spot virtual machine in a VM scale set." - }, - { - "Name": "RunCommand", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", - "Method": "POST", - "OperationID": "VirtualMachineScaleSetVMs_RunCommand", - "IsLongRunning": true, - "PagingMetadata": { - "Method": "RunCommand", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Run command on a virtual machine in a VM scale set." - } - ], - "Parents": [ - "VirtualMachineScaleSet" - ], - "SwaggerModelName": "VirtualMachineScaleSetVM", - "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines", - "ResourceKey": "instanceId", - "ResourceKeySegment": "virtualMachines", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "VirtualMachineExtension": { - "Name": "VirtualMachineExtension", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", - "Method": "GET", - "OperationID": "VirtualMachineExtensions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to get the extension." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", - "Method": "PUT", - "OperationID": "VirtualMachineExtensions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create or update the extension." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", - "Method": "PATCH", - "OperationID": "VirtualMachineExtensions_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to update the extension." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", - "Method": "DELETE", - "OperationID": "VirtualMachineExtensions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to delete the extension." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", - "Method": "GET", - "OperationID": "VirtualMachineExtensions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "The operation to get all extensions of a Virtual Machine." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "VirtualMachine" - ], - "SwaggerModelName": "VirtualMachineExtension", - "ResourceType": "Microsoft.Compute/virtualMachines/extensions", - "ResourceKey": "vmExtensionName", - "ResourceKeySegment": "extensions", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "VirtualMachine": { - "Name": "VirtualMachine", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", - "Method": "GET", - "OperationID": "VirtualMachines_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about the model view or the instance view of a virtual machine." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", - "Method": "PUT", - "OperationID": "VirtualMachines_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", - "Method": "PATCH", - "OperationID": "VirtualMachines_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to update a virtual machine." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", - "Method": "DELETE", - "OperationID": "VirtualMachines_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to delete a virtual machine." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", - "Method": "GET", - "OperationID": "VirtualMachines_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", - "Method": "GET", - "OperationID": "VirtualMachines_ListAll", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListAll", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Capture", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", - "Method": "POST", - "OperationID": "VirtualMachines_Capture", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs." - }, - { - "Name": "InstanceView", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", - "Method": "GET", - "OperationID": "VirtualMachines_InstanceView", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about the run-time state of a virtual machine." - }, - { - "Name": "ConvertToManagedDisks", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", - "Method": "POST", - "OperationID": "VirtualMachines_ConvertToManagedDisks", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation." - }, - { - "Name": "Deallocate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", - "Method": "POST", - "OperationID": "VirtualMachines_Deallocate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses." - }, - { - "Name": "Generalize", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", - "Method": "POST", - "OperationID": "VirtualMachines_Generalize", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image)." - }, - { - "Name": "ListAvailableSizes", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", - "Method": "GET", - "OperationID": "VirtualMachines_ListAvailableSizes", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListAvailableSizes", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all available virtual machine sizes to which the specified virtual machine can be resized." - }, - { - "Name": "PowerOff", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", - "Method": "POST", - "OperationID": "VirtualMachines_PowerOff", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine." - }, - { - "Name": "Reapply", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", - "Method": "POST", - "OperationID": "VirtualMachines_Reapply", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to reapply a virtual machine's state." - }, - { - "Name": "Restart", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", - "Method": "POST", - "OperationID": "VirtualMachines_Restart", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to restart a virtual machine." - }, - { - "Name": "Start", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", - "Method": "POST", - "OperationID": "VirtualMachines_Start", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to start a virtual machine." - }, - { - "Name": "Redeploy", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", - "Method": "POST", - "OperationID": "VirtualMachines_Redeploy", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Shuts down the virtual machine, moves it to a new node, and powers it back on." - }, - { - "Name": "Reimage", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", - "Method": "POST", - "OperationID": "VirtualMachines_Reimage", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage." - }, - { - "Name": "RetrieveBootDiagnosticsData", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", - "Method": "POST", - "OperationID": "VirtualMachines_RetrieveBootDiagnosticsData", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs." - }, - { - "Name": "PerformMaintenance", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", - "Method": "POST", - "OperationID": "VirtualMachines_PerformMaintenance", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to perform maintenance on a virtual machine." - }, - { - "Name": "SimulateEviction", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", - "Method": "POST", - "OperationID": "VirtualMachines_SimulateEviction", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to simulate the eviction of spot virtual machine." - }, - { - "Name": "AssessPatches", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", - "Method": "POST", - "OperationID": "VirtualMachines_AssessPatches", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Assess patches on the VM." - }, - { - "Name": "InstallPatches", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", - "Method": "POST", - "OperationID": "VirtualMachines_InstallPatches", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Installs patches on the VM." - }, - { - "Name": "RunCommand", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", - "Method": "POST", - "OperationID": "VirtualMachines_RunCommand", - "IsLongRunning": true, - "PagingMetadata": { - "Method": "RunCommand", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Run command on the VM." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "VirtualMachine", - "ResourceType": "Microsoft.Compute/virtualMachines", - "ResourceKey": "vmName", - "ResourceKeySegment": "virtualMachines", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "VirtualMachineExtensionImage": { - "Name": "VirtualMachineExtensionImage", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}", - "Method": "GET", - "OperationID": "VirtualMachineExtensionImages_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets a virtual machine extension image." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", - "Method": "GET", - "OperationID": "VirtualMachineExtensionImages_ListTypes", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListTypes", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of virtual machine extension image types." - }, - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions", - "Method": "GET", - "OperationID": "VirtualMachineExtensionImages_ListVersions", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListVersions", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of virtual machine extension image versions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "SubscriptionResource" - ], - "SwaggerModelName": "VirtualMachineExtensionImage", - "ResourceType": "Microsoft.Compute/locations/publishers/artifacttypes/types/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "AvailabilitySet": { - "Name": "AvailabilitySet", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", - "Method": "GET", - "OperationID": "AvailabilitySets_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about an availability set." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", - "Method": "PUT", - "OperationID": "AvailabilitySets_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update an availability set." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", - "Method": "PATCH", - "OperationID": "AvailabilitySets_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update an availability set." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", - "Method": "DELETE", - "OperationID": "AvailabilitySets_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete an availability set." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", - "Method": "GET", - "OperationID": "AvailabilitySets_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all availability sets in a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", - "Method": "GET", - "OperationID": "AvailabilitySets_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all availability sets in a subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListAvailableSizes", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", - "Method": "GET", - "OperationID": "AvailabilitySets_ListAvailableSizes", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListAvailableSizes", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "AvailabilitySet", - "ResourceType": "Microsoft.Compute/availabilitySets", - "ResourceKey": "availabilitySetName", - "ResourceKeySegment": "availabilitySets", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ProximityPlacementGroup": { - "Name": "ProximityPlacementGroup", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", - "Method": "GET", - "OperationID": "ProximityPlacementGroups_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about a proximity placement group ." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", - "Method": "PUT", - "OperationID": "ProximityPlacementGroups_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a proximity placement group." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", - "Method": "PATCH", - "OperationID": "ProximityPlacementGroups_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a proximity placement group." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", - "Method": "DELETE", - "OperationID": "ProximityPlacementGroups_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a proximity placement group." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", - "Method": "GET", - "OperationID": "ProximityPlacementGroups_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all proximity placement groups in a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", - "Method": "GET", - "OperationID": "ProximityPlacementGroups_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all proximity placement groups in a subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "ProximityPlacementGroup", - "ResourceType": "Microsoft.Compute/proximityPlacementGroups", - "ResourceKey": "proximityPlacementGroupName", - "ResourceKeySegment": "proximityPlacementGroups", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DedicatedHostGroup": { - "Name": "DedicatedHostGroup", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", - "Method": "GET", - "OperationID": "DedicatedHostGroups_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about a dedicated host group." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", - "Method": "PUT", - "OperationID": "DedicatedHostGroups_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596)" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", - "Method": "PATCH", - "OperationID": "DedicatedHostGroups_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update an dedicated host group." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", - "Method": "DELETE", - "OperationID": "DedicatedHostGroups_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a dedicated host group." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", - "Method": "GET", - "OperationID": "DedicatedHostGroups_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", - "Method": "GET", - "OperationID": "DedicatedHostGroups_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "DedicatedHostGroup", - "ResourceType": "Microsoft.Compute/hostGroups", - "ResourceKey": "hostGroupName", - "ResourceKeySegment": "hostGroups", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DedicatedHost": { - "Name": "DedicatedHost", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", - "Method": "GET", - "OperationID": "DedicatedHosts_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about a dedicated host." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", - "Method": "PUT", - "OperationID": "DedicatedHosts_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a dedicated host ." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", - "Method": "PATCH", - "OperationID": "DedicatedHosts_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a dedicated host ." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", - "Method": "DELETE", - "OperationID": "DedicatedHosts_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a dedicated host." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", - "Method": "GET", - "OperationID": "DedicatedHosts_ListByHostGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByHostGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Restart", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart", - "Method": "POST", - "OperationID": "DedicatedHosts_Restart", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details." - }, - { - "Name": "ListAvailableSizes", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", - "Method": "GET", - "OperationID": "DedicatedHosts_ListAvailableSizes", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListAvailableSizes", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host." - } - ], - "Parents": [ - "DedicatedHostGroup" - ], - "SwaggerModelName": "DedicatedHost", - "ResourceType": "Microsoft.Compute/hostGroups/hosts", - "ResourceKey": "hostName", - "ResourceKeySegment": "hosts", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "SshPublicKeyResource": { - "Name": "SshPublicKeyResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", - "Method": "GET", - "OperationID": "SshPublicKeys_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about an SSH public key." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", - "Method": "PUT", - "OperationID": "SshPublicKeys_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new SSH public key resource." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", - "Method": "PATCH", - "OperationID": "SshPublicKeys_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates a new SSH public key resource." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", - "Method": "DELETE", - "OperationID": "SshPublicKeys_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete an SSH public key." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", - "Method": "GET", - "OperationID": "SshPublicKeys_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", - "Method": "GET", - "OperationID": "SshPublicKeys_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GenerateKeyPair", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", - "Method": "POST", - "OperationID": "SshPublicKeys_GenerateKeyPair", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "SshPublicKeyResource", - "ResourceType": "Microsoft.Compute/sshPublicKeys", - "ResourceKey": "sshPublicKeyName", - "ResourceKeySegment": "sshPublicKeys", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Image": { - "Name": "Image", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", - "Method": "GET", - "OperationID": "Images_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets an image." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", - "Method": "PUT", - "OperationID": "Images_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update an image." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", - "Method": "PATCH", - "OperationID": "Images_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update an image." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", - "Method": "DELETE", - "OperationID": "Images_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes an Image." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images", - "Method": "GET", - "OperationID": "Images_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images", - "Method": "GET", - "OperationID": "Images_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "Image", - "ResourceType": "Microsoft.Compute/images", - "ResourceKey": "imageName", - "ResourceKeySegment": "images", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "RestorePointCollection": { - "Name": "RestorePointCollection", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", - "Method": "GET", - "OperationID": "RestorePointCollections_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to get the restore point collection." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", - "Method": "PUT", - "OperationID": "RestorePointCollections_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", - "Method": "PATCH", - "OperationID": "RestorePointCollections_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to update the restore point collection." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", - "Method": "DELETE", - "OperationID": "RestorePointCollections_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to delete the restore point collection. This operation will also delete all the contained restore points." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", - "Method": "GET", - "OperationID": "RestorePointCollections_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets the list of restore point collections in a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", - "Method": "GET", - "OperationID": "RestorePointCollections_ListAll", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListAll", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "RestorePointCollection", - "ResourceType": "Microsoft.Compute/restorePointCollections", - "ResourceKey": "restorePointCollectionName", - "ResourceKeySegment": "restorePointCollections", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "RestorePoint": { - "Name": "RestorePoint", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", - "Method": "GET", - "OperationID": "RestorePoints_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to get the restore point." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", - "Method": "PUT", - "OperationID": "RestorePoints_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create the restore point. Updating properties of an existing restore point is not allowed" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", - "Method": "PUT", - "OperationID": "RestorePoints_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create the restore point. Updating properties of an existing restore point is not allowed" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", - "Method": "DELETE", - "OperationID": "RestorePoints_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to delete the restore point." - } - ], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "RestorePointCollection" - ], - "SwaggerModelName": "RestorePoint", - "ResourceType": "Microsoft.Compute/restorePointCollections/restorePoints", - "ResourceKey": "restorePointName", - "ResourceKeySegment": "restorePoints", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CapacityReservationGroup": { - "Name": "CapacityReservationGroup", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", - "Method": "GET", - "OperationID": "CapacityReservationGroups_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation that retrieves information about a capacity reservation group." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", - "Method": "PUT", - "OperationID": "CapacityReservationGroups_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", - "Method": "PATCH", - "OperationID": "CapacityReservationGroups_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", - "Method": "DELETE", - "OperationID": "CapacityReservationGroups_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", - "Method": "GET", - "OperationID": "CapacityReservationGroups_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", - "Method": "GET", - "OperationID": "CapacityReservationGroups_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "CapacityReservationGroup", - "ResourceType": "Microsoft.Compute/capacityReservationGroups", - "ResourceKey": "capacityReservationGroupName", - "ResourceKeySegment": "capacityReservationGroups", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CapacityReservation": { - "Name": "CapacityReservation", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", - "Method": "GET", - "OperationID": "CapacityReservations_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation that retrieves information about the capacity reservation." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", - "Method": "PUT", - "OperationID": "CapacityReservations_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", - "Method": "PATCH", - "OperationID": "CapacityReservations_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to update a capacity reservation." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", - "Method": "DELETE", - "OperationID": "CapacityReservations_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", - "Method": "GET", - "OperationID": "CapacityReservations_ListByCapacityReservationGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByCapacityReservationGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "CapacityReservationGroup" - ], - "SwaggerModelName": "CapacityReservation", - "ResourceType": "Microsoft.Compute/capacityReservationGroups/capacityReservations", - "ResourceKey": "capacityReservationName", - "ResourceKeySegment": "capacityReservations", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "VirtualMachineRunCommandFixMe": { - "Name": "VirtualMachineRunCommandFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "VirtualMachineRunCommand": { - "Name": "VirtualMachineRunCommand", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", - "Method": "GET", - "OperationID": "VirtualMachineRunCommands_GetByVirtualMachine", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to get the run command." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", - "Method": "PUT", - "OperationID": "VirtualMachineRunCommands_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create or update the run command." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", - "Method": "PATCH", - "OperationID": "VirtualMachineRunCommands_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to update the run command." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", - "Method": "DELETE", - "OperationID": "VirtualMachineRunCommands_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to delete the run command." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", - "Method": "GET", - "OperationID": "VirtualMachineRunCommands_ListByVirtualMachine", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByVirtualMachine", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "The operation to get all run commands of a Virtual Machine." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "VirtualMachine" - ], - "SwaggerModelName": "VirtualMachineRunCommand", - "ResourceType": "Microsoft.Compute/virtualMachines/runCommands", - "ResourceKey": "runCommandName", - "ResourceKeySegment": "runCommands", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Disk": { - "Name": "Disk", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", - "Method": "GET", - "OperationID": "Disks_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets information about a disk." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", - "Method": "PUT", - "OperationID": "Disks_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates a disk." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", - "Method": "PATCH", - "OperationID": "Disks_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates (patches) a disk." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", - "Method": "DELETE", - "OperationID": "Disks_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a disk." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", - "Method": "GET", - "OperationID": "Disks_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all the disks under a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks", - "Method": "GET", - "OperationID": "Disks_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all the disks under a subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GrantAccess", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", - "Method": "POST", - "OperationID": "Disks_GrantAccess", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Grants access to a disk." - }, - { - "Name": "RevokeAccess", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", - "Method": "POST", - "OperationID": "Disks_RevokeAccess", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Revokes access to a disk." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "Disk", - "ResourceType": "Microsoft.Compute/disks", - "ResourceKey": "diskName", - "ResourceKeySegment": "disks", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DiskAccess": { - "Name": "DiskAccess", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", - "Method": "GET", - "OperationID": "DiskAccesses_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets information about a disk access resource." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", - "Method": "PUT", - "OperationID": "DiskAccesses_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates a disk access resource" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", - "Method": "PATCH", - "OperationID": "DiskAccesses_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates (patches) a disk access resource." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", - "Method": "DELETE", - "OperationID": "DiskAccesses_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a disk access resource." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", - "Method": "GET", - "OperationID": "DiskAccesses_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all the disk access resources under a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", - "Method": "GET", - "OperationID": "DiskAccesses_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all the disk access resources under a subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetPrivateLinkResources", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", - "Method": "GET", - "OperationID": "DiskAccesses_GetPrivateLinkResources", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "GetPrivateLinkResources", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets the private link resources possible under disk access resource" - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "DiskAccess", - "ResourceType": "Microsoft.Compute/diskAccesses", - "ResourceKey": "diskAccessName", - "ResourceKeySegment": "diskAccesses", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "PrivateEndpointConnection": { - "Name": "PrivateEndpointConnection", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "GET", - "OperationID": "DiskAccesses_GetAPrivateEndpointConnection", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets information about a private endpoint connection under a disk access resource." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "PUT", - "OperationID": "DiskAccesses_UpdateAPrivateEndpointConnection", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "PUT", - "OperationID": "DiskAccesses_UpdateAPrivateEndpointConnection", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "DELETE", - "OperationID": "DiskAccesses_DeleteAPrivateEndpointConnection", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a private endpoint connection under a disk access resource." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", - "Method": "GET", - "OperationID": "DiskAccesses_ListPrivateEndpointConnections", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListPrivateEndpointConnections", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List information about private endpoint connections under a disk access resource" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "DiskAccess" - ], - "SwaggerModelName": "PrivateEndpointConnection", - "ResourceType": "Microsoft.Compute/diskAccesses/privateEndpointConnections", - "ResourceKey": "privateEndpointConnectionName", - "ResourceKeySegment": "privateEndpointConnections", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DiskEncryptionSet": { - "Name": "DiskEncryptionSet", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - "Method": "GET", - "OperationID": "DiskEncryptionSets_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets information about a disk encryption set." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - "Method": "PUT", - "OperationID": "DiskEncryptionSets_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates a disk encryption set" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - "Method": "PATCH", - "OperationID": "DiskEncryptionSets_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates (patches) a disk encryption set." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - "Method": "DELETE", - "OperationID": "DiskEncryptionSets_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a disk encryption set." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", - "Method": "GET", - "OperationID": "DiskEncryptionSets_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all the disk encryption sets under a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", - "Method": "GET", - "OperationID": "DiskEncryptionSets_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all the disk encryption sets under a subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListAssociatedResources", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", - "Method": "GET", - "OperationID": "DiskEncryptionSets_ListAssociatedResources", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListAssociatedResources", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all resources that are encrypted with this disk encryption set." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "DiskEncryptionSet", - "ResourceType": "Microsoft.Compute/diskEncryptionSets", - "ResourceKey": "diskEncryptionSetName", - "ResourceKeySegment": "diskEncryptionSets", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DiskRestorePoint": { - "Name": "DiskRestorePoint", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", - "Method": "GET", - "OperationID": "DiskRestorePoint_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get disk restorePoint resource" - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints", - "Method": "GET", - "OperationID": "DiskRestorePoint_ListByRestorePoint", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByRestorePoint", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists diskRestorePoints under a vmRestorePoint." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GrantAccess", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", - "Method": "POST", - "OperationID": "DiskRestorePoint_GrantAccess", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Grants access to a diskRestorePoint." - }, - { - "Name": "RevokeAccess", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", - "Method": "POST", - "OperationID": "DiskRestorePoint_RevokeAccess", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Revokes access to a diskRestorePoint." - } - ], - "Parents": [ - "RestorePointCollection" - ], - "SwaggerModelName": "DiskRestorePoint", - "ResourceType": "Microsoft.Compute/restorePointCollections/restorePoints/diskRestorePoints", - "ResourceKey": "diskRestorePointName", - "ResourceKeySegment": "diskRestorePoints", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Snapshot": { - "Name": "Snapshot", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - "Method": "GET", - "OperationID": "Snapshots_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets information about a snapshot." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - "Method": "PUT", - "OperationID": "Snapshots_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates a snapshot." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - "Method": "PATCH", - "OperationID": "Snapshots_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates (patches) a snapshot." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - "Method": "DELETE", - "OperationID": "Snapshots_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a snapshot." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", - "Method": "GET", - "OperationID": "Snapshots_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists snapshots under a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots", - "Method": "GET", - "OperationID": "Snapshots_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists snapshots under a subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GrantAccess", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", - "Method": "POST", - "OperationID": "Snapshots_GrantAccess", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Grants access to a snapshot." - }, - { - "Name": "RevokeAccess", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", - "Method": "POST", - "OperationID": "Snapshots_RevokeAccess", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Revokes access to a snapshot." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "Snapshot", - "ResourceType": "Microsoft.Compute/snapshots", - "ResourceKey": "snapshotName", - "ResourceKeySegment": "snapshots", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Gallery": { - "Name": "Gallery", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", - "Method": "GET", - "OperationID": "Galleries_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about a Shared Image Gallery." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", - "Method": "PUT", - "OperationID": "Galleries_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a Shared Image Gallery." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", - "Method": "PATCH", - "OperationID": "Galleries_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a Shared Image Gallery." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", - "Method": "DELETE", - "OperationID": "Galleries_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Shared Image Gallery." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", - "Method": "GET", - "OperationID": "Galleries_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List galleries under a resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries", - "Method": "GET", - "OperationID": "Galleries_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List galleries under a subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", - "Method": "POST", - "OperationID": "GallerySharingProfile_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update sharing profile of a gallery." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "Gallery", - "ResourceType": "Microsoft.Compute/galleries", - "ResourceKey": "galleryName", - "ResourceKeySegment": "galleries", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "GalleryImage": { - "Name": "GalleryImage", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", - "Method": "GET", - "OperationID": "GalleryImages_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about a gallery image definition." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", - "Method": "PUT", - "OperationID": "GalleryImages_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a gallery image definition." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", - "Method": "PATCH", - "OperationID": "GalleryImages_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a gallery image definition." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", - "Method": "DELETE", - "OperationID": "GalleryImages_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a gallery image." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", - "Method": "GET", - "OperationID": "GalleryImages_ListByGallery", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByGallery", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List gallery image definitions in a gallery." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Gallery" - ], - "SwaggerModelName": "GalleryImage", - "ResourceType": "Microsoft.Compute/galleries/images", - "ResourceKey": "galleryImageName", - "ResourceKeySegment": "images", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "GalleryImageVersion": { - "Name": "GalleryImageVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", - "Method": "GET", - "OperationID": "GalleryImageVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about a gallery image version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", - "Method": "PUT", - "OperationID": "GalleryImageVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a gallery image version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", - "Method": "PATCH", - "OperationID": "GalleryImageVersions_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a gallery image version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", - "Method": "DELETE", - "OperationID": "GalleryImageVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a gallery image version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions", - "Method": "GET", - "OperationID": "GalleryImageVersions_ListByGalleryImage", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByGalleryImage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List gallery image versions in a gallery image definition." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "GalleryImage" - ], - "SwaggerModelName": "GalleryImageVersion", - "ResourceType": "Microsoft.Compute/galleries/images/versions", - "ResourceKey": "galleryImageVersionName", - "ResourceKeySegment": "versions", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "GalleryApplication": { - "Name": "GalleryApplication", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", - "Method": "GET", - "OperationID": "GalleryApplications_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about a gallery Application Definition." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", - "Method": "PUT", - "OperationID": "GalleryApplications_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a gallery Application Definition." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", - "Method": "PATCH", - "OperationID": "GalleryApplications_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a gallery Application Definition." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", - "Method": "DELETE", - "OperationID": "GalleryApplications_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a gallery Application." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", - "Method": "GET", - "OperationID": "GalleryApplications_ListByGallery", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByGallery", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List gallery Application Definitions in a gallery." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Gallery" - ], - "SwaggerModelName": "GalleryApplication", - "ResourceType": "Microsoft.Compute/galleries/applications", - "ResourceKey": "galleryApplicationName", - "ResourceKeySegment": "applications", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "GalleryApplicationVersion": { - "Name": "GalleryApplicationVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", - "Method": "GET", - "OperationID": "GalleryApplicationVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about a gallery Application Version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", - "Method": "PUT", - "OperationID": "GalleryApplicationVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a gallery Application Version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", - "Method": "PATCH", - "OperationID": "GalleryApplicationVersions_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a gallery Application Version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", - "Method": "DELETE", - "OperationID": "GalleryApplicationVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a gallery Application Version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions", - "Method": "GET", - "OperationID": "GalleryApplicationVersions_ListByGalleryApplication", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByGalleryApplication", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List gallery Application Versions in a gallery Application Definition." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "GalleryApplication" - ], - "SwaggerModelName": "GalleryApplicationVersion", - "ResourceType": "Microsoft.Compute/galleries/applications/versions", - "ResourceKey": "galleryApplicationVersionName", - "ResourceKeySegment": "versions", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "SharedGallery": { - "Name": "SharedGallery", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", - "Method": "GET", - "OperationID": "SharedGalleries_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a shared gallery by subscription id or tenant id." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", - "Method": "GET", - "OperationID": "SharedGalleries_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List shared galleries by subscription id or tenant id." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "SubscriptionResource" - ], - "SwaggerModelName": "SharedGallery", - "ResourceType": "Microsoft.Compute/locations/sharedGalleries", - "ResourceKey": "galleryUniqueName", - "ResourceKeySegment": "sharedGalleries", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "SharedGalleryImage": { - "Name": "SharedGalleryImage", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", - "Method": "GET", - "OperationID": "SharedGalleryImages_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a shared gallery image by subscription id or tenant id." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", - "Method": "GET", - "OperationID": "SharedGalleryImages_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List shared gallery images by subscription id or tenant id." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "SharedGallery" - ], - "SwaggerModelName": "SharedGalleryImage", - "ResourceType": "Microsoft.Compute/locations/sharedGalleries/images", - "ResourceKey": "galleryImageName", - "ResourceKeySegment": "images", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "SharedGalleryImageVersion": { - "Name": "SharedGalleryImageVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", - "Method": "GET", - "OperationID": "SharedGalleryImageVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a shared gallery image version by subscription id or tenant id." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", - "Method": "GET", - "OperationID": "SharedGalleryImageVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List shared gallery image versions by subscription id or tenant id." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "SharedGalleryImage" - ], - "SwaggerModelName": "SharedGalleryImageVersion", - "ResourceType": "Microsoft.Compute/locations/sharedGalleries/images/versions", - "ResourceKey": "galleryImageVersionName", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CommunityGallery": { - "Name": "CommunityGallery", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", - "Method": "GET", - "OperationID": "CommunityGalleries_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a community gallery by gallery public name." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "SubscriptionResource" - ], - "SwaggerModelName": "CommunityGallery", - "ResourceType": "Microsoft.Compute/locations/communityGalleries", - "ResourceKey": "publicGalleryName", - "ResourceKeySegment": "communityGalleries", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CommunityGalleryImage": { - "Name": "CommunityGalleryImage", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}", - "Method": "GET", - "OperationID": "CommunityGalleryImages_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a community gallery image." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", - "Method": "GET", - "OperationID": "CommunityGalleryImages_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List community gallery images inside a gallery." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "CommunityGallery" - ], - "SwaggerModelName": "CommunityGalleryImage", - "ResourceType": "Microsoft.Compute/locations/communityGalleries/images", - "ResourceKey": "galleryImageName", - "ResourceKeySegment": "images", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CommunityGalleryImageVersion": { - "Name": "CommunityGalleryImageVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", - "Method": "GET", - "OperationID": "CommunityGalleryImageVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a community gallery image version." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions", - "Method": "GET", - "OperationID": "CommunityGalleryImageVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List community gallery image versions inside an image." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "CommunityGalleryImage" - ], - "SwaggerModelName": "CommunityGalleryImageVersion", - "ResourceType": "Microsoft.Compute/locations/communityGalleries/images/versions", - "ResourceKey": "galleryImageVersionName", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "RoleInstance": { - "Name": "RoleInstance", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", - "Method": "GET", - "OperationID": "CloudServiceRoleInstances_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets a role instance from a cloud service." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", - "Method": "DELETE", - "OperationID": "CloudServiceRoleInstances_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a role instance from a cloud service." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", - "Method": "GET", - "OperationID": "CloudServiceRoleInstances_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetInstanceView", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView", - "Method": "GET", - "OperationID": "CloudServiceRoleInstances_GetInstanceView", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves information about the run-time state of a role instance in a cloud service." - }, - { - "Name": "Restart", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart", - "Method": "POST", - "OperationID": "CloudServiceRoleInstances_Restart", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service." - }, - { - "Name": "Reimage", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage", - "Method": "POST", - "OperationID": "CloudServiceRoleInstances_Reimage", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles." - }, - { - "Name": "Rebuild", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", - "Method": "POST", - "OperationID": "CloudServiceRoleInstances_Rebuild", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance." - }, - { - "Name": "GetRemoteDesktopFile", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile", - "Method": "GET", - "OperationID": "CloudServiceRoleInstances_GetRemoteDesktopFile", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets a remote desktop file for a role instance in a cloud service." - } - ], - "Parents": [ - "CloudService" - ], - "SwaggerModelName": "RoleInstance", - "ResourceType": "Microsoft.Compute/cloudServices/roleInstances", - "ResourceKey": "roleInstanceName", - "ResourceKeySegment": "roleInstances", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CloudServiceRole": { - "Name": "CloudServiceRole", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", - "Method": "GET", - "OperationID": "CloudServiceRoles_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets a role from a cloud service." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", - "Method": "GET", - "OperationID": "CloudServiceRoles_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "CloudService" - ], - "SwaggerModelName": "CloudServiceRole", - "ResourceType": "Microsoft.Compute/cloudServices/roles", - "ResourceKey": "roleName", - "ResourceKeySegment": "roles", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CloudService": { - "Name": "CloudService", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", - "Method": "GET", - "OperationID": "CloudServices_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Display information about a cloud service." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", - "Method": "PUT", - "OperationID": "CloudServices_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update a cloud service. Please note some properties can be set only during cloud service creation." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", - "Method": "PATCH", - "OperationID": "CloudServices_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a cloud service." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", - "Method": "DELETE", - "OperationID": "CloudServices_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a cloud service." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", - "Method": "GET", - "OperationID": "CloudServices_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", - "Method": "GET", - "OperationID": "CloudServices_ListAll", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListAll", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetInstanceView", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", - "Method": "GET", - "OperationID": "CloudServices_GetInstanceView", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the status of a cloud service." - }, - { - "Name": "Start", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", - "Method": "POST", - "OperationID": "CloudServices_Start", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Starts the cloud service." - }, - { - "Name": "PowerOff", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", - "Method": "POST", - "OperationID": "CloudServices_PowerOff", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Power off the cloud service. Note that resources are still attached and you are getting charged for the resources." - }, - { - "Name": "Restart", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", - "Method": "POST", - "OperationID": "CloudServices_Restart", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Restarts one or more role instances in a cloud service." - }, - { - "Name": "Reimage", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", - "Method": "POST", - "OperationID": "CloudServices_Reimage", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles." - }, - { - "Name": "Rebuild", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", - "Method": "POST", - "OperationID": "CloudServices_Rebuild", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances." - }, - { - "Name": "DeleteInstances", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", - "Method": "POST", - "OperationID": "CloudServices_DeleteInstances", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes role instances in a cloud service." - }, - { - "Name": "WalkUpdateDomain", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", - "Method": "PUT", - "OperationID": "CloudServicesUpdateDomain_WalkUpdateDomain", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates the role instances in the specified update domain." - }, - { - "Name": "GetUpdateDomain", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", - "Method": "GET", - "OperationID": "CloudServicesUpdateDomain_GetUpdateDomain", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update domains." - }, - { - "Name": "ListUpdateDomains", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", - "Method": "GET", - "OperationID": "CloudServicesUpdateDomain_ListUpdateDomains", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListUpdateDomains", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all update domains in a cloud service." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "CloudService", - "ResourceType": "Microsoft.Compute/cloudServices", - "ResourceKey": "cloudServiceName", - "ResourceKeySegment": "cloudServices", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "OSVersion": { - "Name": "OSVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", - "Method": "GET", - "OperationID": "CloudServiceOperatingSystems_GetOSVersion", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", - "Method": "GET", - "OperationID": "CloudServiceOperatingSystems_ListOSVersions", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListOSVersions", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink is null to fetch all the OS versions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "SubscriptionResource" - ], - "SwaggerModelName": "OSVersion", - "ResourceType": "Microsoft.Compute/locations/cloudServiceOsVersions", - "ResourceKey": "osVersionName", - "ResourceKeySegment": "cloudServiceOsVersions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "OSFamily": { - "Name": "OSFamily", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", - "Method": "GET", - "OperationID": "CloudServiceOperatingSystems_GetOSFamily", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", - "Method": "GET", - "OperationID": "CloudServiceOperatingSystems_ListOSFamilies", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListOSFamilies", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "SubscriptionResource" - ], - "SwaggerModelName": "OSFamily", - "ResourceType": "Microsoft.Compute/locations/cloudServiceOsFamilies", - "ResourceKey": "osFamilyName", - "ResourceKeySegment": "cloudServiceOsFamilies", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + "VirtualMachineScaleSet": [ + { + "Name": "VirtualMachineScaleSet", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + "Method": "GET", + "OperationID": "VirtualMachineScaleSets_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Display information about a virtual machine scale set." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + "Method": "PUT", + "OperationID": "VirtualMachineScaleSets_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a VM scale set." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + "Method": "PATCH", + "OperationID": "VirtualMachineScaleSets_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a VM scale set." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + "Method": "DELETE", + "OperationID": "VirtualMachineScaleSets_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a VM scale set." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", + "Method": "GET", + "OperationID": "VirtualMachineScaleSets_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all VM scale sets under a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", + "Method": "GET", + "OperationID": "VirtualMachineScaleSets_ListAll", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListAll", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Deallocate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_Deallocate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates." + }, + { + "Name": "DeleteInstances", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_DeleteInstances", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes virtual machines in a VM scale set." + }, + { + "Name": "GetInstanceView", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", + "Method": "GET", + "OperationID": "VirtualMachineScaleSets_GetInstanceView", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the status of a VM scale set instance." + }, + { + "Name": "ListSkus", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", + "Method": "GET", + "OperationID": "VirtualMachineScaleSets_ListSkus", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListSkus", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU." + }, + { + "Name": "GetOSUpgradeHistory", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", + "Method": "GET", + "OperationID": "VirtualMachineScaleSets_GetOSUpgradeHistory", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "GetOSUpgradeHistory", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets list of OS upgrades on a VM scale set instance." + }, + { + "Name": "PowerOff", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_PowerOff", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges." + }, + { + "Name": "Restart", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_Restart", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Restarts one or more virtual machines in a VM scale set." + }, + { + "Name": "Start", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_Start", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Starts one or more virtual machines in a VM scale set." + }, + { + "Name": "Reapply", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_Reapply", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances" + }, + { + "Name": "Redeploy", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_Redeploy", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on." + }, + { + "Name": "PerformMaintenance", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_PerformMaintenance", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications" + }, + { + "Name": "UpdateInstances", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_UpdateInstances", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Upgrades one or more virtual machines to the latest SKU set in the VM scale set model." + }, + { + "Name": "Reimage", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_Reimage", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state." + }, + { + "Name": "ReimageAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_ReimageAll", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks." + }, + { + "Name": "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set." + }, + { + "Name": "ConvertToSinglePlacementGroup", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_ConvertToSinglePlacementGroup", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Converts SinglePlacementGroup property to false for a existing virtual machine scale set." + }, + { + "Name": "SetOrchestrationServiceState", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", + "Method": "POST", + "OperationID": "VirtualMachineScaleSets_SetOrchestrationServiceState", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Changes ServiceState property for a given service" + }, + { + "Name": "Cancel", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetRollingUpgrades_Cancel", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Cancels the current virtual machine scale set rolling upgrade." + }, + { + "Name": "StartOSUpgrade", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected." + }, + { + "Name": "StartExtensionUpgrade", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetRollingUpgrades_StartExtensionUpgrade", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "VirtualMachineScaleSet", + "ResourceType": "Microsoft.Compute/virtualMachineScaleSets", + "ResourceKey": "vmScaleSetName", + "ResourceKeySegment": "virtualMachineScaleSets", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "VirtualMachineScaleSetExtension": [ + { + "Name": "VirtualMachineScaleSetExtension", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + "Method": "GET", + "OperationID": "VirtualMachineScaleSetExtensions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to get the extension." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + "Method": "PUT", + "OperationID": "VirtualMachineScaleSetExtensions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create or update an extension." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + "Method": "PATCH", + "OperationID": "VirtualMachineScaleSetExtensions_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to update an extension." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + "Method": "DELETE", + "OperationID": "VirtualMachineScaleSetExtensions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to delete the extension." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", + "Method": "GET", + "OperationID": "VirtualMachineScaleSetExtensions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all extensions in a VM scale set." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "VirtualMachineScaleSet" + ], + "SwaggerModelName": "VirtualMachineScaleSetExtension", + "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/extensions", + "ResourceKey": "vmssExtensionName", + "ResourceKeySegment": "extensions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "RollingUpgradeStatusInfo": [ + { + "Name": "RollingUpgradeStatusInfo", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", + "Method": "GET", + "OperationID": "VirtualMachineScaleSetRollingUpgrades_GetLatest", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the status of the latest virtual machine scale set rolling upgrade." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "VirtualMachineScaleSet" + ], + "SwaggerModelName": "RollingUpgradeStatusInfo", + "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/rollingUpgrades", + "ResourceKey": "latest", + "ResourceKeySegment": "rollingUpgrades", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "VirtualMachineScaleSetVMExtension": [ + { + "Name": "VirtualMachineScaleSetVMExtension", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + "Method": "GET", + "OperationID": "VirtualMachineScaleSetVMExtensions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to get the VMSS VM extension." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + "Method": "PUT", + "OperationID": "VirtualMachineScaleSetVMExtensions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create or update the VMSS VM extension." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + "Method": "PATCH", + "OperationID": "VirtualMachineScaleSetVMExtensions_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to update the VMSS VM extension." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + "Method": "DELETE", + "OperationID": "VirtualMachineScaleSetVMExtensions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to delete the VMSS VM extension." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions", + "Method": "GET", + "OperationID": "VirtualMachineScaleSetVMExtensions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "The operation to get all extensions of an instance in Virtual Machine Scaleset." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "VirtualMachineScaleSetVM" + ], + "SwaggerModelName": "VirtualMachineScaleSetVMExtension", + "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/extensions", + "ResourceKey": "vmExtensionName", + "ResourceKeySegment": "extensions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "VirtualMachineScaleSetVM": [ + { + "Name": "VirtualMachineScaleSetVM", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + "Method": "GET", + "OperationID": "VirtualMachineScaleSetVMs_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets a virtual machine from a VM scale set." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + "Method": "PUT", + "OperationID": "VirtualMachineScaleSetVMs_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates a virtual machine of a VM scale set." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + "Method": "PUT", + "OperationID": "VirtualMachineScaleSetVMs_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates a virtual machine of a VM scale set." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + "Method": "DELETE", + "OperationID": "VirtualMachineScaleSetVMs_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a virtual machine from a VM scale set." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", + "Method": "GET", + "OperationID": "VirtualMachineScaleSetVMs_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all virtual machines in a VM scale sets." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Reimage", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_Reimage", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Reimages (upgrade the operating system) a specific virtual machine in a VM scale set." + }, + { + "Name": "ReimageAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_ReimageAll", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks." + }, + { + "Name": "Deallocate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_Deallocate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated." + }, + { + "Name": "GetInstanceView", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView", + "Method": "GET", + "OperationID": "VirtualMachineScaleSetVMs_GetInstanceView", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the status of a virtual machine from a VM scale set." + }, + { + "Name": "PowerOff", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_PowerOff", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges." + }, + { + "Name": "Restart", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_Restart", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Restarts a virtual machine in a VM scale set." + }, + { + "Name": "Start", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_Start", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Starts a virtual machine in a VM scale set." + }, + { + "Name": "Redeploy", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_Redeploy", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on." + }, + { + "Name": "RetrieveBootDiagnosticsData", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_RetrieveBootDiagnosticsData", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set." + }, + { + "Name": "PerformMaintenance", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_PerformMaintenance", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Performs maintenance on a virtual machine in a VM scale set." + }, + { + "Name": "SimulateEviction", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_SimulateEviction", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to simulate the eviction of spot virtual machine in a VM scale set." + }, + { + "Name": "RunCommand", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", + "Method": "POST", + "OperationID": "VirtualMachineScaleSetVMs_RunCommand", + "IsLongRunning": true, + "PagingMetadata": { + "Method": "RunCommand", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Run command on a virtual machine in a VM scale set." + } + ], + "Parents": [ + "VirtualMachineScaleSet" + ], + "SwaggerModelName": "VirtualMachineScaleSetVM", + "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines", + "ResourceKey": "instanceId", + "ResourceKeySegment": "virtualMachines", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "VirtualMachineExtension": [ + { + "Name": "VirtualMachineExtension", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + "Method": "GET", + "OperationID": "VirtualMachineExtensions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to get the extension." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + "Method": "PUT", + "OperationID": "VirtualMachineExtensions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create or update the extension." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + "Method": "PATCH", + "OperationID": "VirtualMachineExtensions_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to update the extension." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + "Method": "DELETE", + "OperationID": "VirtualMachineExtensions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to delete the extension." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", + "Method": "GET", + "OperationID": "VirtualMachineExtensions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "The operation to get all extensions of a Virtual Machine." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "VirtualMachine" + ], + "SwaggerModelName": "VirtualMachineExtension", + "ResourceType": "Microsoft.Compute/virtualMachines/extensions", + "ResourceKey": "vmExtensionName", + "ResourceKeySegment": "extensions", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "VirtualMachine": [ + { + "Name": "VirtualMachine", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "Method": "GET", + "OperationID": "VirtualMachines_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about the model view or the instance view of a virtual machine." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "Method": "PUT", + "OperationID": "VirtualMachines_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "Method": "PATCH", + "OperationID": "VirtualMachines_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to update a virtual machine." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + "Method": "DELETE", + "OperationID": "VirtualMachines_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to delete a virtual machine." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", + "Method": "GET", + "OperationID": "VirtualMachines_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", + "Method": "GET", + "OperationID": "VirtualMachines_ListAll", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListAll", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Capture", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", + "Method": "POST", + "OperationID": "VirtualMachines_Capture", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs." + }, + { + "Name": "InstanceView", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", + "Method": "GET", + "OperationID": "VirtualMachines_InstanceView", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about the run-time state of a virtual machine." + }, + { + "Name": "ConvertToManagedDisks", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", + "Method": "POST", + "OperationID": "VirtualMachines_ConvertToManagedDisks", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation." + }, + { + "Name": "Deallocate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", + "Method": "POST", + "OperationID": "VirtualMachines_Deallocate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses." + }, + { + "Name": "Generalize", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", + "Method": "POST", + "OperationID": "VirtualMachines_Generalize", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image)." + }, + { + "Name": "ListAvailableSizes", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", + "Method": "GET", + "OperationID": "VirtualMachines_ListAvailableSizes", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListAvailableSizes", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all available virtual machine sizes to which the specified virtual machine can be resized." + }, + { + "Name": "PowerOff", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", + "Method": "POST", + "OperationID": "VirtualMachines_PowerOff", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine." + }, + { + "Name": "Reapply", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", + "Method": "POST", + "OperationID": "VirtualMachines_Reapply", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to reapply a virtual machine's state." + }, + { + "Name": "Restart", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", + "Method": "POST", + "OperationID": "VirtualMachines_Restart", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to restart a virtual machine." + }, + { + "Name": "Start", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", + "Method": "POST", + "OperationID": "VirtualMachines_Start", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to start a virtual machine." + }, + { + "Name": "Redeploy", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", + "Method": "POST", + "OperationID": "VirtualMachines_Redeploy", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Shuts down the virtual machine, moves it to a new node, and powers it back on." + }, + { + "Name": "Reimage", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", + "Method": "POST", + "OperationID": "VirtualMachines_Reimage", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage." + }, + { + "Name": "RetrieveBootDiagnosticsData", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", + "Method": "POST", + "OperationID": "VirtualMachines_RetrieveBootDiagnosticsData", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs." + }, + { + "Name": "PerformMaintenance", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", + "Method": "POST", + "OperationID": "VirtualMachines_PerformMaintenance", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to perform maintenance on a virtual machine." + }, + { + "Name": "SimulateEviction", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", + "Method": "POST", + "OperationID": "VirtualMachines_SimulateEviction", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to simulate the eviction of spot virtual machine." + }, + { + "Name": "AssessPatches", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", + "Method": "POST", + "OperationID": "VirtualMachines_AssessPatches", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Assess patches on the VM." + }, + { + "Name": "InstallPatches", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", + "Method": "POST", + "OperationID": "VirtualMachines_InstallPatches", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Installs patches on the VM." + }, + { + "Name": "RunCommand", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", + "Method": "POST", + "OperationID": "VirtualMachines_RunCommand", + "IsLongRunning": true, + "PagingMetadata": { + "Method": "RunCommand", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Run command on the VM." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "VirtualMachine", + "ResourceType": "Microsoft.Compute/virtualMachines", + "ResourceKey": "vmName", + "ResourceKeySegment": "virtualMachines", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "VirtualMachineExtensionImage": [ + { + "Name": "VirtualMachineExtensionImage", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}", + "Method": "GET", + "OperationID": "VirtualMachineExtensionImages_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets a virtual machine extension image." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", + "Method": "GET", + "OperationID": "VirtualMachineExtensionImages_ListTypes", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListTypes", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of virtual machine extension image types." + }, + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions", + "Method": "GET", + "OperationID": "VirtualMachineExtensionImages_ListVersions", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListVersions", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of virtual machine extension image versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "SubscriptionResource" + ], + "SwaggerModelName": "VirtualMachineExtensionImage", + "ResourceType": "Microsoft.Compute/locations/publishers/artifacttypes/types/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": true, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "AvailabilitySet": [ + { + "Name": "AvailabilitySet", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + "Method": "GET", + "OperationID": "AvailabilitySets_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about an availability set." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + "Method": "PUT", + "OperationID": "AvailabilitySets_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update an availability set." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + "Method": "PATCH", + "OperationID": "AvailabilitySets_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update an availability set." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + "Method": "DELETE", + "OperationID": "AvailabilitySets_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete an availability set." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", + "Method": "GET", + "OperationID": "AvailabilitySets_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all availability sets in a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", + "Method": "GET", + "OperationID": "AvailabilitySets_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all availability sets in a subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListAvailableSizes", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", + "Method": "GET", + "OperationID": "AvailabilitySets_ListAvailableSizes", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListAvailableSizes", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "AvailabilitySet", + "ResourceType": "Microsoft.Compute/availabilitySets", + "ResourceKey": "availabilitySetName", + "ResourceKeySegment": "availabilitySets", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ProximityPlacementGroup": [ + { + "Name": "ProximityPlacementGroup", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + "Method": "GET", + "OperationID": "ProximityPlacementGroups_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about a proximity placement group ." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + "Method": "PUT", + "OperationID": "ProximityPlacementGroups_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a proximity placement group." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + "Method": "PATCH", + "OperationID": "ProximityPlacementGroups_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a proximity placement group." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + "Method": "DELETE", + "OperationID": "ProximityPlacementGroups_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a proximity placement group." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", + "Method": "GET", + "OperationID": "ProximityPlacementGroups_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all proximity placement groups in a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", + "Method": "GET", + "OperationID": "ProximityPlacementGroups_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all proximity placement groups in a subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "ProximityPlacementGroup", + "ResourceType": "Microsoft.Compute/proximityPlacementGroups", + "ResourceKey": "proximityPlacementGroupName", + "ResourceKeySegment": "proximityPlacementGroups", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DedicatedHostGroup": [ + { + "Name": "DedicatedHostGroup", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + "Method": "GET", + "OperationID": "DedicatedHostGroups_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about a dedicated host group." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + "Method": "PUT", + "OperationID": "DedicatedHostGroups_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596)" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + "Method": "PATCH", + "OperationID": "DedicatedHostGroups_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update an dedicated host group." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + "Method": "DELETE", + "OperationID": "DedicatedHostGroups_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a dedicated host group." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", + "Method": "GET", + "OperationID": "DedicatedHostGroups_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", + "Method": "GET", + "OperationID": "DedicatedHostGroups_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "DedicatedHostGroup", + "ResourceType": "Microsoft.Compute/hostGroups", + "ResourceKey": "hostGroupName", + "ResourceKeySegment": "hostGroups", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DedicatedHost": [ + { + "Name": "DedicatedHost", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + "Method": "GET", + "OperationID": "DedicatedHosts_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about a dedicated host." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + "Method": "PUT", + "OperationID": "DedicatedHosts_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a dedicated host ." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + "Method": "PATCH", + "OperationID": "DedicatedHosts_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a dedicated host ." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + "Method": "DELETE", + "OperationID": "DedicatedHosts_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a dedicated host." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", + "Method": "GET", + "OperationID": "DedicatedHosts_ListByHostGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByHostGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Restart", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart", + "Method": "POST", + "OperationID": "DedicatedHosts_Restart", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details." + }, + { + "Name": "ListAvailableSizes", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", + "Method": "GET", + "OperationID": "DedicatedHosts_ListAvailableSizes", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListAvailableSizes", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host." + } + ], + "Parents": [ + "DedicatedHostGroup" + ], + "SwaggerModelName": "DedicatedHost", + "ResourceType": "Microsoft.Compute/hostGroups/hosts", + "ResourceKey": "hostName", + "ResourceKeySegment": "hosts", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "SshPublicKeyResource": [ + { + "Name": "SshPublicKeyResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + "Method": "GET", + "OperationID": "SshPublicKeys_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about an SSH public key." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + "Method": "PUT", + "OperationID": "SshPublicKeys_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new SSH public key resource." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + "Method": "PATCH", + "OperationID": "SshPublicKeys_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates a new SSH public key resource." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + "Method": "DELETE", + "OperationID": "SshPublicKeys_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete an SSH public key." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", + "Method": "GET", + "OperationID": "SshPublicKeys_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", + "Method": "GET", + "OperationID": "SshPublicKeys_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "GenerateKeyPair", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", + "Method": "POST", + "OperationID": "SshPublicKeys_GenerateKeyPair", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "SshPublicKeyResource", + "ResourceType": "Microsoft.Compute/sshPublicKeys", + "ResourceKey": "sshPublicKeyName", + "ResourceKeySegment": "sshPublicKeys", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Image": [ + { + "Name": "Image", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + "Method": "GET", + "OperationID": "Images_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets an image." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + "Method": "PUT", + "OperationID": "Images_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update an image." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + "Method": "PATCH", + "OperationID": "Images_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update an image." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + "Method": "DELETE", + "OperationID": "Images_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes an Image." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images", + "Method": "GET", + "OperationID": "Images_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the list of images under a resource group. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images", + "Method": "GET", + "OperationID": "Images_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "Image", + "ResourceType": "Microsoft.Compute/images", + "ResourceKey": "imageName", + "ResourceKeySegment": "images", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "RestorePointCollection": [ + { + "Name": "RestorePointCollection", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + "Method": "GET", + "OperationID": "RestorePointCollections_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to get the restore point collection." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + "Method": "PUT", + "OperationID": "RestorePointCollections_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + "Method": "PATCH", + "OperationID": "RestorePointCollections_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to update the restore point collection." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + "Method": "DELETE", + "OperationID": "RestorePointCollections_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to delete the restore point collection. This operation will also delete all the contained restore points." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", + "Method": "GET", + "OperationID": "RestorePointCollections_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the list of restore point collections in a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", + "Method": "GET", + "OperationID": "RestorePointCollections_ListAll", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListAll", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "RestorePointCollection", + "ResourceType": "Microsoft.Compute/restorePointCollections", + "ResourceKey": "restorePointCollectionName", + "ResourceKeySegment": "restorePointCollections", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "RestorePoint": [ + { + "Name": "RestorePoint", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + "Method": "GET", + "OperationID": "RestorePoints_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to get the restore point." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + "Method": "PUT", + "OperationID": "RestorePoints_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create the restore point. Updating properties of an existing restore point is not allowed" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + "Method": "PUT", + "OperationID": "RestorePoints_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create the restore point. Updating properties of an existing restore point is not allowed" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + "Method": "DELETE", + "OperationID": "RestorePoints_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to delete the restore point." + } + ], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "RestorePointCollection" + ], + "SwaggerModelName": "RestorePoint", + "ResourceType": "Microsoft.Compute/restorePointCollections/restorePoints", + "ResourceKey": "restorePointName", + "ResourceKeySegment": "restorePoints", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CapacityReservationGroup": [ + { + "Name": "CapacityReservationGroup", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + "Method": "GET", + "OperationID": "CapacityReservationGroups_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation that retrieves information about a capacity reservation group." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + "Method": "PUT", + "OperationID": "CapacityReservationGroups_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + "Method": "PATCH", + "OperationID": "CapacityReservationGroups_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + "Method": "DELETE", + "OperationID": "CapacityReservationGroups_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", + "Method": "GET", + "OperationID": "CapacityReservationGroups_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", + "Method": "GET", + "OperationID": "CapacityReservationGroups_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "CapacityReservationGroup", + "ResourceType": "Microsoft.Compute/capacityReservationGroups", + "ResourceKey": "capacityReservationGroupName", + "ResourceKeySegment": "capacityReservationGroups", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CapacityReservation": [ + { + "Name": "CapacityReservation", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + "Method": "GET", + "OperationID": "CapacityReservations_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation that retrieves information about the capacity reservation." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + "Method": "PUT", + "OperationID": "CapacityReservations_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + "Method": "PATCH", + "OperationID": "CapacityReservations_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to update a capacity reservation." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + "Method": "DELETE", + "OperationID": "CapacityReservations_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", + "Method": "GET", + "OperationID": "CapacityReservations_ListByCapacityReservationGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByCapacityReservationGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "CapacityReservationGroup" + ], + "SwaggerModelName": "CapacityReservation", + "ResourceType": "Microsoft.Compute/capacityReservationGroups/capacityReservations", + "ResourceKey": "capacityReservationName", + "ResourceKeySegment": "capacityReservations", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "VirtualMachineRunCommand": [ + { + "Name": "VirtualMachineRunCommand", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + "Method": "GET", + "OperationID": "VirtualMachineRunCommands_GetByVirtualMachine", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to get the run command." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + "Method": "PUT", + "OperationID": "VirtualMachineRunCommands_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create or update the run command." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + "Method": "PATCH", + "OperationID": "VirtualMachineRunCommands_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to update the run command." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + "Method": "DELETE", + "OperationID": "VirtualMachineRunCommands_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to delete the run command." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", + "Method": "GET", + "OperationID": "VirtualMachineRunCommands_ListByVirtualMachine", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByVirtualMachine", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "The operation to get all run commands of a Virtual Machine." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "VirtualMachine" + ], + "SwaggerModelName": "VirtualMachineRunCommand", + "ResourceType": "Microsoft.Compute/virtualMachines/runCommands", + "ResourceKey": "runCommandName", + "ResourceKeySegment": "runCommands", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "VirtualMachineRunCommand", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + "Method": "GET", + "OperationID": "VirtualMachineScaleSetVMRunCommands_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The operation to get the VMSS VM run command." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + "Method": "PUT", + "OperationID": "VirtualMachineScaleSetVMRunCommands_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to create or update the VMSS VM run command." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + "Method": "PATCH", + "OperationID": "VirtualMachineScaleSetVMRunCommands_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to update the VMSS VM run command." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + "Method": "DELETE", + "OperationID": "VirtualMachineScaleSetVMRunCommands_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The operation to delete the VMSS VM run command." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands", + "Method": "GET", + "OperationID": "VirtualMachineScaleSetVMRunCommands_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "The operation to get all run commands of an instance in Virtual Machine Scaleset." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "VirtualMachineScaleSetVM" + ], + "SwaggerModelName": "VirtualMachineRunCommand", + "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands", + "ResourceKey": "runCommandName", + "ResourceKeySegment": "runCommands", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Disk": [ + { + "Name": "Disk", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + "Method": "GET", + "OperationID": "Disks_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets information about a disk." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + "Method": "PUT", + "OperationID": "Disks_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates a disk." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + "Method": "PATCH", + "OperationID": "Disks_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates (patches) a disk." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + "Method": "DELETE", + "OperationID": "Disks_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a disk." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", + "Method": "GET", + "OperationID": "Disks_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the disks under a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks", + "Method": "GET", + "OperationID": "Disks_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the disks under a subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "GrantAccess", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", + "Method": "POST", + "OperationID": "Disks_GrantAccess", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Grants access to a disk." + }, + { + "Name": "RevokeAccess", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", + "Method": "POST", + "OperationID": "Disks_RevokeAccess", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Revokes access to a disk." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "Disk", + "ResourceType": "Microsoft.Compute/disks", + "ResourceKey": "diskName", + "ResourceKeySegment": "disks", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DiskAccess": [ + { + "Name": "DiskAccess", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + "Method": "GET", + "OperationID": "DiskAccesses_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets information about a disk access resource." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + "Method": "PUT", + "OperationID": "DiskAccesses_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates a disk access resource" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + "Method": "PATCH", + "OperationID": "DiskAccesses_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates (patches) a disk access resource." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + "Method": "DELETE", + "OperationID": "DiskAccesses_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a disk access resource." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", + "Method": "GET", + "OperationID": "DiskAccesses_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the disk access resources under a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", + "Method": "GET", + "OperationID": "DiskAccesses_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the disk access resources under a subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "GetPrivateLinkResources", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", + "Method": "GET", + "OperationID": "DiskAccesses_GetPrivateLinkResources", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "GetPrivateLinkResources", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the private link resources possible under disk access resource" + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "DiskAccess", + "ResourceType": "Microsoft.Compute/diskAccesses", + "ResourceKey": "diskAccessName", + "ResourceKeySegment": "diskAccesses", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "PrivateEndpointConnection": [ + { + "Name": "PrivateEndpointConnection", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "GET", + "OperationID": "DiskAccesses_GetAPrivateEndpointConnection", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets information about a private endpoint connection under a disk access resource." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "PUT", + "OperationID": "DiskAccesses_UpdateAPrivateEndpointConnection", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "PUT", + "OperationID": "DiskAccesses_UpdateAPrivateEndpointConnection", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "DELETE", + "OperationID": "DiskAccesses_DeleteAPrivateEndpointConnection", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a private endpoint connection under a disk access resource." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", + "Method": "GET", + "OperationID": "DiskAccesses_ListPrivateEndpointConnections", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListPrivateEndpointConnections", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List information about private endpoint connections under a disk access resource" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "DiskAccess" + ], + "SwaggerModelName": "PrivateEndpointConnection", + "ResourceType": "Microsoft.Compute/diskAccesses/privateEndpointConnections", + "ResourceKey": "privateEndpointConnectionName", + "ResourceKeySegment": "privateEndpointConnections", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DiskEncryptionSet": [ + { + "Name": "DiskEncryptionSet", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + "Method": "GET", + "OperationID": "DiskEncryptionSets_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets information about a disk encryption set." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + "Method": "PUT", + "OperationID": "DiskEncryptionSets_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates a disk encryption set" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + "Method": "PATCH", + "OperationID": "DiskEncryptionSets_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates (patches) a disk encryption set." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + "Method": "DELETE", + "OperationID": "DiskEncryptionSets_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a disk encryption set." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", + "Method": "GET", + "OperationID": "DiskEncryptionSets_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the disk encryption sets under a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", + "Method": "GET", + "OperationID": "DiskEncryptionSets_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the disk encryption sets under a subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListAssociatedResources", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", + "Method": "GET", + "OperationID": "DiskEncryptionSets_ListAssociatedResources", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListAssociatedResources", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all resources that are encrypted with this disk encryption set." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "DiskEncryptionSet", + "ResourceType": "Microsoft.Compute/diskEncryptionSets", + "ResourceKey": "diskEncryptionSetName", + "ResourceKeySegment": "diskEncryptionSets", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DiskRestorePoint": [ + { + "Name": "DiskRestorePoint", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", + "Method": "GET", + "OperationID": "DiskRestorePoint_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get disk restorePoint resource" + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints", + "Method": "GET", + "OperationID": "DiskRestorePoint_ListByRestorePoint", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByRestorePoint", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists diskRestorePoints under a vmRestorePoint." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "GrantAccess", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", + "Method": "POST", + "OperationID": "DiskRestorePoint_GrantAccess", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Grants access to a diskRestorePoint." + }, + { + "Name": "RevokeAccess", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", + "Method": "POST", + "OperationID": "DiskRestorePoint_RevokeAccess", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Revokes access to a diskRestorePoint." + } + ], + "Parents": [ + "RestorePointCollection" + ], + "SwaggerModelName": "DiskRestorePoint", + "ResourceType": "Microsoft.Compute/restorePointCollections/restorePoints/diskRestorePoints", + "ResourceKey": "diskRestorePointName", + "ResourceKeySegment": "diskRestorePoints", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Snapshot": [ + { + "Name": "Snapshot", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + "Method": "GET", + "OperationID": "Snapshots_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets information about a snapshot." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + "Method": "PUT", + "OperationID": "Snapshots_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates a snapshot." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + "Method": "PATCH", + "OperationID": "Snapshots_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates (patches) a snapshot." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + "Method": "DELETE", + "OperationID": "Snapshots_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a snapshot." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", + "Method": "GET", + "OperationID": "Snapshots_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists snapshots under a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots", + "Method": "GET", + "OperationID": "Snapshots_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists snapshots under a subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "GrantAccess", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", + "Method": "POST", + "OperationID": "Snapshots_GrantAccess", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Grants access to a snapshot." + }, + { + "Name": "RevokeAccess", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", + "Method": "POST", + "OperationID": "Snapshots_RevokeAccess", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Revokes access to a snapshot." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "Snapshot", + "ResourceType": "Microsoft.Compute/snapshots", + "ResourceKey": "snapshotName", + "ResourceKeySegment": "snapshots", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Gallery": [ + { + "Name": "Gallery", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + "Method": "GET", + "OperationID": "Galleries_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about a Shared Image Gallery." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + "Method": "PUT", + "OperationID": "Galleries_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a Shared Image Gallery." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + "Method": "PATCH", + "OperationID": "Galleries_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a Shared Image Gallery." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + "Method": "DELETE", + "OperationID": "Galleries_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Shared Image Gallery." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", + "Method": "GET", + "OperationID": "Galleries_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List galleries under a resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries", + "Method": "GET", + "OperationID": "Galleries_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List galleries under a subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", + "Method": "POST", + "OperationID": "GallerySharingProfile_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update sharing profile of a gallery." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "Gallery", + "ResourceType": "Microsoft.Compute/galleries", + "ResourceKey": "galleryName", + "ResourceKeySegment": "galleries", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "GalleryImage": [ + { + "Name": "GalleryImage", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + "Method": "GET", + "OperationID": "GalleryImages_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about a gallery image definition." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + "Method": "PUT", + "OperationID": "GalleryImages_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a gallery image definition." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + "Method": "PATCH", + "OperationID": "GalleryImages_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a gallery image definition." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + "Method": "DELETE", + "OperationID": "GalleryImages_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a gallery image." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", + "Method": "GET", + "OperationID": "GalleryImages_ListByGallery", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByGallery", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List gallery image definitions in a gallery." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Gallery" + ], + "SwaggerModelName": "GalleryImage", + "ResourceType": "Microsoft.Compute/galleries/images", + "ResourceKey": "galleryImageName", + "ResourceKeySegment": "images", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "GalleryImageVersion": [ + { + "Name": "GalleryImageVersion", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + "Method": "GET", + "OperationID": "GalleryImageVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about a gallery image version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + "Method": "PUT", + "OperationID": "GalleryImageVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a gallery image version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + "Method": "PATCH", + "OperationID": "GalleryImageVersions_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a gallery image version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + "Method": "DELETE", + "OperationID": "GalleryImageVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a gallery image version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions", + "Method": "GET", + "OperationID": "GalleryImageVersions_ListByGalleryImage", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByGalleryImage", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List gallery image versions in a gallery image definition." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "GalleryImage" + ], + "SwaggerModelName": "GalleryImageVersion", + "ResourceType": "Microsoft.Compute/galleries/images/versions", + "ResourceKey": "galleryImageVersionName", + "ResourceKeySegment": "versions", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "GalleryApplication": [ + { + "Name": "GalleryApplication", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + "Method": "GET", + "OperationID": "GalleryApplications_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about a gallery Application Definition." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + "Method": "PUT", + "OperationID": "GalleryApplications_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a gallery Application Definition." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + "Method": "PATCH", + "OperationID": "GalleryApplications_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a gallery Application Definition." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + "Method": "DELETE", + "OperationID": "GalleryApplications_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a gallery Application." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", + "Method": "GET", + "OperationID": "GalleryApplications_ListByGallery", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByGallery", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List gallery Application Definitions in a gallery." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Gallery" + ], + "SwaggerModelName": "GalleryApplication", + "ResourceType": "Microsoft.Compute/galleries/applications", + "ResourceKey": "galleryApplicationName", + "ResourceKeySegment": "applications", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "GalleryApplicationVersion": [ + { + "Name": "GalleryApplicationVersion", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + "Method": "GET", + "OperationID": "GalleryApplicationVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about a gallery Application Version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + "Method": "PUT", + "OperationID": "GalleryApplicationVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a gallery Application Version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + "Method": "PATCH", + "OperationID": "GalleryApplicationVersions_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a gallery Application Version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + "Method": "DELETE", + "OperationID": "GalleryApplicationVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a gallery Application Version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions", + "Method": "GET", + "OperationID": "GalleryApplicationVersions_ListByGalleryApplication", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByGalleryApplication", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List gallery Application Versions in a gallery Application Definition." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "GalleryApplication" + ], + "SwaggerModelName": "GalleryApplicationVersion", + "ResourceType": "Microsoft.Compute/galleries/applications/versions", + "ResourceKey": "galleryApplicationVersionName", + "ResourceKeySegment": "versions", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "SharedGallery": [ + { + "Name": "SharedGallery", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", + "Method": "GET", + "OperationID": "SharedGalleries_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a shared gallery by subscription id or tenant id." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", + "Method": "GET", + "OperationID": "SharedGalleries_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List shared galleries by subscription id or tenant id." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "SubscriptionResource" + ], + "SwaggerModelName": "SharedGallery", + "ResourceType": "Microsoft.Compute/locations/sharedGalleries", + "ResourceKey": "galleryUniqueName", + "ResourceKeySegment": "sharedGalleries", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": true, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "SharedGalleryImage": [ + { + "Name": "SharedGalleryImage", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", + "Method": "GET", + "OperationID": "SharedGalleryImages_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a shared gallery image by subscription id or tenant id." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", + "Method": "GET", + "OperationID": "SharedGalleryImages_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List shared gallery images by subscription id or tenant id." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "SharedGallery" + ], + "SwaggerModelName": "SharedGalleryImage", + "ResourceType": "Microsoft.Compute/locations/sharedGalleries/images", + "ResourceKey": "galleryImageName", + "ResourceKeySegment": "images", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "SharedGalleryImageVersion": [ + { + "Name": "SharedGalleryImageVersion", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + "Method": "GET", + "OperationID": "SharedGalleryImageVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a shared gallery image version by subscription id or tenant id." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", + "Method": "GET", + "OperationID": "SharedGalleryImageVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List shared gallery image versions by subscription id or tenant id." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "SharedGalleryImage" + ], + "SwaggerModelName": "SharedGalleryImageVersion", + "ResourceType": "Microsoft.Compute/locations/sharedGalleries/images/versions", + "ResourceKey": "galleryImageVersionName", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CommunityGallery": [ + { + "Name": "CommunityGallery", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", + "Method": "GET", + "OperationID": "CommunityGalleries_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a community gallery by gallery public name." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "SubscriptionResource" + ], + "SwaggerModelName": "CommunityGallery", + "ResourceType": "Microsoft.Compute/locations/communityGalleries", + "ResourceKey": "publicGalleryName", + "ResourceKeySegment": "communityGalleries", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": true, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CommunityGalleryImage": [ + { + "Name": "CommunityGalleryImage", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}", + "Method": "GET", + "OperationID": "CommunityGalleryImages_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a community gallery image." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", + "Method": "GET", + "OperationID": "CommunityGalleryImages_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List community gallery images inside a gallery." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "CommunityGallery" + ], + "SwaggerModelName": "CommunityGalleryImage", + "ResourceType": "Microsoft.Compute/locations/communityGalleries/images", + "ResourceKey": "galleryImageName", + "ResourceKeySegment": "images", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CommunityGalleryImageVersion": [ + { + "Name": "CommunityGalleryImageVersion", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + "Method": "GET", + "OperationID": "CommunityGalleryImageVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a community gallery image version." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions", + "Method": "GET", + "OperationID": "CommunityGalleryImageVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List community gallery image versions inside an image." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "CommunityGalleryImage" + ], + "SwaggerModelName": "CommunityGalleryImageVersion", + "ResourceType": "Microsoft.Compute/locations/communityGalleries/images/versions", + "ResourceKey": "galleryImageVersionName", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "RoleInstance": [ + { + "Name": "RoleInstance", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + "Method": "GET", + "OperationID": "CloudServiceRoleInstances_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets a role instance from a cloud service." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + "Method": "DELETE", + "OperationID": "CloudServiceRoleInstances_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a role instance from a cloud service." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", + "Method": "GET", + "OperationID": "CloudServiceRoleInstances_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "GetInstanceView", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView", + "Method": "GET", + "OperationID": "CloudServiceRoleInstances_GetInstanceView", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves information about the run-time state of a role instance in a cloud service." + }, + { + "Name": "Restart", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart", + "Method": "POST", + "OperationID": "CloudServiceRoleInstances_Restart", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service." + }, + { + "Name": "Reimage", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage", + "Method": "POST", + "OperationID": "CloudServiceRoleInstances_Reimage", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles." + }, + { + "Name": "Rebuild", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", + "Method": "POST", + "OperationID": "CloudServiceRoleInstances_Rebuild", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance." + }, + { + "Name": "GetRemoteDesktopFile", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile", + "Method": "GET", + "OperationID": "CloudServiceRoleInstances_GetRemoteDesktopFile", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets a remote desktop file for a role instance in a cloud service." + } + ], + "Parents": [ + "CloudService" + ], + "SwaggerModelName": "RoleInstance", + "ResourceType": "Microsoft.Compute/cloudServices/roleInstances", + "ResourceKey": "roleInstanceName", + "ResourceKeySegment": "roleInstances", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CloudServiceRole": [ + { + "Name": "CloudServiceRole", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", + "Method": "GET", + "OperationID": "CloudServiceRoles_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets a role from a cloud service." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", + "Method": "GET", + "OperationID": "CloudServiceRoles_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "CloudService" + ], + "SwaggerModelName": "CloudServiceRole", + "ResourceType": "Microsoft.Compute/cloudServices/roles", + "ResourceKey": "roleName", + "ResourceKeySegment": "roles", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CloudService": [ + { + "Name": "CloudService", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + "Method": "GET", + "OperationID": "CloudServices_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Display information about a cloud service." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + "Method": "PUT", + "OperationID": "CloudServices_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update a cloud service. Please note some properties can be set only during cloud service creation." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + "Method": "PATCH", + "OperationID": "CloudServices_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a cloud service." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + "Method": "DELETE", + "OperationID": "CloudServices_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a cloud service." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", + "Method": "GET", + "OperationID": "CloudServices_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", + "Method": "GET", + "OperationID": "CloudServices_ListAll", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListAll", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "GetInstanceView", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", + "Method": "GET", + "OperationID": "CloudServices_GetInstanceView", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the status of a cloud service." + }, + { + "Name": "Start", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", + "Method": "POST", + "OperationID": "CloudServices_Start", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Starts the cloud service." + }, + { + "Name": "PowerOff", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", + "Method": "POST", + "OperationID": "CloudServices_PowerOff", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Power off the cloud service. Note that resources are still attached and you are getting charged for the resources." + }, + { + "Name": "Restart", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", + "Method": "POST", + "OperationID": "CloudServices_Restart", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Restarts one or more role instances in a cloud service." + }, + { + "Name": "Reimage", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", + "Method": "POST", + "OperationID": "CloudServices_Reimage", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles." + }, + { + "Name": "Rebuild", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", + "Method": "POST", + "OperationID": "CloudServices_Rebuild", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances." + }, + { + "Name": "DeleteInstances", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", + "Method": "POST", + "OperationID": "CloudServices_DeleteInstances", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes role instances in a cloud service." + }, + { + "Name": "WalkUpdateDomain", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + "Method": "PUT", + "OperationID": "CloudServicesUpdateDomain_WalkUpdateDomain", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates the role instances in the specified update domain." + }, + { + "Name": "GetUpdateDomain", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + "Method": "GET", + "OperationID": "CloudServicesUpdateDomain_GetUpdateDomain", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update domains." + }, + { + "Name": "ListUpdateDomains", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", + "Method": "GET", + "OperationID": "CloudServicesUpdateDomain_ListUpdateDomains", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListUpdateDomains", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all update domains in a cloud service." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "CloudService", + "ResourceType": "Microsoft.Compute/cloudServices", + "ResourceKey": "cloudServiceName", + "ResourceKeySegment": "cloudServices", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "OSVersion": [ + { + "Name": "OSVersion", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", + "Method": "GET", + "OperationID": "CloudServiceOperatingSystems_GetOSVersion", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", + "Method": "GET", + "OperationID": "CloudServiceOperatingSystems_ListOSVersions", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListOSVersions", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink is null to fetch all the OS versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "SubscriptionResource" + ], + "SwaggerModelName": "OSVersion", + "ResourceType": "Microsoft.Compute/locations/cloudServiceOsVersions", + "ResourceKey": "osVersionName", + "ResourceKeySegment": "cloudServiceOsVersions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": true, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "OSFamily": [ + { + "Name": "OSFamily", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", + "Method": "GET", + "OperationID": "CloudServiceOperatingSystems_GetOSFamily", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", + "Method": "GET", + "OperationID": "CloudServiceOperatingSystems_ListOSFamilies", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListOSFamilies", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "SubscriptionResource" + ], + "SwaggerModelName": "OSFamily", + "ResourceType": "Microsoft.Compute/locations/cloudServiceOsFamilies", + "ResourceKey": "osFamilyName", + "ResourceKeySegment": "cloudServiceOsFamilies", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": true, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RoleInstance.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RoleInstance.tsp index 1f0c518385..1435337744 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RoleInstance.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RoleInstance.tsp @@ -31,12 +31,10 @@ model RoleInstance } @armResourceOperations -interface RoleInstancesOperationGroup { +interface CloudServiceRoleInstances { /** * Gets a role instance from a cloud service. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("CloudServiceRoleInstances_Get") get is ArmResourceRead< RoleInstance, Parameters = { @@ -51,9 +49,7 @@ interface RoleInstancesOperationGroup { /** * Deletes a role instance from a cloud service. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" - @operationId("CloudServiceRoleInstances_Delete") delete is ArmResourceDeleteWithoutOkAsync< RoleInstance, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse @@ -62,8 +58,6 @@ interface RoleInstancesOperationGroup { /** * Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("CloudServiceRoleInstances_List") list is ArmResourceListByParent< RoleInstance, Parameters = { @@ -78,10 +72,8 @@ interface RoleInstancesOperationGroup { /** * Retrieves information about the run-time state of a role instance in a cloud service. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @get @action("instanceView") - @operationId("CloudServiceRoleInstances_GetInstanceView") getInstanceView is ArmResourceActionSync< RoleInstance, void, @@ -91,31 +83,23 @@ interface RoleInstancesOperationGroup { /** * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("CloudServiceRoleInstances_Restart") restart is ArmResourceActionAsync; /** * The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("CloudServiceRoleInstances_Reimage") reimage is ArmResourceActionAsync; /** * The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("CloudServiceRoleInstances_Rebuild") rebuild is ArmResourceActionAsync; /** * Gets a remote desktop file for a role instance in a cloud service. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @get @action("remoteDesktopFile") - @operationId("CloudServiceRoleInstances_GetRemoteDesktopFile") getRemoteDesktopFile is ArmResourceActionSync; } diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommand.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommand.tsp index 219323c977..f7185fce2f 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommand.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommand.tsp @@ -25,12 +25,35 @@ model VirtualMachineRunCommand >; } +@armResourceOperations +interface VirtualMachineRunCommandOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface VirtualMachineRunCommands { /** * The operation to get the run command. */ - getByVirtualMachine is ArmResourceRead< + getByVirtualMachine is VirtualMachineRunCommandOps.Read< VirtualMachineRunCommand, Parameters = { /** @@ -44,7 +67,7 @@ interface VirtualMachineRunCommands { /** * The operation to create or update the run command. */ - createOrUpdate is ArmResourceCreateOrReplaceAsync< + createOrUpdate is VirtualMachineRunCommandOps.CreateOrUpdateAsync< VirtualMachineRunCommand, LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader >; @@ -53,7 +76,7 @@ interface VirtualMachineRunCommands { * The operation to update the run command. */ @parameterVisibility - update is ArmCustomPatchAsync< + update is VirtualMachineRunCommandOps.CustomPatchAsync< VirtualMachineRunCommand, PatchModel = VirtualMachineRunCommandUpdate, Response = ArmResponse @@ -63,7 +86,7 @@ interface VirtualMachineRunCommands { * The operation to delete the run command. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" - delete is ArmResourceDeleteWithoutOkAsync< + delete is VirtualMachineRunCommandOps.DeleteWithoutOkAsync< VirtualMachineRunCommand, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -71,7 +94,103 @@ interface VirtualMachineRunCommands { /** * The operation to get all run commands of a Virtual Machine. */ - listByVirtualMachine is ArmResourceListByParent< + listByVirtualMachine is VirtualMachineRunCommandOps.List< + VirtualMachineRunCommand, + Parameters = { + /** + * The expand expression to apply on the operation. + */ + @query("$expand") + $expand?: string; + } + >; +} +@armResourceOperations +interface VirtualMachineScaleSetVMRunCommandOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface VirtualMachineScaleSetVMRunCommands { + /** + * The operation to get the VMSS VM run command. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachineScaleSetVMRunCommands_Get") + get is VirtualMachineScaleSetVMRunCommandOps.Read< + VirtualMachineRunCommand, + Parameters = { + /** + * The expand expression to apply on the operation. + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * The operation to create or update the VMSS VM run command. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachineScaleSetVMRunCommands_CreateOrUpdate") + createOrUpdate is VirtualMachineScaleSetVMRunCommandOps.CreateOrUpdateAsync< + VirtualMachineRunCommand, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * The operation to update the VMSS VM run command. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @parameterVisibility + @operationId("VirtualMachineScaleSetVMRunCommands_Update") + update is VirtualMachineScaleSetVMRunCommandOps.CustomPatchAsync< + VirtualMachineRunCommand, + PatchModel = VirtualMachineRunCommandUpdate, + Response = ArmResponse + >; + + /** + * The operation to delete the VMSS VM run command. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + @operationId("VirtualMachineScaleSetVMRunCommands_Delete") + delete is VirtualMachineScaleSetVMRunCommandOps.DeleteWithoutOkAsync< + VirtualMachineRunCommand, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * The operation to get all run commands of an instance in Virtual Machine Scaleset. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("VirtualMachineScaleSetVMRunCommands_List") + list is VirtualMachineScaleSetVMRunCommandOps.List< VirtualMachineRunCommand, Parameters = { /** @@ -95,3 +214,9 @@ interface VirtualMachineRunCommands { @@doc(VirtualMachineRunCommands.update::parameters.properties, "Parameters supplied to the Update Virtual Machine RunCommand operation." ); +@@doc(VirtualMachineScaleSetVMRunCommands.createOrUpdate::parameters.resource, + "Parameters supplied to the Create Virtual Machine RunCommand operation." +); +@@doc(VirtualMachineScaleSetVMRunCommands.update::parameters.properties, + "Parameters supplied to the Update Virtual Machine RunCommand operation." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommandFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommandFixMe.tsp deleted file mode 100644 index 3c5dcb9d8c..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommandFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model VirtualMachineRunCommand. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/client.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/client.tsp index f6bfb16820..d127dbe06a 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/client.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/client.tsp @@ -272,6 +272,12 @@ using Microsoft.Compute; @@clientName(VirtualMachineRunCommands.update::parameters.properties, "runCommand" ); +@@clientName(VirtualMachineScaleSetVMRunCommands.createOrUpdate::parameters.resource, + "runCommand" +); +@@clientName(VirtualMachineScaleSetVMRunCommands.update::parameters.properties, + "runCommand" +); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(VirtualMachineRunCommand.properties); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json new file mode 100644 index 0000000000..9b38d2f9b6 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "api-version": "2023-07-01", + "instanceId": "0", + "resourceGroupName": "myResourceGroup", + "runCommand": { + "location": "West US", + "properties": { + "asyncExecution": false, + "errorBlobManagedIdentity": {}, + "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + "outputBlobManagedIdentity": { + "clientId": "22d35efb-0c99-4041-8c5b-6d24db33a69a" + }, + "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "runAsPassword": "", + "runAsUser": "user1", + "source": { + "scriptUri": "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", + "scriptUriManagedIdentity": { + "objectId": "4231e4d2-33e4-4e23-96b2-17888afa6072" + } + }, + "timeoutInSeconds": 3600, + "treatFailureAsDeploymentFailure": true + } + }, + "runCommandName": "myRunCommand", + "subscriptionId": "{subscription-id}", + "vmScaleSetName": "myvmScaleSet" + }, + "responses": { + "200": { + "body": { + "name": "myRunCommand", + "type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/runCommands/myRunCommand", + "location": "westus", + "properties": { + "asyncExecution": false, + "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "provisioningState": "Succeeded", + "runAsUser": "user1", + "source": { + "scriptUri": "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1" + }, + "timeoutInSeconds": 3600, + "treatFailureAsDeploymentFailure": true + } + } + }, + "201": { + "body": { + "name": "myRunCommand", + "type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/runCommands/myRunCommand", + "location": "westus", + "properties": { + "asyncExecution": false, + "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "provisioningState": "Creating", + "runAsUser": "user1", + "source": { + "scriptUri": "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1" + }, + "timeoutInSeconds": 3600, + "treatFailureAsDeploymentFailure": true + } + } + } + }, + "operationId": "VirtualMachineScaleSetVMRunCommands_CreateOrUpdate", + "title": "Create VirtualMachineScaleSet VM run command." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json new file mode 100644 index 0000000000..2447491a24 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2023-07-01", + "instanceId": "0", + "resourceGroupName": "myResourceGroup", + "runCommandName": "myRunCommand", + "subscriptionId": "{subscription-id}", + "vmScaleSetName": "myvmScaleSet" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/westus/operations/{operationId}&monitor=true&api-version=2023-07-01" + } + }, + "204": {} + }, + "operationId": "VirtualMachineScaleSetVMRunCommands_Delete", + "title": "Delete VirtualMachineScaleSet VM run command." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json new file mode 100644 index 0000000000..81e30fc0d2 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2023-07-01", + "instanceId": "0", + "resourceGroupName": "myResourceGroup", + "runCommandName": "myRunCommand", + "subscriptionId": "{subscription-id}", + "vmScaleSetName": "myvmScaleSet" + }, + "responses": { + "200": { + "body": { + "name": "myRunCommand", + "type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/runCommands/myRunCommand", + "location": "westus", + "properties": { + "asyncExecution": false, + "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "provisioningState": "Succeeded", + "runAsUser": "user1", + "source": { + "scriptUri": "https://gist.githubusercontent.com/myusername/75fd3634w7511116063c60bcc50bee0/raw/04a4c68ac9e1d36asfasdc64bd1d889b104c7abdb8/HelloWorld.ps1" + }, + "timeoutInSeconds": 3600, + "treatFailureAsDeploymentFailure": false + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + }, + "operationId": "VirtualMachineScaleSetVMRunCommands_Get", + "title": "Get VirtualMachineScaleSet VM run commands." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json new file mode 100644 index 0000000000..27757f5ec0 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2023-07-01", + "instanceId": "0", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "{subscription-id}", + "vmScaleSetName": "myvmScaleSet" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myRunCommand", + "type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands", + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/runCommands/myRunCommand", + "location": "westus", + "properties": { + "asyncExecution": false, + "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "provisioningState": "Succeeded", + "runAsUser": "user1", + "source": { + "script": "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt" + }, + "timeoutInSeconds": 0, + "treatFailureAsDeploymentFailure": false + } + } + ] + } + } + }, + "operationId": "VirtualMachineScaleSetVMRunCommands_List", + "title": "List run commands in Vmss instance." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json new file mode 100644 index 0000000000..af9a948161 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2023-07-01", + "instanceId": "0", + "resourceGroupName": "myResourceGroup", + "runCommand": { + "properties": { + "source": { + "scriptUri": "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", + "scriptUriManagedIdentity": { + "objectId": "4231e4d2-33e4-4e23-96b2-17888afa6072" + } + } + } + }, + "runCommandName": "myRunCommand", + "subscriptionId": "{subscription-id}", + "vmScaleSetName": "myvmScaleSet" + }, + "responses": { + "200": { + "body": { + "name": "myRunCommand", + "type": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myvmScaleSet/virtualMachines/0/runCommands/myRunCommand", + "location": "westus", + "properties": { + "asyncExecution": false, + "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "provisioningState": "Updating", + "runAsUser": "user1", + "source": { + "scriptUri": "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1" + }, + "timeoutInSeconds": 3600, + "treatFailureAsDeploymentFailure": false + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + }, + "operationId": "VirtualMachineScaleSetVMRunCommands_Update", + "title": "Update VirtualMachineScaleSet VM run command." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/legacy.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/legacy.tsp new file mode 100644 index 0000000000..05225f6ce2 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/legacy.tsp @@ -0,0 +1,326 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Legacy { + interface LegacyOperations< + ParentParameters extends {}, + ResourceTypeParameter extends {}, + ErrorType extends {} = ErrorResponse + > { + /** + * @dev A long-running resource CreateOrUpdate (PUT) + * @template Resource the resource being created or updated + * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PUT operation + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @doc("Create a {name}", Resource) + @armResourceCreateOrUpdate(Resource) + @Azure.Core.Foundations.Private.defaultFinalStateVia(#[ + "location", + "azure-async-operation" + ]) + @put + CreateOrUpdateAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + LroHeaders extends TypeSpec.Reflection.Model = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< + Resource, + LroHeaders + > + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot resource: Resource, + ): Response | ErrorType; + + /** + * @dev A synchronous resource CreateOrUpdate (PUT) + * @template Resource the resource being created or updated + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PUT operation + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @doc("Create a {name}", Resource) + @armResourceCreateOrUpdate(Resource) + @put + CreateOrUpdateSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResourceUpdatedResponse | ArmResourceCreatedSyncResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot resource: Resource, + ): Response | ErrorType; + + /** + * @dev A long-running resource Update (PATCH) + * @template Resource the resource being created or updated + * @template PatchModel the PATCH request model + * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PATCH operation + */ + @autoRoute + @doc("Update a {name}", Resource) + @armResourceUpdate(Resource) + @patch + CustomPatchAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader< + Azure.Core.StatusMonitorPollingOptions, + Resource, + string + > & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmResponse | ArmAcceptedLroResponse< + "Resource update request accepted.", + LroHeaders + > + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot properties: PatchModel, + ): Response | ErrorType; + + /** + * @dev A synchronous resource Update (PATCH) + * @template Resource the resource being created or updated + * @template PatchModel the PATCH request model + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PATCH operation + */ + @autoRoute + @doc("Update a {name}", Resource) + @armResourceUpdate(Resource) + @patch + CustomPatchSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot properties: PatchModel, + ): Response | ErrorType; + + /** + * @dev Delete a resource asynchronously + * @template Resource The resource being deleted + * @template LroHeaders The lro headers for the operation + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the delete operation + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid" + @autoRoute + @doc("Delete a {name}", Resource) + @delete + @deletesResource(Resource) + @armResourceDelete(Resource) + DeleteWithoutOkAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Delete a resource synchronously + * @template Resource The resource being deleted + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the delete operation + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid" + @autoRoute + @doc("Delete a {name}", Resource) + @delete + @deletesResource(Resource) + @armResourceDelete(Resource) + DeleteSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmDeletedResponse | ArmDeletedNoContentResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Get a resource + * @template Resource The resource being read + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response for a get operation. + */ + @autoRoute + @doc("Get a {name}", Resource) + @get + @readsResource(Resource) + @armResourceRead(Resource) + Read< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Get a resource + * @template Resource The resource being read + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response for a get operation. + */ + @doc("Get a {name}", Resource) + @get + @readsResource(Resource) + @armResourceRead(Resource) + ReadRoute< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev List a resource + * @template Resource The resource being listed + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The response returned by the list + */ + @autoRoute + @doc("List {name} resources", Resource) + @get + @listsResource(Resource) + @segmentOf(Resource) + @armResourceList(Resource) + List< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse> + >(...ParentParameters, ...Parameters): Response | ErrorType; + + /** + * @dev List a resource + * @template Resource The resource being listed + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The response returned by the list + */ + @doc("List {name} resources", Resource) + @get + @listsResource(Resource) + @armResourceList(Resource) + ListRoute< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse> + >(...ParentParameters, ...Parameters): Response | ErrorType; + + /** + * A synchronous resource action. + * @template Resource The resource being acted upon + * @template Request The request model for the action + * @template Response The response model for the action + * @template Parameters Optional. Additional parameters after the path parameters + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @armResourceAction(Resource) + @Private.enforceConstraint(Resource, Foundations.Resource) + @post + @returnsDoc("Azure operation completed successfully.") + ActionSync< + Resource extends Foundations.Resource, + Request extends TypeSpec.Reflection.Model | void, + Response extends TypeSpec.Reflection.Model | void, + Parameters extends {} = {} + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + + @doc("The content of the action request") + @bodyRoot + body: Request, + ): Response | ErrorType; + + /** + * A long-running resource action. + * @template Resource The resource being acted upon + * @template Request The request model for the action + * @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response + * @template Response The response model for the action + * @template Parameters Optional. Additional parameters after the path parameters + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "ARM" + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "template" + @autoRoute + @armResourceAction(Resource) + @Private.enforceConstraint(Resource, Foundations.Resource) + @post + @returnsDoc("Azure operation completed successfully.") + ActionAsync< + Resource extends Foundations.Resource, + Request extends TypeSpec.Reflection.Model | void, + Result extends TypeSpec.Reflection.Model | void, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader< + Azure.Core.StatusMonitorPollingOptions, + Result, + string + > & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} | void = ArmAcceptedLroResponse< + "Resource operation accepted.", + LroHeaders + > | Result + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + + @doc("The content of the action request") + @bodyRoot + body: Request, + ): Response | ErrorType; + } + /** + * @dev Get the provider namespace key-value pair + * @template Resource Optional. The resource to get the provider namespace for. + */ + model Provider { + ...ProviderNamespace; + } +} diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/main.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/main.tsp index 835aad0d1d..1e0442773f 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/main.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/main.tsp @@ -54,6 +54,7 @@ import "./CloudService.tsp"; import "./OSVersion.tsp"; import "./OSFamily.tsp"; import "./routes.tsp"; +import "./legacy.tsp"; using TypeSpec.Rest; using TypeSpec.Http; diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/routes.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/routes.tsp index d745608749..ef3ea2369e 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/routes.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/routes.tsp @@ -557,217 +557,6 @@ interface VirtualMachineRunCommandsOperations { ): ArmResponse | ErrorResponse; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface VirtualMachineScaleSetVMRunCommandsOperations { - /** - * The operation to create or update the VMSS VM run command. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachineScaleSetVMRunCommands_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string, - - /** - * The instance ID of the virtual machine. - */ - @path - instanceId: string, - - /** - * The name of the virtual machine run command. - */ - @path - runCommandName: string, - - ...SubscriptionIdParameter, - - /** - * Parameters supplied to the Create Virtual Machine RunCommand operation. - */ - @bodyRoot - runCommand: VirtualMachineRunCommand, - - /** - * Accept header - */ - @header - accept: "application/json, text/json", - ): ArmResponse | ErrorResponse; - - /** - * The operation to update the VMSS VM run command. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachineScaleSetVMRunCommands_Update") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}") - @patch - update( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string, - - /** - * The instance ID of the virtual machine. - */ - @path - instanceId: string, - - /** - * The name of the virtual machine run command. - */ - @path - runCommandName: string, - - ...SubscriptionIdParameter, - - /** - * Parameters supplied to the Update Virtual Machine RunCommand operation. - */ - @bodyRoot - runCommand: VirtualMachineRunCommandUpdate, - - /** - * Accept header - */ - @header - accept: "application/json, text/json", - ): ArmResponse | ErrorResponse; - - /** - * The operation to delete the VMSS VM run command. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachineScaleSetVMRunCommands_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}") - @delete - delete( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string, - - /** - * The instance ID of the virtual machine. - */ - @path - instanceId: string, - - /** - * The name of the virtual machine run command. - */ - @path - runCommandName: string, - - ...SubscriptionIdParameter, - - /** - * Accept header - */ - @header - accept: "application/json, text/json", - ): OkResponse | ArmAcceptedResponse | ErrorResponse; - - /** - * The operation to get the VMSS VM run command. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachineScaleSetVMRunCommands_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}") - @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string, - - /** - * The instance ID of the virtual machine. - */ - @path - instanceId: string, - - /** - * The name of the virtual machine run command. - */ - @path - runCommandName: string, - - /** - * The expand expression to apply on the operation. - */ - @query("$expand") - $expand?: string, - - ...SubscriptionIdParameter, - - /** - * Accept header - */ - @header - accept: "application/json, text/json", - ): ArmResponse | ErrorResponse; - - /** - * The operation to get all run commands of an instance in Virtual Machine Scaleset. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("VirtualMachineScaleSetVMRunCommands_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands") - @get - list( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string, - - /** - * The instance ID of the virtual machine. - */ - @path - instanceId: string, - - /** - * The expand expression to apply on the operation. - */ - @query("$expand") - $expand?: string, - - ...SubscriptionIdParameter, - - /** - * Accept header - */ - @header - accept: "application/json, text/json", - ): ArmResponse> | ErrorResponse; -} - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" interface ResourceSkusOperations { /** diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/resources.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/resources.json index bcc0a55b77..f83b849820 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/resources.json @@ -1,2934 +1,3572 @@ { "Resources": { - "ComputeResource": { - "Name": "ComputeResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - "Method": "GET", - "OperationID": "Compute_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - "Method": "PUT", - "OperationID": "Compute_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - "Method": "PATCH", - "OperationID": "Compute_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - "Method": "DELETE", - "OperationID": "Compute_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specified Machine Learning compute." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes", - "Method": "GET", - "OperationID": "Compute_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + "ComputeResource": [ + { + "Name": "ComputeResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + "Method": "GET", + "OperationID": "Compute_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + "Method": "PUT", + "OperationID": "Compute_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + "Method": "PATCH", + "OperationID": "Compute_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + "Method": "DELETE", + "OperationID": "Compute_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specified Machine Learning compute." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes", + "Method": "GET", + "OperationID": "Compute_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets computes in specified workspace." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "UpdateCustomServices", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/customServices", + "Method": "POST", + "OperationID": "Compute_UpdateCustomServices", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the custom services list. The list of custom services provided shall be overwritten" }, - "Description": "Gets computes in specified workspace." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "UpdateCustomServices", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/customServices", - "Method": "POST", - "OperationID": "Compute_UpdateCustomServices", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the custom services list. The list of custom services provided shall be overwritten" - }, - { - "Name": "ListNodes", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes", - "Method": "POST", - "OperationID": "Compute_ListNodes", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListNodes", - "ItemName": "nodes", - "NextLinkName": "nextLink" + { + "Name": "ListNodes", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes", + "Method": "POST", + "OperationID": "Compute_ListNodes", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListNodes", + "ItemName": "nodes", + "NextLinkName": "nextLink" + }, + "Description": "Get the details (e.g IP address, port etc) of all the compute nodes in the compute." }, - "Description": "Get the details (e.g IP address, port etc) of all the compute nodes in the compute." - }, - { - "Name": "ListKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys", - "Method": "POST", - "OperationID": "Compute_ListKeys", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets secrets related to Machine Learning compute (storage keys, service credentials, etc)." - }, - { - "Name": "Start", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start", - "Method": "POST", - "OperationID": "Compute_Start", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Posts a start action to a compute instance" - }, - { - "Name": "Stop", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/stop", - "Method": "POST", - "OperationID": "Compute_Stop", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Posts a stop action to a compute instance" - }, - { - "Name": "Restart", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/restart", - "Method": "POST", - "OperationID": "Compute_Restart", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Posts a restart action to a compute instance" - }, - { - "Name": "UpdateIdleShutdownSetting", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/updateIdleShutdownSetting", - "Method": "POST", - "OperationID": "Compute_UpdateIdleShutdownSetting", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the idle shutdown setting of a compute instance." - } - ], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "ComputeResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/computes", - "ResourceKey": "computeName", - "ResourceKeySegment": "computes", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CodeContainerResourceFixMe": { - "Name": "CodeContainerResourceFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CodeContainerResource": { - "Name": "CodeContainerResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", - "Method": "GET", - "OperationID": "RegistryCodeContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get Code container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", - "Method": "PUT", - "OperationID": "RegistryCodeContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update Code container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", - "Method": "PUT", - "OperationID": "RegistryCodeContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update Code container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", - "Method": "DELETE", - "OperationID": "RegistryCodeContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete Code container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes", - "Method": "GET", - "OperationID": "RegistryCodeContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys", + "Method": "POST", + "OperationID": "Compute_ListKeys", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets secrets related to Machine Learning compute (storage keys, service credentials, etc)." }, - "Description": "List containers." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Registry" - ], - "SwaggerModelName": "CodeContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/codes", - "ResourceKey": "codeName", - "ResourceKeySegment": "codes", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CodeVersionResourceFixMe": { - "Name": "CodeVersionResourceFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CodeVersionResource": { - "Name": "CodeVersionResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", - "Method": "GET", - "OperationID": "RegistryCodeVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", - "Method": "PUT", - "OperationID": "RegistryCodeVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", - "Method": "PUT", - "OperationID": "RegistryCodeVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", - "Method": "DELETE", - "OperationID": "RegistryCodeVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions", - "Method": "GET", - "OperationID": "RegistryCodeVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "Start", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start", + "Method": "POST", + "OperationID": "Compute_Start", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Posts a start action to a compute instance" }, - "Description": "List versions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "CreateOrGetStartPendingUpload", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}/startPendingUpload", - "Method": "POST", - "OperationID": "RegistryCodeVersions_CreateOrGetStartPendingUpload", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Generate a storage location and credential for the client to upload a code asset to." - } - ], - "Parents": [ - "CodeContainerResource" - ], - "SwaggerModelName": "CodeVersionResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/codes/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ComponentContainerResourceFixMe": { - "Name": "ComponentContainerResourceFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ComponentContainerResource": { - "Name": "ComponentContainerResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", - "Method": "GET", - "OperationID": "RegistryComponentContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", - "Method": "PUT", - "OperationID": "RegistryComponentContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", - "Method": "PUT", - "OperationID": "RegistryComponentContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", - "Method": "DELETE", - "OperationID": "RegistryComponentContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components", - "Method": "GET", - "OperationID": "RegistryComponentContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "Stop", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/stop", + "Method": "POST", + "OperationID": "Compute_Stop", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Posts a stop action to a compute instance" }, - "Description": "List containers." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Registry" - ], - "SwaggerModelName": "ComponentContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/components", - "ResourceKey": "componentName", - "ResourceKeySegment": "components", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ComponentVersionResourceFixMe": { - "Name": "ComponentVersionResourceFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ComponentVersionResource": { - "Name": "ComponentVersionResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", - "Method": "GET", - "OperationID": "RegistryComponentVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", - "Method": "PUT", - "OperationID": "RegistryComponentVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", - "Method": "PUT", - "OperationID": "RegistryComponentVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", - "Method": "DELETE", - "OperationID": "RegistryComponentVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions", - "Method": "GET", - "OperationID": "RegistryComponentVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "Restart", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/restart", + "Method": "POST", + "OperationID": "Compute_Restart", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Posts a restart action to a compute instance" }, - "Description": "List versions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ComponentContainerResource" - ], - "SwaggerModelName": "ComponentVersionResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/components/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DataContainerResourceFixMe": { - "Name": "DataContainerResourceFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DataContainerResource": { - "Name": "DataContainerResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", - "Method": "GET", - "OperationID": "RegistryDataContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", - "Method": "PUT", - "OperationID": "RegistryDataContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", - "Method": "PUT", - "OperationID": "RegistryDataContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", - "Method": "DELETE", - "OperationID": "RegistryDataContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data", - "Method": "GET", - "OperationID": "RegistryDataContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "UpdateIdleShutdownSetting", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/updateIdleShutdownSetting", + "Method": "POST", + "OperationID": "Compute_UpdateIdleShutdownSetting", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates the idle shutdown setting of a compute instance." + } + ], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "ComputeResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/computes", + "ResourceKey": "computeName", + "ResourceKeySegment": "computes", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CodeContainerResource": [ + { + "Name": "CodeContainerResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", + "Method": "GET", + "OperationID": "RegistryCodeContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Code container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", + "Method": "PUT", + "OperationID": "RegistryCodeContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update Code container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", + "Method": "PUT", + "OperationID": "RegistryCodeContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update Code container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", + "Method": "DELETE", + "OperationID": "RegistryCodeContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete Code container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes", + "Method": "GET", + "OperationID": "RegistryCodeContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Registry" + ], + "SwaggerModelName": "CodeContainerResource", + "ResourceType": "Microsoft.MachineLearningServices/registries/codes", + "ResourceKey": "codeName", + "ResourceKeySegment": "codes", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "CodeContainerResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + "Method": "GET", + "OperationID": "CodeContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + "Method": "PUT", + "OperationID": "CodeContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + "Method": "PUT", + "OperationID": "CodeContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + "Method": "DELETE", + "OperationID": "CodeContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes", + "Method": "GET", + "OperationID": "CodeContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "CodeContainerResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/codes", + "ResourceKey": "name", + "ResourceKeySegment": "codes", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "CodeVersionResource": [ + { + "Name": "CodeVersionResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", + "Method": "GET", + "OperationID": "RegistryCodeVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", + "Method": "PUT", + "OperationID": "RegistryCodeVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", + "Method": "PUT", + "OperationID": "RegistryCodeVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", + "Method": "DELETE", + "OperationID": "RegistryCodeVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions", + "Method": "GET", + "OperationID": "RegistryCodeVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "CreateOrGetStartPendingUpload", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}/startPendingUpload", + "Method": "POST", + "OperationID": "RegistryCodeVersions_CreateOrGetStartPendingUpload", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Generate a storage location and credential for the client to upload a code asset to." + } + ], + "Parents": [ + "CodeContainerResource" + ], + "SwaggerModelName": "CodeVersionResource", + "ResourceType": "Microsoft.MachineLearningServices/registries/codes/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "CodeVersionResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + "Method": "GET", + "OperationID": "CodeVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "CodeVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "CodeVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + "Method": "DELETE", + "OperationID": "CodeVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions", + "Method": "GET", + "OperationID": "CodeVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "CreateOrGetStartPendingUpload", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}/startPendingUpload", + "Method": "POST", + "OperationID": "CodeVersions_CreateOrGetStartPendingUpload", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Generate a storage location and credential for the client to upload a code asset to." + } + ], + "Parents": [ + "CodeContainerResource" + ], + "SwaggerModelName": "CodeVersionResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/codes/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ComponentContainerResource": [ + { + "Name": "ComponentContainerResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", + "Method": "GET", + "OperationID": "RegistryComponentContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", + "Method": "PUT", + "OperationID": "RegistryComponentContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", + "Method": "PUT", + "OperationID": "RegistryComponentContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", + "Method": "DELETE", + "OperationID": "RegistryComponentContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components", + "Method": "GET", + "OperationID": "RegistryComponentContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Registry" + ], + "SwaggerModelName": "ComponentContainerResource", + "ResourceType": "Microsoft.MachineLearningServices/registries/components", + "ResourceKey": "componentName", + "ResourceKeySegment": "components", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "ComponentContainerResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", + "Method": "GET", + "OperationID": "ComponentContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", + "Method": "PUT", + "OperationID": "ComponentContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", + "Method": "PUT", + "OperationID": "ComponentContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", + "Method": "DELETE", + "OperationID": "ComponentContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components", + "Method": "GET", + "OperationID": "ComponentContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List component containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "ComponentContainerResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/components", + "ResourceKey": "name", + "ResourceKeySegment": "components", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ComponentVersionResource": [ + { + "Name": "ComponentVersionResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", + "Method": "GET", + "OperationID": "RegistryComponentVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", + "Method": "PUT", + "OperationID": "RegistryComponentVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", + "Method": "PUT", + "OperationID": "RegistryComponentVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", + "Method": "DELETE", + "OperationID": "RegistryComponentVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions", + "Method": "GET", + "OperationID": "RegistryComponentVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ComponentContainerResource" + ], + "SwaggerModelName": "ComponentVersionResource", + "ResourceType": "Microsoft.MachineLearningServices/registries/components/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "ComponentVersionResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", + "Method": "GET", + "OperationID": "ComponentVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "ComponentVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "ComponentVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", + "Method": "DELETE", + "OperationID": "ComponentVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions", + "Method": "GET", + "OperationID": "ComponentVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List component versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ComponentContainerResource" + ], + "SwaggerModelName": "ComponentVersionResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/components/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DataContainerResource": [ + { + "Name": "DataContainerResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", + "Method": "GET", + "OperationID": "RegistryDataContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", + "Method": "PUT", + "OperationID": "RegistryDataContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", + "Method": "PUT", + "OperationID": "RegistryDataContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", + "Method": "DELETE", + "OperationID": "RegistryDataContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data", + "Method": "GET", + "OperationID": "RegistryDataContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Data containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Registry" + ], + "SwaggerModelName": "DataContainerResource", + "ResourceType": "Microsoft.MachineLearningServices/registries/data", + "ResourceKey": "name", + "ResourceKeySegment": "data", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "DataContainerResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + "Method": "GET", + "OperationID": "DataContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + "Method": "PUT", + "OperationID": "DataContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + "Method": "PUT", + "OperationID": "DataContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + "Method": "DELETE", + "OperationID": "DataContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data", + "Method": "GET", + "OperationID": "DataContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List data containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "DataContainerResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/data", + "ResourceKey": "name", + "ResourceKeySegment": "data", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DataVersionBaseResource": [ + { + "Name": "DataVersionBaseResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", + "Method": "GET", + "OperationID": "RegistryDataVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "RegistryDataVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "RegistryDataVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", + "Method": "DELETE", + "OperationID": "RegistryDataVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions", + "Method": "GET", + "OperationID": "RegistryDataVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List data versions in the data container" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "CreateOrGetStartPendingUpload", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}/startPendingUpload", + "Method": "POST", + "OperationID": "RegistryDataVersions_CreateOrGetStartPendingUpload", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Generate a storage location and credential for the client to upload a data asset to." + } + ], + "Parents": [ + "DataContainerResource" + ], + "SwaggerModelName": "DataVersionBaseResource", + "ResourceType": "Microsoft.MachineLearningServices/registries/data/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "DataVersionBaseResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + "Method": "GET", + "OperationID": "DataVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "DataVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "DataVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + "Method": "DELETE", + "OperationID": "DataVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions", + "Method": "GET", + "OperationID": "DataVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List data versions in the data container" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "DataContainerResource" + ], + "SwaggerModelName": "DataVersionBaseResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/data/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "EnvironmentContainerResource": [ + { + "Name": "EnvironmentContainerResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", + "Method": "GET", + "OperationID": "RegistryEnvironmentContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", + "Method": "PUT", + "OperationID": "RegistryEnvironmentContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", + "Method": "PUT", + "OperationID": "RegistryEnvironmentContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", + "Method": "DELETE", + "OperationID": "RegistryEnvironmentContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments", + "Method": "GET", + "OperationID": "RegistryEnvironmentContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List environment containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Registry" + ], + "SwaggerModelName": "EnvironmentContainerResource", + "ResourceType": "Microsoft.MachineLearningServices/registries/environments", + "ResourceKey": "environmentName", + "ResourceKeySegment": "environments", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "EnvironmentContainerResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + "Method": "GET", + "OperationID": "EnvironmentContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + "Method": "PUT", + "OperationID": "EnvironmentContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + "Method": "PUT", + "OperationID": "EnvironmentContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + "Method": "DELETE", + "OperationID": "EnvironmentContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments", + "Method": "GET", + "OperationID": "EnvironmentContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List environment containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "EnvironmentContainerResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/environments", + "ResourceKey": "name", + "ResourceKeySegment": "environments", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "EnvironmentVersionResource": [ + { + "Name": "EnvironmentVersionResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", + "Method": "GET", + "OperationID": "RegistryEnvironmentVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", + "Method": "PUT", + "OperationID": "RegistryEnvironmentVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", + "Method": "PUT", + "OperationID": "RegistryEnvironmentVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", + "Method": "DELETE", + "OperationID": "RegistryEnvironmentVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions", + "Method": "GET", + "OperationID": "RegistryEnvironmentVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "EnvironmentContainerResource" + ], + "SwaggerModelName": "EnvironmentVersionResource", + "ResourceType": "Microsoft.MachineLearningServices/registries/environments/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "EnvironmentVersionResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + "Method": "GET", + "OperationID": "EnvironmentVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "EnvironmentVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates an EnvironmentVersion." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "EnvironmentVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates an EnvironmentVersion." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + "Method": "DELETE", + "OperationID": "EnvironmentVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions", + "Method": "GET", + "OperationID": "EnvironmentVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "EnvironmentContainerResource" + ], + "SwaggerModelName": "EnvironmentVersionResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/environments/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ModelContainerResource": [ + { + "Name": "ModelContainerResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", + "Method": "GET", + "OperationID": "RegistryModelContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", + "Method": "PUT", + "OperationID": "RegistryModelContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update model container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", + "Method": "PUT", + "OperationID": "RegistryModelContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update model container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", + "Method": "DELETE", + "OperationID": "RegistryModelContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models", + "Method": "GET", + "OperationID": "RegistryModelContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List model containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Registry" + ], + "SwaggerModelName": "ModelContainerResource", + "ResourceType": "Microsoft.MachineLearningServices/registries/models", + "ResourceKey": "modelName", + "ResourceKeySegment": "models", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "ModelContainerResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + "Method": "GET", + "OperationID": "ModelContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + "Method": "PUT", + "OperationID": "ModelContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + "Method": "PUT", + "OperationID": "ModelContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + "Method": "DELETE", + "OperationID": "ModelContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models", + "Method": "GET", + "OperationID": "ModelContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List model containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "ModelContainerResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/models", + "ResourceKey": "name", + "ResourceKeySegment": "models", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ModelVersionResource": [ + { + "Name": "ModelVersionResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", + "Method": "GET", + "OperationID": "RegistryModelVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", + "Method": "PUT", + "OperationID": "RegistryModelVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", + "Method": "PUT", + "OperationID": "RegistryModelVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", + "Method": "DELETE", + "OperationID": "RegistryModelVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions", + "Method": "GET", + "OperationID": "RegistryModelVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Package", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/package", + "Method": "POST", + "OperationID": "RegistryModelVersions_Package", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Model Version Package operation." }, - "Description": "List Data containers." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Registry" - ], - "SwaggerModelName": "DataContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/data", - "ResourceKey": "name", - "ResourceKeySegment": "data", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DataVersionBaseResourceFixMe": { - "Name": "DataVersionBaseResourceFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DataVersionBaseResource": { - "Name": "DataVersionBaseResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", - "Method": "GET", - "OperationID": "RegistryDataVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "RegistryDataVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "RegistryDataVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", - "Method": "DELETE", - "OperationID": "RegistryDataVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions", - "Method": "GET", - "OperationID": "RegistryDataVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "CreateOrGetStartPendingUpload", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/startPendingUpload", + "Method": "POST", + "OperationID": "RegistryModelVersions_CreateOrGetStartPendingUpload", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Generate a storage location and credential for the client to upload a model asset to." + } + ], + "Parents": [ + "ModelContainerResource" + ], + "SwaggerModelName": "ModelVersionResource", + "ResourceType": "Microsoft.MachineLearningServices/registries/models/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + { + "Name": "ModelVersionResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + "Method": "GET", + "OperationID": "ModelVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "ModelVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "ModelVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + "Method": "DELETE", + "OperationID": "ModelVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions", + "Method": "GET", + "OperationID": "ModelVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List model versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Package", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}/package", + "Method": "POST", + "OperationID": "ModelVersions_Package", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Model Version Package operation." + } + ], + "Parents": [ + "ModelContainerResource" + ], + "SwaggerModelName": "ModelVersionResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/models/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "BatchEndpointTrackedResource": [ + { + "Name": "BatchEndpointTrackedResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + "Method": "GET", + "OperationID": "BatchEndpoints_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets a batch inference endpoint by name." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + "Method": "PUT", + "OperationID": "BatchEndpoints_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a batch inference endpoint (asynchronous)." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + "Method": "PATCH", + "OperationID": "BatchEndpoints_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a batch inference endpoint (asynchronous)." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + "Method": "DELETE", + "OperationID": "BatchEndpoints_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete Batch Inference Endpoint (asynchronous)." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints", + "Method": "GET", + "OperationID": "BatchEndpoints_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists Batch inference endpoint in the workspace." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/listkeys", + "Method": "POST", + "OperationID": "BatchEndpoints_ListKeys", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Lists batch Inference Endpoint keys." + } + ], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "BatchEndpointTrackedResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/batchEndpoints", + "ResourceKey": "endpointName", + "ResourceKeySegment": "batchEndpoints", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "BatchDeploymentTrackedResource": [ + { + "Name": "BatchDeploymentTrackedResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + "Method": "GET", + "OperationID": "BatchDeployments_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets a batch inference deployment by id." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + "Method": "PUT", + "OperationID": "BatchDeployments_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates/updates a batch inference deployment (asynchronous)." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + "Method": "PATCH", + "OperationID": "BatchDeployments_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a batch inference deployment (asynchronous)." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + "Method": "DELETE", + "OperationID": "BatchDeployments_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete Batch Inference deployment (asynchronous)." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments", + "Method": "GET", + "OperationID": "BatchDeployments_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists Batch inference deployments in the workspace." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "BatchEndpointTrackedResource" + ], + "SwaggerModelName": "BatchDeploymentTrackedResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments", + "ResourceKey": "deploymentName", + "ResourceKeySegment": "deployments", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DatastoreResource": [ + { + "Name": "DatastoreResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + "Method": "GET", + "OperationID": "Datastores_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get datastore." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + "Method": "PUT", + "OperationID": "Datastores_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update datastore." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + "Method": "PUT", + "OperationID": "Datastores_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update datastore." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + "Method": "DELETE", + "OperationID": "Datastores_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete datastore." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores", + "Method": "GET", + "OperationID": "Datastores_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List datastores." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListSecrets", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}/listSecrets", + "Method": "POST", + "OperationID": "Datastores_ListSecrets", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get datastore secrets." + } + ], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "DatastoreResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/datastores", + "ResourceKey": "name", + "ResourceKeySegment": "datastores", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "FeaturesetContainer": [ + { + "Name": "FeaturesetContainer", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", + "Method": "GET", + "OperationID": "FeaturesetContainers_GetEntity", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", + "Method": "PUT", + "OperationID": "FeaturesetContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", + "Method": "PUT", + "OperationID": "FeaturesetContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", + "Method": "DELETE", + "OperationID": "FeaturesetContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets", + "Method": "GET", + "OperationID": "FeaturesetContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List featurestore entity containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "FeaturesetContainer", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/featuresets", + "ResourceKey": "name", + "ResourceKeySegment": "featuresets", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Feature": [ + { + "Name": "Feature", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName}", + "Method": "GET", + "OperationID": "Features_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get feature." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features", + "Method": "GET", + "OperationID": "Features_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Features." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "Feature", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/featuresets/versions/features", + "ResourceKey": "featureName", + "ResourceKeySegment": "features", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "FeaturesetVersion": [ + { + "Name": "FeaturesetVersion", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", + "Method": "GET", + "OperationID": "FeaturesetVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "FeaturesetVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "FeaturesetVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", + "Method": "DELETE", + "OperationID": "FeaturesetVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions", + "Method": "GET", + "OperationID": "FeaturesetVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Backfill", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/backfill", + "Method": "POST", + "OperationID": "FeaturesetVersions_Backfill", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Backfill." }, - "Description": "List data versions in the data container" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "CreateOrGetStartPendingUpload", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}/startPendingUpload", - "Method": "POST", - "OperationID": "RegistryDataVersions_CreateOrGetStartPendingUpload", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Generate a storage location and credential for the client to upload a data asset to." - } - ], - "Parents": [ - "DataContainerResource" - ], - "SwaggerModelName": "DataVersionBaseResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/data/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "EnvironmentContainerResourceFixMe": { - "Name": "EnvironmentContainerResourceFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "EnvironmentContainerResource": { - "Name": "EnvironmentContainerResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", - "Method": "GET", - "OperationID": "RegistryEnvironmentContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", - "Method": "PUT", - "OperationID": "RegistryEnvironmentContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", - "Method": "PUT", - "OperationID": "RegistryEnvironmentContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", - "Method": "DELETE", - "OperationID": "RegistryEnvironmentContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments", - "Method": "GET", - "OperationID": "RegistryEnvironmentContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListMaterializationJobs", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/listMaterializationJobs", + "Method": "POST", + "OperationID": "FeaturesetVersions_ListMaterializationJobs", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListMaterializationJobs", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List materialization Jobs." + } + ], + "Parents": [ + "FeaturesetContainer" + ], + "SwaggerModelName": "FeaturesetVersion", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/featuresets/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "FeaturestoreEntityContainer": [ + { + "Name": "FeaturestoreEntityContainer", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", + "Method": "GET", + "OperationID": "FeaturestoreEntityContainers_GetEntity", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get container." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", + "Method": "PUT", + "OperationID": "FeaturestoreEntityContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", + "Method": "PUT", + "OperationID": "FeaturestoreEntityContainers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update container." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", + "Method": "DELETE", + "OperationID": "FeaturestoreEntityContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete container." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities", + "Method": "GET", + "OperationID": "FeaturestoreEntityContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List featurestore entity containers." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "FeaturestoreEntityContainer", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/featurestoreEntities", + "ResourceKey": "name", + "ResourceKeySegment": "featurestoreEntities", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "FeaturestoreEntityVersion": [ + { + "Name": "FeaturestoreEntityVersion", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", + "Method": "GET", + "OperationID": "FeaturestoreEntityVersions_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get version." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "FeaturestoreEntityVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", + "Method": "PUT", + "OperationID": "FeaturestoreEntityVersions_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update version." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", + "Method": "DELETE", + "OperationID": "FeaturestoreEntityVersions_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete version." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions", + "Method": "GET", + "OperationID": "FeaturestoreEntityVersions_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List versions." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "FeaturestoreEntityContainer" + ], + "SwaggerModelName": "FeaturestoreEntityVersion", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/featurestoreEntities/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "JobBaseResource": [ + { + "Name": "JobBaseResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + "Method": "GET", + "OperationID": "Jobs_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets a Job by name/id." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + "Method": "PUT", + "OperationID": "Jobs_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates and executes a Job." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + "Method": "PATCH", + "OperationID": "Jobs_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates a Job." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + "Method": "DELETE", + "OperationID": "Jobs_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a Job (asynchronous)." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs", + "Method": "GET", + "OperationID": "Jobs_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists Jobs in the workspace." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Cancel", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}/cancel", + "Method": "POST", + "OperationID": "Jobs_Cancel", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Cancels a Job (asynchronous)." + } + ], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "JobBaseResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/jobs", + "ResourceKey": "id", + "ResourceKeySegment": "jobs", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "LabelingJob": [ + { + "Name": "LabelingJob", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + "Method": "GET", + "OperationID": "LabelingJobs_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets a labeling job by name/id." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + "Method": "PUT", + "OperationID": "LabelingJobs_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates a labeling job (asynchronous)." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + "Method": "PUT", + "OperationID": "LabelingJobs_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates a labeling job (asynchronous)." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + "Method": "DELETE", + "OperationID": "LabelingJobs_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a labeling job." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs", + "Method": "GET", + "OperationID": "LabelingJobs_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists labeling jobs in the workspace." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ExportLabels", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels", + "Method": "POST", + "OperationID": "LabelingJobs_ExportLabels", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Export labels from a labeling job (asynchronous)." }, - "Description": "List environment containers." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Registry" - ], - "SwaggerModelName": "EnvironmentContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/environments", - "ResourceKey": "environmentName", - "ResourceKeySegment": "environments", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "EnvironmentVersionResourceFixMe": { - "Name": "EnvironmentVersionResourceFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "EnvironmentVersionResource": { - "Name": "EnvironmentVersionResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", - "Method": "GET", - "OperationID": "RegistryEnvironmentVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", - "Method": "PUT", - "OperationID": "RegistryEnvironmentVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", - "Method": "PUT", - "OperationID": "RegistryEnvironmentVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", - "Method": "DELETE", - "OperationID": "RegistryEnvironmentVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions", - "Method": "GET", - "OperationID": "RegistryEnvironmentVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "Pause", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/pause", + "Method": "POST", + "OperationID": "LabelingJobs_Pause", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Pause a labeling job." }, - "Description": "List versions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "EnvironmentContainerResource" - ], - "SwaggerModelName": "EnvironmentVersionResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/environments/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ModelContainerResourceFixMe": { - "Name": "ModelContainerResourceFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ModelContainerResource": { - "Name": "ModelContainerResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", - "Method": "GET", - "OperationID": "RegistryModelContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", - "Method": "PUT", - "OperationID": "RegistryModelContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update model container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", - "Method": "PUT", - "OperationID": "RegistryModelContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update model container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", - "Method": "DELETE", - "OperationID": "RegistryModelContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models", - "Method": "GET", - "OperationID": "RegistryModelContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "Resume", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/resume", + "Method": "POST", + "OperationID": "LabelingJobs_Resume", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Resume a labeling job (asynchronous)." + } + ], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "LabelingJob", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/labelingJobs", + "ResourceKey": "id", + "ResourceKeySegment": "labelingJobs", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "OnlineEndpointTrackedResource": [ + { + "Name": "OnlineEndpointTrackedResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + "Method": "GET", + "OperationID": "OnlineEndpoints_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Online Endpoint." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + "Method": "PUT", + "OperationID": "OnlineEndpoints_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update Online Endpoint (asynchronous)." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + "Method": "PATCH", + "OperationID": "OnlineEndpoints_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update Online Endpoint (asynchronous)." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + "Method": "DELETE", + "OperationID": "OnlineEndpoints_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete Online Endpoint (asynchronous)." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints", + "Method": "GET", + "OperationID": "OnlineEndpoints_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Online Endpoints." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/listKeys", + "Method": "POST", + "OperationID": "OnlineEndpoints_ListKeys", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "List EndpointAuthKeys for an Endpoint using Key-based authentication." }, - "Description": "List model containers." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Registry" - ], - "SwaggerModelName": "ModelContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/models", - "ResourceKey": "modelName", - "ResourceKeySegment": "models", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ModelVersionResourceFixMe": { - "Name": "ModelVersionResourceFixMe", - "GetOperations": [], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [], - "SwaggerModelName": "", - "ResourceType": "", - "ResourceKey": "", - "ResourceKeySegment": "", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ModelVersionResource": { - "Name": "ModelVersionResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", - "Method": "GET", - "OperationID": "RegistryModelVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", - "Method": "PUT", - "OperationID": "RegistryModelVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", - "Method": "PUT", - "OperationID": "RegistryModelVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", - "Method": "DELETE", - "OperationID": "RegistryModelVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions", - "Method": "GET", - "OperationID": "RegistryModelVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "RegenerateKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/regenerateKeys", + "Method": "POST", + "OperationID": "OnlineEndpoints_RegenerateKeys", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous)." }, - "Description": "List versions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Package", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/package", - "Method": "POST", - "OperationID": "RegistryModelVersions_Package", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Model Version Package operation." - }, - { - "Name": "CreateOrGetStartPendingUpload", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/startPendingUpload", - "Method": "POST", - "OperationID": "RegistryModelVersions_CreateOrGetStartPendingUpload", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Generate a storage location and credential for the client to upload a model asset to." - } - ], - "Parents": [ - "ModelContainerResource" - ], - "SwaggerModelName": "ModelVersionResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/models/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "BatchEndpointTrackedResource": { - "Name": "BatchEndpointTrackedResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", - "Method": "GET", - "OperationID": "BatchEndpoints_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets a batch inference endpoint by name." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", - "Method": "PUT", - "OperationID": "BatchEndpoints_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a batch inference endpoint (asynchronous)." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", - "Method": "PATCH", - "OperationID": "BatchEndpoints_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a batch inference endpoint (asynchronous)." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", - "Method": "DELETE", - "OperationID": "BatchEndpoints_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete Batch Inference Endpoint (asynchronous)." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints", - "Method": "GET", - "OperationID": "BatchEndpoints_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "GetToken", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/token", + "Method": "POST", + "OperationID": "OnlineEndpoints_GetToken", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieve a valid AML token for an Endpoint using AMLToken-based authentication." + } + ], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "OnlineEndpointTrackedResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/onlineEndpoints", + "ResourceKey": "endpointName", + "ResourceKeySegment": "onlineEndpoints", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "OnlineDeploymentTrackedResource": [ + { + "Name": "OnlineDeploymentTrackedResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + "Method": "GET", + "OperationID": "OnlineDeployments_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Inference Deployment Deployment." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + "Method": "PUT", + "OperationID": "OnlineDeployments_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update Inference Endpoint Deployment (asynchronous)." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + "Method": "PATCH", + "OperationID": "OnlineDeployments_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update Online Deployment (asynchronous)." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + "Method": "DELETE", + "OperationID": "OnlineDeployments_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete Inference Endpoint Deployment (asynchronous)." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments", + "Method": "GET", + "OperationID": "OnlineDeployments_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Inference Endpoint Deployments." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "GetLogs", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}/getLogs", + "Method": "POST", + "OperationID": "OnlineDeployments_GetLogs", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Polls an Endpoint operation." }, - "Description": "Lists Batch inference endpoint in the workspace." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/listkeys", - "Method": "POST", - "OperationID": "BatchEndpoints_ListKeys", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Lists batch Inference Endpoint keys." - } - ], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "BatchEndpointTrackedResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/batchEndpoints", - "ResourceKey": "endpointName", - "ResourceKeySegment": "batchEndpoints", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "BatchDeploymentTrackedResource": { - "Name": "BatchDeploymentTrackedResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", - "Method": "GET", - "OperationID": "BatchDeployments_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets a batch inference deployment by id." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", - "Method": "PUT", - "OperationID": "BatchDeployments_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates/updates a batch inference deployment (asynchronous)." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", - "Method": "PATCH", - "OperationID": "BatchDeployments_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a batch inference deployment (asynchronous)." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", - "Method": "DELETE", - "OperationID": "BatchDeployments_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete Batch Inference deployment (asynchronous)." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments", - "Method": "GET", - "OperationID": "BatchDeployments_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListSkus", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}/skus", + "Method": "GET", + "OperationID": "OnlineDeployments_ListSkus", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListSkus", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Inference Endpoint Deployment Skus." + } + ], + "Parents": [ + "OnlineEndpointTrackedResource" + ], + "SwaggerModelName": "OnlineDeploymentTrackedResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments", + "ResourceKey": "deploymentName", + "ResourceKeySegment": "deployments", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Schedule": [ + { + "Name": "Schedule", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", + "Method": "GET", + "OperationID": "Schedules_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get schedule." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", + "Method": "PUT", + "OperationID": "Schedules_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update schedule." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", + "Method": "PUT", + "OperationID": "Schedules_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update schedule." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", + "Method": "DELETE", + "OperationID": "Schedules_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete schedule." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules", + "Method": "GET", + "OperationID": "Schedules_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List schedules in specified workspace." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "Schedule", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/schedules", + "ResourceKey": "name", + "ResourceKeySegment": "schedules", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Registry": [ + { + "Name": "Registry", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + "Method": "GET", + "OperationID": "Registries_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get registry" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + "Method": "PUT", + "OperationID": "Registries_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update registry" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + "Method": "PATCH", + "OperationID": "Registries_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update tags" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + "Method": "DELETE", + "OperationID": "Registries_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete registry" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries", + "Method": "GET", + "OperationID": "Registries_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List registries" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/registries", + "Method": "GET", + "OperationID": "Registries_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List registries by subscription" + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "RemoveRegions", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/removeRegions", + "Method": "POST", + "OperationID": "Registries_RemoveRegions", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Remove regions from registry" + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "Registry", + "ResourceType": "Microsoft.MachineLearningServices/registries", + "ResourceKey": "registryName", + "ResourceKeySegment": "registries", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Workspace": [ + { + "Name": "Workspace", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + "Method": "GET", + "OperationID": "Workspaces_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the properties of the specified machine learning workspace." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + "Method": "PUT", + "OperationID": "Workspaces_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates a workspace with the specified parameters." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + "Method": "PATCH", + "OperationID": "Workspaces_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Updates a machine learning workspace with the specified parameters." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + "Method": "DELETE", + "OperationID": "Workspaces_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a machine learning workspace." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", + "Method": "GET", + "OperationID": "Workspaces_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the available machine learning workspaces under the specified resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", + "Method": "GET", + "OperationID": "Workspaces_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the available machine learning workspaces under the specified subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "List", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features", + "Method": "GET", + "OperationID": "WorkspaceFeatures_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all enabled features for a workspace" }, - "Description": "Lists Batch inference deployments in the workspace." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "BatchEndpointTrackedResource" - ], - "SwaggerModelName": "BatchDeploymentTrackedResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments", - "ResourceKey": "deploymentName", - "ResourceKeySegment": "deployments", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DatastoreResource": { - "Name": "DatastoreResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", - "Method": "GET", - "OperationID": "Datastores_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get datastore." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", - "Method": "PUT", - "OperationID": "Datastores_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update datastore." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", - "Method": "PUT", - "OperationID": "Datastores_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update datastore." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", - "Method": "DELETE", - "OperationID": "Datastores_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete datastore." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores", - "Method": "GET", - "OperationID": "Datastores_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "Diagnose", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/diagnose", + "Method": "POST", + "OperationID": "Workspaces_Diagnose", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Diagnose workspace setup issue." }, - "Description": "List datastores." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListSecrets", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}/listSecrets", - "Method": "POST", - "OperationID": "Datastores_ListSecrets", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get datastore secrets." - } - ], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "DatastoreResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/datastores", - "ResourceKey": "name", - "ResourceKeySegment": "datastores", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "FeaturesetContainer": { - "Name": "FeaturesetContainer", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", - "Method": "GET", - "OperationID": "FeaturesetContainers_GetEntity", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", - "Method": "PUT", - "OperationID": "FeaturesetContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", - "Method": "PUT", - "OperationID": "FeaturesetContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", - "Method": "DELETE", - "OperationID": "FeaturesetContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets", - "Method": "GET", - "OperationID": "FeaturesetContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys", + "Method": "POST", + "OperationID": "Workspaces_ListKeys", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry." }, - "Description": "List featurestore entity containers." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "FeaturesetContainer", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/featuresets", - "ResourceKey": "name", - "ResourceKeySegment": "featuresets", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Feature": { - "Name": "Feature", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName}", - "Method": "GET", - "OperationID": "Features_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get feature." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features", - "Method": "GET", - "OperationID": "Features_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListNotebookAccessToken", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", + "Method": "POST", + "OperationID": "Workspaces_ListNotebookAccessToken", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get Azure Machine Learning Workspace notebook access token" }, - "Description": "List Features." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "Feature", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/featuresets/versions/features", - "ResourceKey": "featureName", - "ResourceKeySegment": "features", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "FeaturesetVersion": { - "Name": "FeaturesetVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", - "Method": "GET", - "OperationID": "FeaturesetVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "FeaturesetVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "FeaturesetVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", - "Method": "DELETE", - "OperationID": "FeaturesetVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions", - "Method": "GET", - "OperationID": "FeaturesetVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListNotebookKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", + "Method": "POST", + "OperationID": "Workspaces_ListNotebookKeys", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Lists keys of Azure Machine Learning Workspaces notebook." }, - "Description": "List versions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Backfill", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/backfill", - "Method": "POST", - "OperationID": "FeaturesetVersions_Backfill", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Backfill." - }, - { - "Name": "ListMaterializationJobs", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/listMaterializationJobs", - "Method": "POST", - "OperationID": "FeaturesetVersions_ListMaterializationJobs", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListMaterializationJobs", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListStorageAccountKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", + "Method": "POST", + "OperationID": "Workspaces_ListStorageAccountKeys", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Lists keys of Azure Machine Learning Workspace's storage account." }, - "Description": "List materialization Jobs." - } - ], - "Parents": [ - "FeaturesetContainer" - ], - "SwaggerModelName": "FeaturesetVersion", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/featuresets/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "FeaturestoreEntityContainer": { - "Name": "FeaturestoreEntityContainer", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", - "Method": "GET", - "OperationID": "FeaturestoreEntityContainers_GetEntity", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", - "Method": "PUT", - "OperationID": "FeaturestoreEntityContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", - "Method": "PUT", - "OperationID": "FeaturestoreEntityContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", - "Method": "DELETE", - "OperationID": "FeaturestoreEntityContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities", - "Method": "GET", - "OperationID": "FeaturestoreEntityContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListOutboundNetworkDependenciesEndpoints", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", + "Method": "GET", + "OperationID": "Workspaces_ListOutboundNetworkDependenciesEndpoints", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListOutboundNetworkDependenciesEndpoints", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically." }, - "Description": "List featurestore entity containers." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "FeaturestoreEntityContainer", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/featurestoreEntities", - "ResourceKey": "name", - "ResourceKeySegment": "featurestoreEntities", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "FeaturestoreEntityVersion": { - "Name": "FeaturestoreEntityVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", - "Method": "GET", - "OperationID": "FeaturestoreEntityVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "FeaturestoreEntityVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "FeaturestoreEntityVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", - "Method": "DELETE", - "OperationID": "FeaturestoreEntityVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions", - "Method": "GET", - "OperationID": "FeaturestoreEntityVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "PrepareNotebook", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", + "Method": "POST", + "OperationID": "Workspaces_PrepareNotebook", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Prepare Azure Machine Learning Workspace's notebook resource" }, - "Description": "List versions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "FeaturestoreEntityContainer" - ], - "SwaggerModelName": "FeaturestoreEntityVersion", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/featurestoreEntities/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "JobBaseResource": { - "Name": "JobBaseResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", - "Method": "GET", - "OperationID": "Jobs_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets a Job by name/id." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", - "Method": "PUT", - "OperationID": "Jobs_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates and executes a Job." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", - "Method": "PATCH", - "OperationID": "Jobs_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates a Job." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", - "Method": "DELETE", - "OperationID": "Jobs_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a Job (asynchronous)." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs", - "Method": "GET", - "OperationID": "Jobs_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ResyncKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + "Method": "POST", + "OperationID": "Workspaces_ResyncKeys", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Resync all the keys associated with this workspace.This includes keys for the storage account, app insights and password for container registry" }, - "Description": "Lists Jobs in the workspace." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Cancel", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}/cancel", - "Method": "POST", - "OperationID": "Jobs_Cancel", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Cancels a Job (asynchronous)." - } - ], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "JobBaseResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/jobs", - "ResourceKey": "id", - "ResourceKeySegment": "jobs", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "LabelingJob": { - "Name": "LabelingJob", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", - "Method": "GET", - "OperationID": "LabelingJobs_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets a labeling job by name/id." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", - "Method": "PUT", - "OperationID": "LabelingJobs_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates a labeling job (asynchronous)." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", - "Method": "PUT", - "OperationID": "LabelingJobs_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates a labeling job (asynchronous)." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", - "Method": "DELETE", - "OperationID": "LabelingJobs_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a labeling job." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs", - "Method": "GET", - "OperationID": "LabelingJobs_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "List", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources", + "Method": "GET", + "OperationID": "PrivateLinkResources_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Called by Client (Portal, CLI, etc) to get available \"private link resources\" for the workspace.\r\nEach \"private link resource\" is a connection endpoint (IP address) to the resource.\r\nPre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution.\r\nOther RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc.\r\nDefined in the \"[NRP] Private Endpoint Design\" doc, topic \"GET API for GroupIds\"." }, - "Description": "Lists labeling jobs in the workspace." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ExportLabels", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels", - "Method": "POST", - "OperationID": "LabelingJobs_ExportLabels", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Export labels from a labeling job (asynchronous)." - }, - { - "Name": "Pause", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/pause", - "Method": "POST", - "OperationID": "LabelingJobs_Pause", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Pause a labeling job." - }, - { - "Name": "Resume", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/resume", - "Method": "POST", - "OperationID": "LabelingJobs_Resume", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Resume a labeling job (asynchronous)." - } - ], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "LabelingJob", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/labelingJobs", - "ResourceKey": "id", - "ResourceKeySegment": "labelingJobs", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "OnlineEndpointTrackedResource": { - "Name": "OnlineEndpointTrackedResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", - "Method": "GET", - "OperationID": "OnlineEndpoints_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get Online Endpoint." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", - "Method": "PUT", - "OperationID": "OnlineEndpoints_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update Online Endpoint (asynchronous)." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", - "Method": "PATCH", - "OperationID": "OnlineEndpoints_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update Online Endpoint (asynchronous)." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", - "Method": "DELETE", - "OperationID": "OnlineEndpoints_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete Online Endpoint (asynchronous)." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints", - "Method": "GET", - "OperationID": "OnlineEndpoints_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Online Endpoints." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/listKeys", - "Method": "POST", - "OperationID": "OnlineEndpoints_ListKeys", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "List EndpointAuthKeys for an Endpoint using Key-based authentication." - }, - { - "Name": "RegenerateKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/regenerateKeys", - "Method": "POST", - "OperationID": "OnlineEndpoints_RegenerateKeys", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous)." - }, - { - "Name": "GetToken", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/token", - "Method": "POST", - "OperationID": "OnlineEndpoints_GetToken", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieve a valid AML token for an Endpoint using AMLToken-based authentication." - } - ], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "OnlineEndpointTrackedResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/onlineEndpoints", - "ResourceKey": "endpointName", - "ResourceKeySegment": "onlineEndpoints", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "OnlineDeploymentTrackedResource": { - "Name": "OnlineDeploymentTrackedResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", - "Method": "GET", - "OperationID": "OnlineDeployments_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get Inference Deployment Deployment." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", - "Method": "PUT", - "OperationID": "OnlineDeployments_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update Inference Endpoint Deployment (asynchronous)." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", - "Method": "PATCH", - "OperationID": "OnlineDeployments_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update Online Deployment (asynchronous)." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", - "Method": "DELETE", - "OperationID": "OnlineDeployments_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete Inference Endpoint Deployment (asynchronous)." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments", - "Method": "GET", - "OperationID": "OnlineDeployments_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Inference Endpoint Deployments." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetLogs", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}/getLogs", - "Method": "POST", - "OperationID": "OnlineDeployments_GetLogs", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Polls an Endpoint operation." - }, - { - "Name": "ListSkus", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}/skus", - "Method": "GET", - "OperationID": "OnlineDeployments_ListSkus", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListSkus", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Inference Endpoint Deployment Skus." - } - ], - "Parents": [ - "OnlineEndpointTrackedResource" - ], - "SwaggerModelName": "OnlineDeploymentTrackedResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments", - "ResourceKey": "deploymentName", - "ResourceKeySegment": "deployments", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Schedule": { - "Name": "Schedule", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", - "Method": "GET", - "OperationID": "Schedules_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get schedule." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", - "Method": "PUT", - "OperationID": "Schedules_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update schedule." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", - "Method": "PUT", - "OperationID": "Schedules_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update schedule." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", - "Method": "DELETE", - "OperationID": "Schedules_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete schedule." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules", - "Method": "GET", - "OperationID": "Schedules_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List schedules in specified workspace." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "Schedule", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/schedules", - "ResourceKey": "name", - "ResourceKeySegment": "schedules", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Registry": { - "Name": "Registry", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", - "Method": "GET", - "OperationID": "Registries_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get registry" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", - "Method": "PUT", - "OperationID": "Registries_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update registry" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", - "Method": "PATCH", - "OperationID": "Registries_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update tags" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", - "Method": "DELETE", - "OperationID": "Registries_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete registry" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries", - "Method": "GET", - "OperationID": "Registries_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List registries" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/registries", - "Method": "GET", - "OperationID": "Registries_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List registries by subscription" - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "RemoveRegions", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/removeRegions", - "Method": "POST", - "OperationID": "Registries_RemoveRegions", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Remove regions from registry" - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "Registry", - "ResourceType": "Microsoft.MachineLearningServices/registries", - "ResourceKey": "registryName", - "ResourceKeySegment": "registries", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Workspace": { - "Name": "Workspace", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", - "Method": "GET", - "OperationID": "Workspaces_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the properties of the specified machine learning workspace." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", - "Method": "PUT", - "OperationID": "Workspaces_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates a workspace with the specified parameters." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", - "Method": "PATCH", - "OperationID": "Workspaces_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Updates a machine learning workspace with the specified parameters." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", - "Method": "DELETE", - "OperationID": "Workspaces_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a machine learning workspace." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", - "Method": "GET", - "OperationID": "Workspaces_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all the available machine learning workspaces under the specified resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", - "Method": "GET", - "OperationID": "Workspaces_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all the available machine learning workspaces under the specified subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "List", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features", - "Method": "GET", - "OperationID": "WorkspaceFeatures_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all enabled features for a workspace" - }, - { - "Name": "Diagnose", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/diagnose", - "Method": "POST", - "OperationID": "Workspaces_Diagnose", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Diagnose workspace setup issue." - }, - { - "Name": "ListKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys", - "Method": "POST", - "OperationID": "Workspaces_ListKeys", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry." - }, - { - "Name": "ListNotebookAccessToken", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", - "Method": "POST", - "OperationID": "Workspaces_ListNotebookAccessToken", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get Azure Machine Learning Workspace notebook access token" - }, - { - "Name": "ListNotebookKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", - "Method": "POST", - "OperationID": "Workspaces_ListNotebookKeys", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Lists keys of Azure Machine Learning Workspaces notebook." - }, - { - "Name": "ListStorageAccountKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", - "Method": "POST", - "OperationID": "Workspaces_ListStorageAccountKeys", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Lists keys of Azure Machine Learning Workspace's storage account." - }, - { - "Name": "ListOutboundNetworkDependenciesEndpoints", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", - "Method": "GET", - "OperationID": "Workspaces_ListOutboundNetworkDependenciesEndpoints", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListOutboundNetworkDependenciesEndpoints", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically." - }, - { - "Name": "PrepareNotebook", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", - "Method": "POST", - "OperationID": "Workspaces_PrepareNotebook", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Prepare Azure Machine Learning Workspace's notebook resource" - }, - { - "Name": "ResyncKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", - "Method": "POST", - "OperationID": "Workspaces_ResyncKeys", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Resync all the keys associated with this workspace.This includes keys for the storage account, app insights and password for container registry" - }, - { - "Name": "List", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources", - "Method": "GET", - "OperationID": "PrivateLinkResources_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Called by Client (Portal, CLI, etc) to get available \"private link resources\" for the workspace.\r\nEach \"private link resource\" is a connection endpoint (IP address) to the resource.\r\nPre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution.\r\nOther RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc.\r\nDefined in the \"[NRP] Private Endpoint Design\" doc, topic \"GET API for GroupIds\"." - }, - { - "Name": "ProvisionManagedNetwork", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/provisionManagedNetwork", - "Method": "POST", - "OperationID": "ManagedNetworkProvisions_ProvisionManagedNetwork", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Provisions the managed network of a machine learning workspace." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "Workspace", - "ResourceType": "Microsoft.MachineLearningServices/workspaces", - "ResourceKey": "workspaceName", - "ResourceKeySegment": "workspaces", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "WorkspaceConnectionPropertiesV2BasicResource": { - "Name": "WorkspaceConnectionPropertiesV2BasicResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", - "Method": "GET", - "OperationID": "WorkspaceConnections_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Lists machine learning workspaces connections by name." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", - "Method": "PUT", - "OperationID": "WorkspaceConnections_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update machine learning workspaces connections under the specified workspace." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", - "Method": "PATCH", - "OperationID": "WorkspaceConnections_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update machine learning workspaces connections under the specified workspace." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", - "Method": "DELETE", - "OperationID": "WorkspaceConnections_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete machine learning workspaces connections by name." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", - "Method": "GET", - "OperationID": "WorkspaceConnections_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all the available machine learning workspaces connections under the specified workspace." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListSecrets", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/listsecrets", - "Method": "POST", - "OperationID": "WorkspaceConnections_ListSecrets", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "List all the secrets of a machine learning workspaces connections." - } - ], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "WorkspaceConnectionPropertiesV2BasicResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/connections", - "ResourceKey": "connectionName", - "ResourceKeySegment": "connections", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "OutboundRuleBasicResource": { - "Name": "OutboundRuleBasicResource", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", - "Method": "GET", - "OperationID": "ManagedNetworkSettingsRule_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets an outbound rule from the managed network of a machine learning workspace." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", - "Method": "PUT", - "OperationID": "ManagedNetworkSettingsRule_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates an outbound rule in the managed network of a machine learning workspace." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", - "Method": "PUT", - "OperationID": "ManagedNetworkSettingsRule_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates an outbound rule in the managed network of a machine learning workspace." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", - "Method": "DELETE", - "OperationID": "ManagedNetworkSettingsRule_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes an outbound rule from the managed network of a machine learning workspace." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules", - "Method": "GET", - "OperationID": "ManagedNetworkSettingsRule_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the managed network outbound rules for a machine learning workspace." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "OutboundRuleBasicResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/outboundRules", - "ResourceKey": "ruleName", - "ResourceKeySegment": "outboundRules", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "PrivateEndpointConnection": { - "Name": "PrivateEndpointConnection", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "GET", - "OperationID": "PrivateEndpointConnections_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Called by end-users to get a PE connection." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "PUT", - "OperationID": "PrivateEndpointConnections_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Called by end-users to approve or reject a PE connection.\r\nThis method must validate and forward the call to NRP." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "PUT", - "OperationID": "PrivateEndpointConnections_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Called by end-users to approve or reject a PE connection.\r\nThis method must validate and forward the call to NRP." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "DELETE", - "OperationID": "PrivateEndpointConnections_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Called by end-users to delete a PE connection." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections", - "Method": "GET", - "OperationID": "PrivateEndpointConnections_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Called by end-users to get all PE connections." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Workspace" - ], - "SwaggerModelName": "PrivateEndpointConnection", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections", - "ResourceKey": "privateEndpointConnectionName", - "ResourceKeySegment": "privateEndpointConnections", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + { + "Name": "ProvisionManagedNetwork", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/provisionManagedNetwork", + "Method": "POST", + "OperationID": "ManagedNetworkProvisions_ProvisionManagedNetwork", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Provisions the managed network of a machine learning workspace." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "Workspace", + "ResourceType": "Microsoft.MachineLearningServices/workspaces", + "ResourceKey": "workspaceName", + "ResourceKeySegment": "workspaces", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "WorkspaceConnectionPropertiesV2BasicResource": [ + { + "Name": "WorkspaceConnectionPropertiesV2BasicResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + "Method": "GET", + "OperationID": "WorkspaceConnections_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Lists machine learning workspaces connections by name." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + "Method": "PUT", + "OperationID": "WorkspaceConnections_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update machine learning workspaces connections under the specified workspace." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + "Method": "PATCH", + "OperationID": "WorkspaceConnections_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update machine learning workspaces connections under the specified workspace." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + "Method": "DELETE", + "OperationID": "WorkspaceConnections_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete machine learning workspaces connections by name." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", + "Method": "GET", + "OperationID": "WorkspaceConnections_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the available machine learning workspaces connections under the specified workspace." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListSecrets", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/listsecrets", + "Method": "POST", + "OperationID": "WorkspaceConnections_ListSecrets", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "List all the secrets of a machine learning workspaces connections." + } + ], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "WorkspaceConnectionPropertiesV2BasicResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/connections", + "ResourceKey": "connectionName", + "ResourceKeySegment": "connections", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "OutboundRuleBasicResource": [ + { + "Name": "OutboundRuleBasicResource", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + "Method": "GET", + "OperationID": "ManagedNetworkSettingsRule_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets an outbound rule from the managed network of a machine learning workspace." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + "Method": "PUT", + "OperationID": "ManagedNetworkSettingsRule_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates an outbound rule in the managed network of a machine learning workspace." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + "Method": "PUT", + "OperationID": "ManagedNetworkSettingsRule_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates an outbound rule in the managed network of a machine learning workspace." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + "Method": "DELETE", + "OperationID": "ManagedNetworkSettingsRule_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes an outbound rule from the managed network of a machine learning workspace." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules", + "Method": "GET", + "OperationID": "ManagedNetworkSettingsRule_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists the managed network outbound rules for a machine learning workspace." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "OutboundRuleBasicResource", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/outboundRules", + "ResourceKey": "ruleName", + "ResourceKeySegment": "outboundRules", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "PrivateEndpointConnection": [ + { + "Name": "PrivateEndpointConnection", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "GET", + "OperationID": "PrivateEndpointConnections_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Called by end-users to get a PE connection." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "PUT", + "OperationID": "PrivateEndpointConnections_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Called by end-users to approve or reject a PE connection.\r\nThis method must validate and forward the call to NRP." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "PUT", + "OperationID": "PrivateEndpointConnections_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Called by end-users to approve or reject a PE connection.\r\nThis method must validate and forward the call to NRP." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "DELETE", + "OperationID": "PrivateEndpointConnections_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Called by end-users to delete a PE connection." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections", + "Method": "GET", + "OperationID": "PrivateEndpointConnections_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Called by end-users to get all PE connections." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Workspace" + ], + "SwaggerModelName": "PrivateEndpointConnection", + "ResourceType": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections", + "ResourceKey": "privateEndpointConnectionName", + "ResourceKeySegment": "privateEndpointConnections", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeContainerResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeContainerResource.tsp index 44cc99e394..bfb9f71e3b 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeContainerResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeContainerResource.tsp @@ -25,6 +25,29 @@ model CodeContainerResource >; } +@armResourceOperations +interface CodeContainerResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface CodeContainerResources { /** @@ -32,14 +55,14 @@ interface CodeContainerResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryCodeContainers_Get") - get is ArmResourceRead; + get is CodeContainerResourceOps.Read; /** * Create or update Code container. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryCodeContainers_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is CodeContainerResourceOps.CreateOrUpdateAsync; /** * Delete Code container. @@ -47,7 +70,7 @@ interface CodeContainerResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("RegistryCodeContainers_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is CodeContainerResourceOps.DeleteWithoutOkAsync< CodeContainerResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -57,7 +80,62 @@ interface CodeContainerResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryCodeContainers_List") - list is ArmResourceListByParent< + list is CodeContainerResourceOps.List< + CodeContainerResource, + Parameters = { + /** + * Continuation token for pagination. + */ + @query("$skip") + $skip?: string; + }, + Response = ArmResponse + >; +} +@armResourceOperations +interface CodeContainerOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface CodeContainers { + /** + * Get container. + */ + get is CodeContainerOps.Read; + + /** + * Create or update container. + */ + createOrUpdate is CodeContainerOps.CreateOrUpdateSync; + + /** + * Delete container. + */ + delete is CodeContainerOps.DeleteSync; + + /** + * List containers. + */ + list is CodeContainerOps.List< CodeContainerResource, Parameters = { /** @@ -77,3 +155,6 @@ interface CodeContainerResources { @@doc(CodeContainerResources.createOrUpdate::parameters.resource, "Container entity to create or update." ); +@@doc(CodeContainers.createOrUpdate::parameters.resource, + "Container entity to create or update." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeContainerResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeContainerResourceFixMe.tsp deleted file mode 100644 index 623847a80a..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeContainerResourceFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model CodeContainerResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeVersionResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeVersionResource.tsp index 68157247d1..26c507f62a 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeVersionResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeVersionResource.tsp @@ -25,6 +25,35 @@ model CodeVersionResource >; } +@armResourceOperations +interface CodeVersionResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface CodeVersionResources { /** @@ -32,14 +61,14 @@ interface CodeVersionResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryCodeVersions_Get") - get is ArmResourceRead; + get is CodeVersionResourceOps.Read; /** * Create or update version. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryCodeVersions_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is CodeVersionResourceOps.CreateOrUpdateAsync; /** * Delete version. @@ -47,7 +76,7 @@ interface CodeVersionResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("RegistryCodeVersions_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is CodeVersionResourceOps.DeleteWithoutOkAsync< CodeVersionResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -57,7 +86,7 @@ interface CodeVersionResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryCodeVersions_List") - list is ArmResourceListByParent< + list is CodeVersionResourceOps.List< CodeVersionResource, Parameters = { /** @@ -87,7 +116,102 @@ interface CodeVersionResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @action("startPendingUpload") @operationId("RegistryCodeVersions_CreateOrGetStartPendingUpload") - createOrGetStartPendingUpload is ArmResourceActionSync< + createOrGetStartPendingUpload is CodeVersionResourceOps.ActionSync< + CodeVersionResource, + PendingUploadRequestDto, + ArmResponse + >; +} +@armResourceOperations +interface CodeVersionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface CodeVersions { + /** + * Get version. + */ + get is CodeVersionOps.Read; + + /** + * Create or update version. + */ + createOrUpdate is CodeVersionOps.CreateOrUpdateSync; + + /** + * Delete version. + */ + delete is CodeVersionOps.DeleteSync; + + /** + * List versions. + */ + list is CodeVersionOps.List< + CodeVersionResource, + Parameters = { + /** + * Ordering of list. + */ + @query("$orderBy") + $orderBy?: string; + + /** + * Maximum number of records to return. + */ + @query("$top") + $top?: int32; + + /** + * Continuation token for pagination. + */ + @query("$skip") + $skip?: string; + + /** + * If specified, return CodeVersion assets with specified content hash value, regardless of name + */ + @query("hash") + hash?: string; + + /** + * Hash algorithm version when listing by hash + */ + @query("hashVersion") + hashVersion?: string; + }, + Response = ArmResponse + >; + + /** + * Generate a storage location and credential for the client to upload a code asset to. + */ + @action("startPendingUpload") + createOrGetStartPendingUpload is CodeVersionOps.ActionSync< CodeVersionResource, PendingUploadRequestDto, ArmResponse @@ -104,3 +228,9 @@ interface CodeVersionResources { @@doc(CodeVersionResources.createOrGetStartPendingUpload::parameters.body, "Pending upload request object" ); +@@doc(CodeVersions.createOrUpdate::parameters.resource, + "Version entity to create or update." +); +@@doc(CodeVersions.createOrGetStartPendingUpload::parameters.body, + "Pending upload request object" +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeVersionResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeVersionResourceFixMe.tsp deleted file mode 100644 index a145d386f9..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeVersionResourceFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model CodeVersionResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentContainerResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentContainerResource.tsp index db1d5be952..8dea52af97 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentContainerResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentContainerResource.tsp @@ -25,6 +25,29 @@ model ComponentContainerResource >; } +@armResourceOperations +interface ComponentContainerResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface ComponentContainerResources { /** @@ -32,14 +55,14 @@ interface ComponentContainerResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryComponentContainers_Get") - get is ArmResourceRead; + get is ComponentContainerResourceOps.Read; /** * Create or update container. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryComponentContainers_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is ComponentContainerResourceOps.CreateOrUpdateAsync; /** * Delete container. @@ -47,7 +70,7 @@ interface ComponentContainerResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("RegistryComponentContainers_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is ComponentContainerResourceOps.DeleteWithoutOkAsync< ComponentContainerResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -57,7 +80,7 @@ interface ComponentContainerResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryComponentContainers_List") - list is ArmResourceListByParent< + list is ComponentContainerResourceOps.List< ComponentContainerResource, Parameters = { /** @@ -69,6 +92,67 @@ interface ComponentContainerResources { Response = ArmResponse >; } +@armResourceOperations +interface ComponentContainerOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface ComponentContainers { + /** + * Get container. + */ + get is ComponentContainerOps.Read; + + /** + * Create or update container. + */ + createOrUpdate is ComponentContainerOps.CreateOrUpdateSync; + + /** + * Delete container. + */ + delete is ComponentContainerOps.DeleteSync; + + /** + * List component containers. + */ + list is ComponentContainerOps.List< + ComponentContainerResource, + Parameters = { + /** + * Continuation token for pagination. + */ + @query("$skip") + $skip?: string; + + /** + * View type for including/excluding (for example) archived entities. + */ + @query("listViewType") + listViewType?: ListViewType; + }, + Response = ArmResponse + >; +} @@doc(ComponentContainerResource.name, "Container name."); @@doc(ComponentContainerResource.properties, @@ -77,3 +161,6 @@ interface ComponentContainerResources { @@doc(ComponentContainerResources.createOrUpdate::parameters.resource, "Container entity to create or update." ); +@@doc(ComponentContainers.createOrUpdate::parameters.resource, + "Container entity to create or update." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentContainerResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentContainerResourceFixMe.tsp deleted file mode 100644 index f4bbc239c4..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentContainerResourceFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model ComponentContainerResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentVersionResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentVersionResource.tsp index c92807bd62..e53d50141d 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentVersionResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentVersionResource.tsp @@ -25,6 +25,35 @@ model ComponentVersionResource >; } +@armResourceOperations +interface ComponentVersionResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface ComponentVersionResources { /** @@ -32,14 +61,14 @@ interface ComponentVersionResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryComponentVersions_Get") - get is ArmResourceRead; + get is ComponentVersionResourceOps.Read; /** * Create or update version. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryComponentVersions_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is ComponentVersionResourceOps.CreateOrUpdateAsync; /** * Delete version. @@ -47,7 +76,7 @@ interface ComponentVersionResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("RegistryComponentVersions_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is ComponentVersionResourceOps.DeleteWithoutOkAsync< ComponentVersionResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -57,7 +86,7 @@ interface ComponentVersionResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryComponentVersions_List") - list is ArmResourceListByParent< + list is ComponentVersionResourceOps.List< ComponentVersionResource, Parameters = { /** @@ -87,6 +116,91 @@ interface ComponentVersionResources { Response = ArmResponse >; } +@armResourceOperations +interface ComponentVersionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface ComponentVersions { + /** + * Get version. + */ + get is ComponentVersionOps.Read; + + /** + * Create or update version. + */ + createOrUpdate is ComponentVersionOps.CreateOrUpdateSync; + + /** + * Delete version. + */ + delete is ComponentVersionOps.DeleteSync; + + /** + * List component versions. + */ + list is ComponentVersionOps.List< + ComponentVersionResource, + Parameters = { + /** + * Ordering of list. + */ + @query("$orderBy") + $orderBy?: string; + + /** + * Maximum number of records to return. + */ + @query("$top") + $top?: int32; + + /** + * Continuation token for pagination. + */ + @query("$skip") + $skip?: string; + + /** + * View type for including/excluding (for example) archived entities. + */ + @query("listViewType") + listViewType?: ListViewType; + + /** + * Component stage. + */ + @query("stage") + stage?: string; + }, + Response = ArmResponse + >; +} @@doc(ComponentVersionResource.name, "Version identifier."); @@doc(ComponentVersionResource.properties, @@ -95,3 +209,6 @@ interface ComponentVersionResources { @@doc(ComponentVersionResources.createOrUpdate::parameters.resource, "Version entity to create or update." ); +@@doc(ComponentVersions.createOrUpdate::parameters.resource, + "Version entity to create or update." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentVersionResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentVersionResourceFixMe.tsp deleted file mode 100644 index 42c0b7ad32..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentVersionResourceFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model ComponentVersionResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataContainerResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataContainerResource.tsp index 9269ae1dc7..ad8a085a26 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataContainerResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataContainerResource.tsp @@ -25,6 +25,29 @@ model DataContainerResource >; } +@armResourceOperations +interface DataContainerResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface DataContainerResources { /** @@ -32,14 +55,14 @@ interface DataContainerResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryDataContainers_Get") - get is ArmResourceRead; + get is DataContainerResourceOps.Read; /** * Create or update container. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryDataContainers_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is DataContainerResourceOps.CreateOrUpdateAsync; /** * Delete container. @@ -47,7 +70,7 @@ interface DataContainerResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("RegistryDataContainers_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is DataContainerResourceOps.DeleteWithoutOkAsync< DataContainerResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -57,7 +80,68 @@ interface DataContainerResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryDataContainers_List") - list is ArmResourceListByParent< + list is DataContainerResourceOps.List< + DataContainerResource, + Parameters = { + /** + * Continuation token for pagination. + */ + @query("$skip") + $skip?: string; + + /** + * View type for including/excluding (for example) archived entities. + */ + @query("listViewType") + listViewType?: ListViewType; + }, + Response = ArmResponse + >; +} +@armResourceOperations +interface DataContainerOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface DataContainers { + /** + * Get container. + */ + get is DataContainerOps.Read; + + /** + * Create or update container. + */ + createOrUpdate is DataContainerOps.CreateOrUpdateSync; + + /** + * Delete container. + */ + delete is DataContainerOps.DeleteSync; + + /** + * List data containers. + */ + list is DataContainerOps.List< DataContainerResource, Parameters = { /** @@ -83,3 +167,6 @@ interface DataContainerResources { @@doc(DataContainerResources.createOrUpdate::parameters.resource, "Container entity to create or update." ); +@@doc(DataContainers.createOrUpdate::parameters.resource, + "Container entity to create or update." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataContainerResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataContainerResourceFixMe.tsp deleted file mode 100644 index 1325c16d5c..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataContainerResourceFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model DataContainerResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataVersionBaseResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataVersionBaseResource.tsp index 994214f30b..a31c646cee 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataVersionBaseResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataVersionBaseResource.tsp @@ -25,6 +25,35 @@ model DataVersionBaseResource >; } +@armResourceOperations +interface DataVersionBaseResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface DataVersionBaseResources { /** @@ -32,14 +61,14 @@ interface DataVersionBaseResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryDataVersions_Get") - get is ArmResourceRead; + get is DataVersionBaseResourceOps.Read; /** * Create or update version. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryDataVersions_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is DataVersionBaseResourceOps.CreateOrUpdateAsync; /** * Delete version. @@ -47,7 +76,7 @@ interface DataVersionBaseResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("RegistryDataVersions_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is DataVersionBaseResourceOps.DeleteWithoutOkAsync< DataVersionBaseResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -57,7 +86,7 @@ interface DataVersionBaseResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryDataVersions_List") - list is ArmResourceListByParent< + list is DataVersionBaseResourceOps.List< DataVersionBaseResource, Parameters = { /** @@ -100,12 +129,104 @@ interface DataVersionBaseResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @action("startPendingUpload") @operationId("RegistryDataVersions_CreateOrGetStartPendingUpload") - createOrGetStartPendingUpload is ArmResourceActionSync< + createOrGetStartPendingUpload is DataVersionBaseResourceOps.ActionSync< DataVersionBaseResource, PendingUploadRequestDto, ArmResponse >; } +@armResourceOperations +interface DataVersionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface DataVersions { + /** + * Get version. + */ + get is DataVersionOps.Read; + + /** + * Create or update version. + */ + createOrUpdate is DataVersionOps.CreateOrUpdateSync; + + /** + * Delete version. + */ + delete is DataVersionOps.DeleteSync; + + /** + * List data versions in the data container + */ + list is DataVersionOps.List< + DataVersionBaseResource, + Parameters = { + /** + * Please choose OrderBy value from ['createdtime', 'modifiedtime'] + */ + @query("$orderBy") + $orderBy?: string; + + /** + * Top count of results, top count cannot be greater than the page size. + * If topCount > page size, results with be default page size count will be returned + */ + @query("$top") + $top?: int32; + + /** + * Continuation token for pagination. + */ + @query("$skip") + $skip?: string; + + /** + * Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 + */ + @query("$tags") + $tags?: string; + + /** + * [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. + */ + @query("listViewType") + listViewType?: ListViewType; + + /** + * data stage + */ + @query("stage") + stage?: string; + }, + Response = ArmResponse + >; +} @@doc(DataVersionBaseResource.name, "Version identifier."); @@doc(DataVersionBaseResource.properties, @@ -117,3 +238,6 @@ interface DataVersionBaseResources { @@doc(DataVersionBaseResources.createOrGetStartPendingUpload::parameters.body, "Pending upload request object" ); +@@doc(DataVersions.createOrUpdate::parameters.resource, + "Version entity to create or update." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataVersionBaseResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataVersionBaseResourceFixMe.tsp deleted file mode 100644 index 6303956e5d..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataVersionBaseResourceFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model DataVersionBaseResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentContainerResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentContainerResource.tsp index c989ed31e6..d552a28cc8 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentContainerResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentContainerResource.tsp @@ -25,6 +25,29 @@ model EnvironmentContainerResource >; } +@armResourceOperations +interface EnvironmentContainerResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface EnvironmentContainerResources { /** @@ -32,14 +55,14 @@ interface EnvironmentContainerResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryEnvironmentContainers_Get") - get is ArmResourceRead; + get is EnvironmentContainerResourceOps.Read; /** * Create or update container. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryEnvironmentContainers_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is EnvironmentContainerResourceOps.CreateOrUpdateAsync; /** * Delete container. @@ -47,7 +70,7 @@ interface EnvironmentContainerResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("RegistryEnvironmentContainers_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is EnvironmentContainerResourceOps.DeleteWithoutOkAsync< EnvironmentContainerResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -57,7 +80,68 @@ interface EnvironmentContainerResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryEnvironmentContainers_List") - list is ArmResourceListByParent< + list is EnvironmentContainerResourceOps.List< + EnvironmentContainerResource, + Parameters = { + /** + * Continuation token for pagination. + */ + @query("$skip") + $skip?: string; + + /** + * View type for including/excluding (for example) archived entities. + */ + @query("listViewType") + listViewType?: ListViewType; + }, + Response = ArmResponse + >; +} +@armResourceOperations +interface EnvironmentContainerOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface EnvironmentContainers { + /** + * Get container. + */ + get is EnvironmentContainerOps.Read; + + /** + * Create or update container. + */ + createOrUpdate is EnvironmentContainerOps.CreateOrUpdateSync; + + /** + * Delete container. + */ + delete is EnvironmentContainerOps.DeleteSync; + + /** + * List environment containers. + */ + list is EnvironmentContainerOps.List< EnvironmentContainerResource, Parameters = { /** @@ -85,3 +169,6 @@ interface EnvironmentContainerResources { @@doc(EnvironmentContainerResources.createOrUpdate::parameters.resource, "Container entity to create or update." ); +@@doc(EnvironmentContainers.createOrUpdate::parameters.resource, + "Container entity to create or update." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentContainerResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentContainerResourceFixMe.tsp deleted file mode 100644 index 959e27aec0..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentContainerResourceFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model EnvironmentContainerResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentVersionResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentVersionResource.tsp index f0600b4afb..5b548d46b8 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentVersionResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentVersionResource.tsp @@ -25,6 +25,35 @@ model EnvironmentVersionResource >; } +@armResourceOperations +interface EnvironmentVersionResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface EnvironmentVersionResources { /** @@ -32,14 +61,14 @@ interface EnvironmentVersionResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryEnvironmentVersions_Get") - get is ArmResourceRead; + get is EnvironmentVersionResourceOps.Read; /** * Create or update version. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryEnvironmentVersions_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is EnvironmentVersionResourceOps.CreateOrUpdateAsync; /** * Delete version. @@ -47,7 +76,7 @@ interface EnvironmentVersionResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("RegistryEnvironmentVersions_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is EnvironmentVersionResourceOps.DeleteWithoutOkAsync< EnvironmentVersionResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -57,7 +86,92 @@ interface EnvironmentVersionResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryEnvironmentVersions_List") - list is ArmResourceListByParent< + list is EnvironmentVersionResourceOps.List< + EnvironmentVersionResource, + Parameters = { + /** + * Ordering of list. + */ + @query("$orderBy") + $orderBy?: string; + + /** + * Maximum number of records to return. + */ + @query("$top") + $top?: int32; + + /** + * Continuation token for pagination. + */ + @query("$skip") + $skip?: string; + + /** + * View type for including/excluding (for example) archived entities. + */ + @query("listViewType") + listViewType?: ListViewType; + + /** + * Stage for including/excluding (for example) archived entities. Takes priority over listViewType + */ + @query("stage") + stage?: string; + }, + Response = ArmResponse + >; +} +@armResourceOperations +interface EnvironmentVersionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface EnvironmentVersions { + /** + * Get version. + */ + get is EnvironmentVersionOps.Read; + + /** + * Creates or updates an EnvironmentVersion. + */ + createOrUpdate is EnvironmentVersionOps.CreateOrUpdateSync; + + /** + * Delete version. + */ + delete is EnvironmentVersionOps.DeleteSync; + + /** + * List versions. + */ + list is EnvironmentVersionOps.List< EnvironmentVersionResource, Parameters = { /** @@ -103,3 +217,6 @@ interface EnvironmentVersionResources { @@doc(EnvironmentVersionResources.createOrUpdate::parameters.resource, "Version entity to create or update." ); +@@doc(EnvironmentVersions.createOrUpdate::parameters.resource, + "Definition of EnvironmentVersion." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentVersionResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentVersionResourceFixMe.tsp deleted file mode 100644 index f861ea09ae..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentVersionResourceFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model EnvironmentVersionResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelContainerResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelContainerResource.tsp index 0e6d8ea6c6..b24e386827 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelContainerResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelContainerResource.tsp @@ -25,6 +25,29 @@ model ModelContainerResource >; } +@armResourceOperations +interface ModelContainerResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface ModelContainerResources { /** @@ -32,14 +55,14 @@ interface ModelContainerResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryModelContainers_Get") - get is ArmResourceRead; + get is ModelContainerResourceOps.Read; /** * Create or update model container. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryModelContainers_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is ModelContainerResourceOps.CreateOrUpdateAsync; /** * Delete container. @@ -47,7 +70,7 @@ interface ModelContainerResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("RegistryModelContainers_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is ModelContainerResourceOps.DeleteWithoutOkAsync< ModelContainerResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -57,7 +80,7 @@ interface ModelContainerResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryModelContainers_List") - list is ArmResourceListByParent< + list is ModelContainerResourceOps.List< ModelContainerResource, Parameters = { /** @@ -75,6 +98,73 @@ interface ModelContainerResources { Response = ArmResponse >; } +@armResourceOperations +interface ModelContainerOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface ModelContainers { + /** + * Get container. + */ + get is ModelContainerOps.Read; + + /** + * Create or update container. + */ + createOrUpdate is ModelContainerOps.CreateOrUpdateSync; + + /** + * Delete container. + */ + delete is ModelContainerOps.DeleteSync; + + /** + * List model containers. + */ + list is ModelContainerOps.List< + ModelContainerResource, + Parameters = { + /** + * Continuation token for pagination. + */ + @query("$skip") + $skip?: string; + + /** + * Maximum number of results to return. + */ + @query("count") + count?: int32; + + /** + * View type for including/excluding (for example) archived entities. + */ + @query("listViewType") + listViewType?: ListViewType; + }, + Response = ArmResponse + >; +} @@doc(ModelContainerResource.name, "Container name. This is case-sensitive."); @@doc(ModelContainerResource.properties, @@ -83,3 +173,6 @@ interface ModelContainerResources { @@doc(ModelContainerResources.createOrUpdate::parameters.resource, "Container entity to create or update." ); +@@doc(ModelContainers.createOrUpdate::parameters.resource, + "Container entity to create or update." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelContainerResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelContainerResourceFixMe.tsp deleted file mode 100644 index bbdf780ef2..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelContainerResourceFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model ModelContainerResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelVersionResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelVersionResource.tsp index a83fc8604c..9fb0fedb72 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelVersionResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelVersionResource.tsp @@ -25,6 +25,35 @@ model ModelVersionResource >; } +@armResourceOperations +interface ModelVersionResourceOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + @armResourceOperations interface ModelVersionResources { /** @@ -32,14 +61,14 @@ interface ModelVersionResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryModelVersions_Get") - get is ArmResourceRead; + get is ModelVersionResourceOps.Read; /** * Create or update version. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryModelVersions_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is ModelVersionResourceOps.CreateOrUpdateAsync; /** * Delete version. @@ -47,7 +76,7 @@ interface ModelVersionResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" @operationId("RegistryModelVersions_Delete") - delete is ArmResourceDeleteWithoutOkAsync< + delete is ModelVersionResourceOps.DeleteWithoutOkAsync< ModelVersionResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse >; @@ -57,7 +86,7 @@ interface ModelVersionResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryModelVersions_List") - list is ArmResourceListByParent< + list is ModelVersionResourceOps.List< ModelVersionResource, Parameters = { /** @@ -110,7 +139,7 @@ interface ModelVersionResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("RegistryModelVersions_Package") - package is ArmResourceActionAsync< + package is ModelVersionResourceOps.ActionAsync< ModelVersionResource, PackageRequest, ArmResponse @@ -122,12 +151,136 @@ interface ModelVersionResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @action("startPendingUpload") @operationId("RegistryModelVersions_CreateOrGetStartPendingUpload") - createOrGetStartPendingUpload is ArmResourceActionSync< + createOrGetStartPendingUpload is ModelVersionResourceOps.ActionSync< ModelVersionResource, PendingUploadRequestDto, ArmResponse >; } +@armResourceOperations +interface ModelVersionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + ...KeysOf>, + ...KeysOf>, + }, + KeysOf> + > {} + +@armResourceOperations +interface ModelVersions { + /** + * Get version. + */ + get is ModelVersionOps.Read; + + /** + * Create or update version. + */ + createOrUpdate is ModelVersionOps.CreateOrUpdateSync; + + /** + * Delete version. + */ + delete is ModelVersionOps.DeleteSync; + + /** + * List model versions. + */ + list is ModelVersionOps.List< + ModelVersionResource, + Parameters = { + /** + * Continuation token for pagination. + */ + @query("$skip") + $skip?: string; + + /** + * Ordering of list. + */ + @query("$orderBy") + $orderBy?: string; + + /** + * Maximum number of records to return. + */ + @query("$top") + $top?: int32; + + /** + * Model description. + */ + @query("description") + description?: string; + + /** + * Number of initial results to skip. + */ + @query("offset") + offset?: int32; + + /** + * Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 + */ + @query("tags") + tags?: string; + + /** + * Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 + */ + @query("properties") + properties?: string; + + /** + * Name of the feed. + */ + @query("feed") + feed?: string; + + /** + * View type for including/excluding (for example) archived entities. + */ + @query("listViewType") + listViewType?: ListViewType; + + /** + * Model stage + */ + @query("stage") + stage?: string; + }, + Response = ArmResponse + >; + + /** + * Model Version Package operation. + */ + package is ModelVersionOps.ActionAsync< + ModelVersionResource, + PackageRequest, + ArmResponse + >; +} @@doc(ModelVersionResource.name, "Version identifier. This is case-sensitive."); @@doc(ModelVersionResource.properties, @@ -142,3 +295,9 @@ interface ModelVersionResources { @@doc(ModelVersionResources.createOrGetStartPendingUpload::parameters.body, "Pending upload request object" ); +@@doc(ModelVersions.createOrUpdate::parameters.resource, + "Version entity to create or update." +); +@@doc(ModelVersions.package::parameters.body, + "Package operation request body." +); diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelVersionResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelVersionResourceFixMe.tsp deleted file mode 100644 index f6c4547ab4..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelVersionResourceFixMe.tsp +++ /dev/null @@ -1 +0,0 @@ -// You defined multiple pathes under the model ModelVersionResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/client.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/client.tsp index 83d2600b21..658c78f43e 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/client.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/client.tsp @@ -33,38 +33,48 @@ using Azure.ResourceManager.MachineLearning; @@clientName(CodeContainerResources.createOrUpdate::parameters.resource, "body" ); +@@clientName(CodeContainers.createOrUpdate::parameters.resource, "body"); @@clientName(CodeVersionResources.createOrUpdate::parameters.resource, "body"); +@@clientName(CodeVersions.createOrUpdate::parameters.resource, "body"); @@clientName(ComponentContainerResources.createOrUpdate::parameters.resource, "body" ); +@@clientName(ComponentContainers.createOrUpdate::parameters.resource, "body"); @@clientName(ComponentVersionResources.createOrUpdate::parameters.resource, "body" ); +@@clientName(ComponentVersions.createOrUpdate::parameters.resource, "body"); @@clientName(DataContainerResources.createOrUpdate::parameters.resource, "body" ); +@@clientName(DataContainers.createOrUpdate::parameters.resource, "body"); @@clientName(DataVersionBaseResources.createOrUpdate::parameters.resource, "body" ); +@@clientName(DataVersions.createOrUpdate::parameters.resource, "body"); @@clientName(EnvironmentContainerResources.createOrUpdate::parameters.resource, "body" ); +@@clientName(EnvironmentContainers.createOrUpdate::parameters.resource, "body"); @@clientName(EnvironmentVersionResources.createOrUpdate::parameters.resource, "body" ); +@@clientName(EnvironmentVersions.createOrUpdate::parameters.resource, "body"); @@clientName(ModelContainerResources.createOrUpdate::parameters.resource, "body" ); +@@clientName(ModelContainers.createOrUpdate::parameters.resource, "body"); @@clientName(ModelVersionResources.createOrUpdate::parameters.resource, "body"); +@@clientName(ModelVersions.createOrUpdate::parameters.resource, "body"); @@clientName(BatchEndpointTrackedResources.createOrUpdate::parameters.resource, "body" diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/createOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/createOrUpdate.json new file mode 100644 index 0000000000..af6caaf883 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/createOrUpdate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "name": "testContainer", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "description": "string", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "testworkspace" + }, + "responses": { + "200": { + "body": { + "name": "testContainer", + "type": "Microsoft.MachineLearningServices/workspaces/codes", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/codes/testContainer", + "properties": { + "description": "string", + "tags": { + "property1": "string", + "property2": "string" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "testContainer", + "type": "Microsoft.MachineLearningServices/workspaces/codes", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/codes/testContainer", + "properties": { + "description": "string", + "tags": { + "property1": "string", + "property2": "string" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "CodeContainers_CreateOrUpdate", + "title": "CreateOrUpdate Workspace Code Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/delete.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/delete.json new file mode 100644 index 0000000000..6f072d21d7 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "name": "testContainer", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "testworkspace" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "CodeContainers_Delete", + "title": "Delete Workspace Code Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/get.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/get.json new file mode 100644 index 0000000000..c3c2569f71 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "name": "testContainer", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "testworkspace" + }, + "responses": { + "200": { + "body": { + "name": "testContainer", + "type": "Microsoft.MachineLearningServices/workspaces/codes", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/codes/testContainer", + "properties": { + "description": "string", + "tags": { + "property1": "string", + "property2": "string" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-08-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "CodeContainers_Get", + "title": "Get Workspace Code Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/list.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/list.json new file mode 100644 index 0000000000..937945f9ca --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeContainer/list.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "name": "testcode", + "$skipToken": "skiptoken", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "testworkspace" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "testContainer", + "type": "Microsoft.MachineLearningServices/workspaces/codes", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/codes/testContainer", + "properties": { + "description": "string", + "tags": { + "property1": "string", + "property2": "string" + } + }, + "systemData": { + "createdAt": "2020-08-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-08-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + }, + { + "name": "testContainer2", + "type": "Microsoft.MachineLearningServices/workspaces/codes", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/codes/testContainer2", + "properties": { + "description": "string", + "tags": { + "property1": "string", + "property2": "string" + } + }, + "systemData": { + "createdAt": "2020-08-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-08-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "CodeContainers_List", + "title": "List Workspace Code Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/createOrGetStartPendingUpload.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/createOrGetStartPendingUpload.json new file mode 100644 index 0000000000..900bbffbad --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/createOrGetStartPendingUpload.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "body": { + "pendingUploadId": "string", + "pendingUploadType": "TemporaryBlobReference" + }, + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "blobReferenceForConsumption": { + "blobUri": "https://www.contoso.com/example", + "credential": { + "credentialType": "SAS", + "sasUri": "https://www.contoso.com/example" + }, + "storageAccountArmId": "string" + }, + "pendingUploadId": "string", + "pendingUploadType": "TemporaryBlobReference" + }, + "headers": {} + } + }, + "operationId": "CodeVersions_CreateOrGetStartPendingUpload", + "title": "CreateOrGetStartPendingUpload Workspace Code Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/createOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/createOrUpdate.json new file mode 100644 index 0000000000..e52411aa74 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/createOrUpdate.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "description": "string", + "codeUri": "https://blobStorage/folderName", + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "codeUri": "https://blobStorage/folderName", + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + }, + "201": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "codeUri": "https://blobStorage/folderName", + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "CodeVersions_CreateOrUpdate", + "title": "CreateOrUpdate Workspace Code Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/delete.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/delete.json new file mode 100644 index 0000000000..00b5fcff39 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "CodeVersions_Delete", + "title": "Delete Workspace Code Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/get.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/get.json new file mode 100644 index 0000000000..c89ec288b0 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/get.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "codeUri": "https://blobStorage/folderName", + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "CodeVersions_Get", + "title": "Get Workspace Code Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/list.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/list.json new file mode 100644 index 0000000000..4aee86aa5f --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/CodeVersion/list.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "name": "string", + "$orderBy": "string", + "$skipToken": "string", + "$top": 1, + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "codeUri": "https://blobStorage/folderName", + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + } + ] + }, + "headers": {} + } + }, + "operationId": "CodeVersions_List", + "title": "List Workspace Code Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/createOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/createOrUpdate.json new file mode 100644 index 0000000000..daaa6305e1 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/createOrUpdate.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "description": "string", + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + }, + "201": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "ComponentContainers_CreateOrUpdate", + "title": "CreateOrUpdate Workspace Component Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/delete.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/delete.json new file mode 100644 index 0000000000..6fe16b2237 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ComponentContainers_Delete", + "title": "Delete Workspace Component Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/get.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/get.json new file mode 100644 index 0000000000..bd1e6536d4 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/get.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "ComponentContainers_Get", + "title": "Get Workspace Component Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/list.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/list.json new file mode 100644 index 0000000000..e4a08301ec --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentContainer/list.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "$skipToken": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + } + ] + }, + "headers": {} + } + }, + "operationId": "ComponentContainers_List", + "title": "List Workspace Component Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/createOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/createOrUpdate.json new file mode 100644 index 0000000000..a4ff4bdf05 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/createOrUpdate.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "description": "string", + "componentSpec": { + "8ced901b-d826-477d-bfef-329da9672513": null + }, + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "componentSpec": { + "2de2e74e-457d-4447-a581-933abc2b9d96": null + }, + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + }, + "201": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "componentSpec": { + "a6c1349d-5e45-48da-92c3-3ce176cb30e9": null + }, + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "ComponentVersions_CreateOrUpdate", + "title": "CreateOrUpdate Workspace Component Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/delete.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/delete.json new file mode 100644 index 0000000000..2d141a6bc3 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ComponentVersions_Delete", + "title": "Delete Workspace Component Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/get.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/get.json new file mode 100644 index 0000000000..67130ec128 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/get.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "componentSpec": { + "1a7c40b5-2029-4f5f-a8d6-fd0822038773": null + }, + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "ComponentVersions_Get", + "title": "Get Workspace Component Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/list.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/list.json new file mode 100644 index 0000000000..06926bd3e7 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ComponentVersion/list.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "name": "string", + "$orderBy": "string", + "$skipToken": "string", + "$top": 1, + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "componentSpec": { + "50acbce5-cccc-475a-8ac6-c4da402afbd8": null + }, + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + } + ] + }, + "headers": {} + } + }, + "operationId": "ComponentVersions_List", + "title": "List Workspace Component Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/createOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/createOrUpdate.json new file mode 100644 index 0000000000..531b7c40ce --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/createOrUpdate.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "name": "datacontainer123", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "description": "string", + "dataType": "UriFile", + "properties": { + "properties1": "value1", + "properties2": "value2" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "workspace123" + }, + "responses": { + "200": { + "body": { + "name": "datacontainer123", + "type": "Microsoft.MachineLearningServices/workspaces/data", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/data/datacontainer123", + "properties": { + "description": "string", + "dataType": "UriFile", + "properties": { + "properties1": "value1", + "properties2": "value2" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "datacontainer123", + "type": "Microsoft.MachineLearningServices/workspaces/data", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/data/datacontainer123", + "properties": { + "description": "string", + "dataType": "UriFile", + "properties": { + "properties1": "value1", + "properties2": "value2" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "DataContainers_CreateOrUpdate", + "title": "CreateOrUpdate Workspace Data Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/delete.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/delete.json new file mode 100644 index 0000000000..50febfb465 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "name": "datacontainer123", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "workspace123" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "DataContainers_Delete", + "title": "Delete Workspace Data Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/get.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/get.json new file mode 100644 index 0000000000..53b9645ae7 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/get.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "name": "datacontainer123", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "workspace123" + }, + "responses": { + "200": { + "body": { + "name": "datacontainer123", + "type": "Microsoft.MachineLearningServices/workspaces/data", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/data/datacontainer123", + "properties": { + "description": "string", + "dataType": "UriFile", + "properties": { + "properties1": "value1", + "properties2": "value2" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "DataContainers_Get", + "title": "Get Workspace Data Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/list.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/list.json new file mode 100644 index 0000000000..b90354dfdf --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataContainer/list.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "name": "data123", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "workspace123" + }, + "responses": { + "200": { + "body": { + "nextLink": "nextlink", + "value": [ + { + "name": "datastore123", + "type": "Microsoft.MachineLearningServices/workspaces/data", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/data/datacontainer123", + "properties": { + "description": "string", + "dataType": "UriFile", + "properties": { + "properties1": "value1", + "properties2": "value2" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + }, + { + "name": "datastore124", + "type": "Microsoft.MachineLearningServices/workspaces/data", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/data/datacontainer124", + "properties": { + "description": "string", + "dataType": "UriFile", + "properties": { + "properties1": "value1", + "properties2": "value2" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "DataContainers_List", + "title": "List Workspace Data Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/createOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/createOrUpdate.json new file mode 100644 index 0000000000..8d3e1b2dac --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/createOrUpdate.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "description": "string", + "dataType": "uri_file", + "dataUri": "string", + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "dataType": "uri_file", + "dataUri": "string", + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + }, + "201": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "dataType": "uri_file", + "dataUri": "string", + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "DataVersions_CreateOrUpdate", + "title": "CreateOrUpdate Workspace Data Version Base." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/delete.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/delete.json new file mode 100644 index 0000000000..a1f0715ba4 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "DataVersions_Delete", + "title": "Delete Workspace Data Version Base." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/get.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/get.json new file mode 100644 index 0000000000..d8aef3007c --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/get.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "dataType": "uri_file", + "dataUri": "string", + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "DataVersions_Get", + "title": "Get Workspace Data Version Base." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/list.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/list.json new file mode 100644 index 0000000000..1d07832f6d --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/DataVersionBase/list.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "name": "string", + "$orderBy": "string", + "$skipToken": "string", + "$tags": "string", + "$top": 1, + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "dataType": "uri_file", + "dataUri": "string", + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + } + ] + }, + "headers": {} + } + }, + "operationId": "DataVersions_List", + "title": "List Workspace Data Version Base." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/createOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/createOrUpdate.json new file mode 100644 index 0000000000..66929e9458 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/createOrUpdate.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "name": "testEnvironment", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "description": "string", + "properties": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + }, + "tags": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + } + } + }, + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "testworkspace" + }, + "responses": { + "200": { + "body": { + "name": "testEnvironment", + "type": "Microsoft.MachineLearningServices/workspaces/environments", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/environments/testEnvironment", + "properties": { + "description": "string", + "properties": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + }, + "tags": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + } + }, + "systemData": { + "createdAt": "2020-12-04T03:39:11.300Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-12-04T03:39:11.300Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "testEnvironment", + "type": "Microsoft.MachineLearningServices/workspaces/environments", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/environments/testEnvironment", + "properties": { + "description": "string", + "properties": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + }, + "tags": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + } + }, + "systemData": { + "createdAt": "2020-12-04T03:39:11.301Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-12-04T03:39:11.301Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "EnvironmentContainers_CreateOrUpdate", + "title": "CreateOrUpdate Workspace Environment Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/delete.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/delete.json new file mode 100644 index 0000000000..3f3a251655 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "name": "testContainer", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "testworkspace" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "EnvironmentContainers_Delete", + "title": "Delete Workspace Environment Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/get.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/get.json new file mode 100644 index 0000000000..11320227b0 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "name": "testEnvironment", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "testworkspace" + }, + "responses": { + "200": { + "body": { + "name": "testEnvironment", + "type": "Microsoft.MachineLearningServices/workspaces/environments", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/environments/testEnvironment", + "properties": { + "description": "string", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "EnvironmentContainers_Get", + "title": "Get Workspace Environment Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/list.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/list.json new file mode 100644 index 0000000000..61f5b2f7c3 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentContainer/list.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "$skipToken": "skiptoken", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "testworkspace" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "testEnvironment", + "type": "Microsoft.MachineLearningServices/workspaces/environments", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/environments/testEnvironment", + "properties": { + "description": "string", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "EnvironmentContainers_List", + "title": "List Workspace Environment Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/createOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/createOrUpdate.json new file mode 100644 index 0000000000..09795e2c9a --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/createOrUpdate.json @@ -0,0 +1,140 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "description": "string", + "build": { + "contextUri": "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/", + "dockerfilePath": "prod/Dockerfile" + }, + "condaFile": "string", + "image": "docker.io/tensorflow/serving:latest", + "inferenceConfig": { + "livenessRoute": { + "path": "string", + "port": 1 + }, + "readinessRoute": { + "path": "string", + "port": 1 + }, + "scoringRoute": { + "path": "string", + "port": 1 + } + }, + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "build": { + "contextUri": "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/", + "dockerfilePath": "prod/Dockerfile" + }, + "condaFile": "string", + "environmentType": "Curated", + "image": "docker.io/tensorflow/serving:latest", + "inferenceConfig": { + "livenessRoute": { + "path": "string", + "port": 1 + }, + "readinessRoute": { + "path": "string", + "port": 1 + }, + "scoringRoute": { + "path": "string", + "port": 1 + } + }, + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + }, + "201": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "build": { + "contextUri": "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/", + "dockerfilePath": "prod/Dockerfile" + }, + "condaFile": "string", + "environmentType": "Curated", + "image": "docker.io/tensorflow/serving:latest", + "inferenceConfig": { + "livenessRoute": { + "path": "string", + "port": 1 + }, + "readinessRoute": { + "path": "string", + "port": 1 + }, + "scoringRoute": { + "path": "string", + "port": 1 + } + }, + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "EnvironmentVersions_CreateOrUpdate", + "title": "CreateOrUpdate Workspace Environment Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/delete.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/delete.json new file mode 100644 index 0000000000..581f78d609 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "EnvironmentVersions_Delete", + "title": "Delete Workspace Environment Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/get.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/get.json new file mode 100644 index 0000000000..5b2c82dd8d --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/get.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "build": { + "contextUri": "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/", + "dockerfilePath": "prod/Dockerfile" + }, + "condaFile": "string", + "environmentType": "Curated", + "image": "docker.io/tensorflow/serving:latest", + "inferenceConfig": { + "livenessRoute": { + "path": "string", + "port": 1 + }, + "readinessRoute": { + "path": "string", + "port": 1 + }, + "scoringRoute": { + "path": "string", + "port": 1 + } + }, + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "EnvironmentVersions_Get", + "title": "Get Workspace Environment Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/list.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/list.json new file mode 100644 index 0000000000..ef06a074eb --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/EnvironmentVersion/list.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "name": "string", + "$orderBy": "string", + "$skipToken": "string", + "$top": 1, + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "build": { + "contextUri": "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/", + "dockerfilePath": "prod/Dockerfile" + }, + "condaFile": "string", + "environmentType": "Curated", + "image": "docker.io/tensorflow/serving:latest", + "inferenceConfig": { + "livenessRoute": { + "path": "string", + "port": 1 + }, + "readinessRoute": { + "path": "string", + "port": 1 + }, + "scoringRoute": { + "path": "string", + "port": 1 + } + }, + "isAnonymous": false, + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + } + ] + }, + "headers": {} + } + }, + "operationId": "EnvironmentVersions_List", + "title": "List Workspace Environment Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/createOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/createOrUpdate.json new file mode 100644 index 0000000000..74b786eac2 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/createOrUpdate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "name": "testContainer", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "description": "Model container description", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "workspace123" + }, + "responses": { + "200": { + "body": { + "name": "testContainer", + "type": "Microsoft.MachineLearningServices/workspaces/models", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/models/testContainer", + "properties": { + "description": "Model container description", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "testContainer", + "type": "Microsoft.MachineLearningServices/workspaces/models", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/models/testContainer", + "properties": { + "description": "Model container description", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ModelContainers_CreateOrUpdate", + "title": "CreateOrUpdate Workspace Model Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/delete.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/delete.json new file mode 100644 index 0000000000..4d27cef3ea --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "name": "testContainer", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "workspace123" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ModelContainers_Delete", + "title": "Delete Workspace Model Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/get.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/get.json new file mode 100644 index 0000000000..a38834f7a9 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "name": "testContainer", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "workspace123" + }, + "responses": { + "200": { + "body": { + "name": "testContainer", + "type": "Microsoft.MachineLearningServices/workspaces/models", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/models/testContainer", + "properties": { + "description": "Model container description", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ModelContainers_Get", + "title": "Get Workspace Model Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/list.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/list.json new file mode 100644 index 0000000000..7a8eaf3261 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelContainer/list.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "name": "testContainer", + "api-version": "2023-06-01-preview", + "resourceGroupName": "testrg123", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "workspaceName": "workspace123" + }, + "responses": { + "200": { + "body": { + "nextLink": "nextlink", + "value": [ + { + "name": "testContainer", + "type": "Microsoft.MachineLearningServices/workspaces/models", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/models/testContainer", + "properties": { + "description": "Model container description", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "systemData": { + "createdAt": "2020-12-01T12:00:00.000Z", + "createdBy": "John Smith", + "createdByType": "User", + "lastModifiedAt": "2020-12-01T12:00:00.000Z", + "lastModifiedBy": "John Smith", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "ModelContainers_List", + "title": "List Workspace Model Container." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/createOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/createOrUpdate.json new file mode 100644 index 0000000000..41615d6287 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/createOrUpdate.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "description": "string", + "flavors": { + "string": { + "data": { + "string": "string" + } + } + }, + "isAnonymous": false, + "modelType": "CustomModel", + "modelUri": "string", + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "flavors": { + "string": { + "data": { + "string": "string" + } + } + }, + "isAnonymous": false, + "modelType": "CustomModel", + "modelUri": "string", + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + }, + "201": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "flavors": { + "string": { + "data": { + "string": "string" + } + } + }, + "isAnonymous": false, + "modelType": "CustomModel", + "modelUri": "string", + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "ModelVersions_CreateOrUpdate", + "title": "CreateOrUpdate Workspace Model Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/delete.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/delete.json new file mode 100644 index 0000000000..5cd10358bd --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ModelVersions_Delete", + "title": "Delete Workspace Model Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/get.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/get.json new file mode 100644 index 0000000000..8286e397da --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/get.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "flavors": { + "string": { + "data": { + "string": "string" + } + } + }, + "isAnonymous": false, + "modelType": "CustomModel", + "modelUri": "string", + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + }, + "headers": {} + } + }, + "operationId": "ModelVersions_Get", + "title": "Get Workspace Model Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/list.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/list.json new file mode 100644 index 0000000000..a586a8a959 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/list.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "name": "string", + "description": "string", + "$orderBy": "string", + "$skipToken": "string", + "$top": 1, + "api-version": "2023-06-01-preview", + "offset": 1, + "properties": "string", + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "tags": "string", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "name": "string", + "type": "string", + "id": "string", + "properties": { + "description": "string", + "flavors": { + "string": { + "data": { + "string": "string" + } + } + }, + "isAnonymous": false, + "modelType": "CustomModel", + "modelUri": "string", + "properties": { + "string": "string" + }, + "tags": { + "string": "string" + } + }, + "systemData": { + "createdAt": "2020-01-01T12:34:56.999Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-01-01T12:34:56.999Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + } + } + ] + }, + "headers": {} + } + }, + "operationId": "ModelVersions_List", + "title": "List Workspace Model Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/package.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/package.json new file mode 100644 index 0000000000..a575bda8a2 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/examples/2023-06-01-preview/Workspace/ModelVersion/package.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "name": "string", + "api-version": "2023-06-01-preview", + "body": { + "baseEnvironmentSource": { + "baseEnvironmentSourceType": "EnvironmentAsset", + "resourceId": "string" + }, + "environmentVariables": { + "string": "string" + }, + "inferencingServer": { + "codeConfiguration": { + "codeId": "string", + "scoringScript": "string" + }, + "serverType": "AzureMLBatch" + }, + "inputs": [ + { + "path": { + "inputPathType": "Url", + "url": "string" + }, + "inputType": "UriFile", + "mode": "Download", + "mountPath": "string" + } + ], + "modelConfiguration": { + "mode": "ReadOnlyMount", + "mountPath": "string" + }, + "tags": { + "string": "string" + }, + "targetEnvironmentId": "string" + }, + "resourceGroupName": "test-rg", + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "version": "string", + "workspaceName": "my-aml-workspace" + }, + "responses": { + "200": { + "body": { + "baseEnvironmentSource": { + "baseEnvironmentSourceType": "EnvironmentAsset", + "resourceId": "string" + }, + "buildId": "string", + "buildState": "NotStarted", + "environmentVariables": { + "string": "string" + }, + "inferencingServer": { + "codeConfiguration": { + "codeId": "string", + "scoringScript": "string" + }, + "serverType": "AzureMLBatch" + }, + "inputs": [ + { + "path": { + "inputPathType": "Url", + "url": "string" + }, + "inputType": "UriFile", + "mode": "Download", + "mountPath": "string" + } + ], + "logUrl": "string", + "modelConfiguration": { + "mode": "ReadOnlyMount", + "mountPath": "string" + }, + "tags": { + "string": "string" + }, + "targetEnvironmentId": "string" + }, + "headers": {} + }, + "202": { + "headers": { + "Location": "example_location" + } + } + }, + "operationId": "ModelVersions_Package", + "title": "Package Workspace Model Version." +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/legacy.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/legacy.tsp new file mode 100644 index 0000000000..05225f6ce2 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/legacy.tsp @@ -0,0 +1,326 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Legacy { + interface LegacyOperations< + ParentParameters extends {}, + ResourceTypeParameter extends {}, + ErrorType extends {} = ErrorResponse + > { + /** + * @dev A long-running resource CreateOrUpdate (PUT) + * @template Resource the resource being created or updated + * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PUT operation + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @doc("Create a {name}", Resource) + @armResourceCreateOrUpdate(Resource) + @Azure.Core.Foundations.Private.defaultFinalStateVia(#[ + "location", + "azure-async-operation" + ]) + @put + CreateOrUpdateAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + LroHeaders extends TypeSpec.Reflection.Model = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< + Resource, + LroHeaders + > + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot resource: Resource, + ): Response | ErrorType; + + /** + * @dev A synchronous resource CreateOrUpdate (PUT) + * @template Resource the resource being created or updated + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PUT operation + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @doc("Create a {name}", Resource) + @armResourceCreateOrUpdate(Resource) + @put + CreateOrUpdateSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResourceUpdatedResponse | ArmResourceCreatedSyncResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot resource: Resource, + ): Response | ErrorType; + + /** + * @dev A long-running resource Update (PATCH) + * @template Resource the resource being created or updated + * @template PatchModel the PATCH request model + * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PATCH operation + */ + @autoRoute + @doc("Update a {name}", Resource) + @armResourceUpdate(Resource) + @patch + CustomPatchAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader< + Azure.Core.StatusMonitorPollingOptions, + Resource, + string + > & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmResponse | ArmAcceptedLroResponse< + "Resource update request accepted.", + LroHeaders + > + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot properties: PatchModel, + ): Response | ErrorType; + + /** + * @dev A synchronous resource Update (PATCH) + * @template Resource the resource being created or updated + * @template PatchModel the PATCH request model + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the PATCH operation + */ + @autoRoute + @doc("Update a {name}", Resource) + @armResourceUpdate(Resource) + @patch + CustomPatchSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + @doc("Resource create parameters.") @bodyRoot properties: PatchModel, + ): Response | ErrorType; + + /** + * @dev Delete a resource asynchronously + * @template Resource The resource being deleted + * @template LroHeaders The lro headers for the operation + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the delete operation + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid" + @autoRoute + @doc("Delete a {name}", Resource) + @delete + @deletesResource(Resource) + @armResourceDelete(Resource) + DeleteWithoutOkAsync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Delete a resource synchronously + * @template Resource The resource being deleted + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response(s) for the delete operation + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid" + @autoRoute + @doc("Delete a {name}", Resource) + @delete + @deletesResource(Resource) + @armResourceDelete(Resource) + DeleteSync< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmDeletedResponse | ArmDeletedNoContentResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Get a resource + * @template Resource The resource being read + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response for a get operation. + */ + @autoRoute + @doc("Get a {name}", Resource) + @get + @readsResource(Resource) + @armResourceRead(Resource) + Read< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev Get a resource + * @template Resource The resource being read + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The success response for a get operation. + */ + @doc("Get a {name}", Resource) + @get + @readsResource(Resource) + @armResourceRead(Resource) + ReadRoute< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + ): Response | ErrorType; + + /** + * @dev List a resource + * @template Resource The resource being listed + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The response returned by the list + */ + @autoRoute + @doc("List {name} resources", Resource) + @get + @listsResource(Resource) + @segmentOf(Resource) + @armResourceList(Resource) + List< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse> + >(...ParentParameters, ...Parameters): Response | ErrorType; + + /** + * @dev List a resource + * @template Resource The resource being listed + * @template Parameters Optional. Additional parameters after the path parameters + * @template Response Optional. The response returned by the list + */ + @doc("List {name} resources", Resource) + @get + @listsResource(Resource) + @armResourceList(Resource) + ListRoute< + Resource extends Azure.ResourceManager.CommonTypes.Resource, + Parameters extends {} = {}, + Response extends {} = ArmResponse> + >(...ParentParameters, ...Parameters): Response | ErrorType; + + /** + * A synchronous resource action. + * @template Resource The resource being acted upon + * @template Request The request model for the action + * @template Response The response model for the action + * @template Parameters Optional. Additional parameters after the path parameters + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @autoRoute + @armResourceAction(Resource) + @Private.enforceConstraint(Resource, Foundations.Resource) + @post + @returnsDoc("Azure operation completed successfully.") + ActionSync< + Resource extends Foundations.Resource, + Request extends TypeSpec.Reflection.Model | void, + Response extends TypeSpec.Reflection.Model | void, + Parameters extends {} = {} + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + + @doc("The content of the action request") + @bodyRoot + body: Request, + ): Response | ErrorType; + + /** + * A long-running resource action. + * @template Resource The resource being acted upon + * @template Request The request model for the action + * @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response + * @template Response The response model for the action + * @template Parameters Optional. Additional parameters after the path parameters + */ + #suppress "@azure-tools/typespec-azure-core/no-response-body" "ARM" + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "template" + @autoRoute + @armResourceAction(Resource) + @Private.enforceConstraint(Resource, Foundations.Resource) + @post + @returnsDoc("Azure operation completed successfully.") + ActionAsync< + Resource extends Foundations.Resource, + Request extends TypeSpec.Reflection.Model | void, + Result extends TypeSpec.Reflection.Model | void, + LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader< + Azure.Core.StatusMonitorPollingOptions, + Result, + string + > & + Azure.Core.Foundations.RetryAfterHeader, + Parameters extends {} = {}, + Response extends {} | void = ArmAcceptedLroResponse< + "Resource operation accepted.", + LroHeaders + > | Result + >( + ...ParentParameters, + ...ResourceTypeParameter, + ...Parameters, + + @doc("The content of the action request") + @bodyRoot + body: Request, + ): Response | ErrorType; + } + /** + * @dev Get the provider namespace key-value pair + * @template Resource Optional. The resource to get the provider namespace for. + */ + model Provider { + ...ProviderNamespace; + } +} diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/main.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/main.tsp index ed754a116a..2541e3b1f1 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/main.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/main.tsp @@ -42,6 +42,7 @@ import "./WorkspaceConnectionPropertiesV2BasicResource.tsp"; import "./OutboundRuleBasicResource.tsp"; import "./PrivateEndpointConnection.tsp"; import "./routes.tsp"; +import "./legacy.tsp"; using TypeSpec.Rest; using TypeSpec.Http; diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/routes.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/routes.tsp index 48ffe283f3..b6d65be6a6 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/routes.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/routes.tsp @@ -76,1575 +76,3 @@ interface QuotasOperations { Parameters = LocationParameter >; } - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface CodeContainersOperations { - /** - * List containers. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("List containers.") - @operationId("CodeContainers_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes") - @get - list( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Continuation token for pagination. - */ - @query("$skip") - $skip?: string, - ): ArmResponse | ErrorResponse; - - /** - * Delete container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Delete container.") - @operationId("CodeContainers_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}") - @delete - delete( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - ): OkResponse | ErrorResponse; - - /** - * Get container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Get container.") - @operationId("CodeContainers_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}") - @get - get( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - ): ArmResponse | ErrorResponse; - - /** - * Create or update container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Create or update container.") - @operationId("CodeContainers_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Container entity to create or update. - */ - @bodyRoot - body: CodeContainerResource, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface CodeVersionsOperations { - /** - * List versions. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("List versions.") - @operationId("CodeVersions_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions") - @get - list( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - - /** - * Ordering of list. - */ - @query("$orderBy") - $orderBy?: string, - - /** - * Maximum number of records to return. - */ - @query("$top") - $top?: int32, - - /** - * Continuation token for pagination. - */ - @query("$skip") - $skip?: string, - - /** - * If specified, return CodeVersion assets with specified content hash value, regardless of name - */ - @query("hash") - hash?: string, - - /** - * Hash algorithm version when listing by hash - */ - @query("hashVersion") - hashVersion?: string, - ): ArmResponse | ErrorResponse; - - /** - * Delete version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Delete version.") - @operationId("CodeVersions_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}") - @delete - delete( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - - /** - * Version identifier. This is case-sensitive. - */ - @path - version: string, - ): OkResponse | ErrorResponse; - - /** - * Get version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Get version.") - @operationId("CodeVersions_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}") - @get - get( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - - /** - * Version identifier. This is case-sensitive. - */ - @path - version: string, - ): ArmResponse | ErrorResponse; - - /** - * Create or update version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Create or update version.") - @operationId("CodeVersions_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Version identifier. This is case-sensitive. - */ - @path - version: string, - - /** - * Version entity to create or update. - */ - @bodyRoot - body: CodeVersionResource, - ): ArmResponse | ErrorResponse; - - /** - * Generate a storage location and credential for the client to upload a code asset to. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Generate a storage location and credential for the client to upload a code asset to.") - @operationId("CodeVersions_CreateOrGetStartPendingUpload") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}/startPendingUpload") - @post - createOrGetStartPendingUpload( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - - /** - * Version identifier. This is case-sensitive. - */ - @path - version: string, - - /** - * Pending upload request object - */ - @bodyRoot - body: PendingUploadRequestDto, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface ComponentContainersOperations { - /** - * List component containers. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("List component containers.") - @operationId("ComponentContainers_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components") - @get - list( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Continuation token for pagination. - */ - @query("$skip") - $skip?: string, - - /** - * View type for including/excluding (for example) archived entities. - */ - @query("listViewType") - listViewType?: ListViewType, - ): ArmResponse | ErrorResponse; - - /** - * Delete container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Delete container.") - @operationId("ComponentContainers_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}") - @delete - delete( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @path - name: string, - ): OkResponse | ErrorResponse; - - /** - * Get container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Get container.") - @operationId("ComponentContainers_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}") - @get - get( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @path - name: string, - ): ArmResponse | ErrorResponse; - - /** - * Create or update container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Create or update container.") - @operationId("ComponentContainers_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Container entity to create or update. - */ - @bodyRoot - body: ComponentContainerResource, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface ComponentVersionsOperations { - /** - * List component versions. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("List component versions.") - @operationId("ComponentVersions_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions") - @get - list( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Component name. - */ - @path - name: string, - - /** - * Ordering of list. - */ - @query("$orderBy") - $orderBy?: string, - - /** - * Maximum number of records to return. - */ - @query("$top") - $top?: int32, - - /** - * Continuation token for pagination. - */ - @query("$skip") - $skip?: string, - - /** - * View type for including/excluding (for example) archived entities. - */ - @query("listViewType") - listViewType?: ListViewType, - - /** - * Component stage. - */ - @query("stage") - stage?: string, - ): ArmResponse | ErrorResponse; - - /** - * Delete version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Delete version.") - @operationId("ComponentVersions_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}") - @delete - delete( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @path - name: string, - - /** - * Version identifier. - */ - @path - version: string, - ): OkResponse | ErrorResponse; - - /** - * Get version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Get version.") - @operationId("ComponentVersions_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}") - @get - get( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @path - name: string, - - /** - * Version identifier. - */ - @path - version: string, - ): ArmResponse | ErrorResponse; - - /** - * Create or update version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Create or update version.") - @operationId("ComponentVersions_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Version identifier. - */ - @path - version: string, - - /** - * Version entity to create or update. - */ - @bodyRoot - body: ComponentVersionResource, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface DataContainersOperations { - /** - * List data containers. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("List data containers.") - @operationId("DataContainers_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data") - @get - list( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Continuation token for pagination. - */ - @query("$skip") - $skip?: string, - - /** - * View type for including/excluding (for example) archived entities. - */ - @query("listViewType") - listViewType?: ListViewType, - ): ArmResponse | ErrorResponse; - - /** - * Delete container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Delete container.") - @operationId("DataContainers_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}") - @delete - delete( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @path - name: string, - ): OkResponse | ErrorResponse; - - /** - * Get container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Get container.") - @operationId("DataContainers_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}") - @get - get( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @path - name: string, - ): ArmResponse | ErrorResponse; - - /** - * Create or update container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Create or update container.") - @operationId("DataContainers_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Container entity to create or update. - */ - @bodyRoot - body: DataContainerResource, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface DataVersionsOperations { - /** - * List data versions in the data container - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("List data versions in the data container") - @operationId("DataVersions_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions") - @get - list( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Data container's name - */ - @path - name: string, - - /** - * Please choose OrderBy value from ['createdtime', 'modifiedtime'] - */ - @query("$orderBy") - $orderBy?: string, - - /** - * Top count of results, top count cannot be greater than the page size. - * If topCount > page size, results with be default page size count will be returned - */ - @query("$top") - $top?: int32, - - /** - * Continuation token for pagination. - */ - @query("$skip") - $skip?: string, - - /** - * Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 - */ - @query("$tags") - $tags?: string, - - /** - * [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. - */ - @query("listViewType") - listViewType?: ListViewType, - - /** - * data stage - */ - @query("stage") - stage?: string, - ): ArmResponse | ErrorResponse; - - /** - * Delete version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Delete version.") - @operationId("DataVersions_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}") - @delete - delete( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @path - name: string, - - /** - * Version identifier. - */ - @path - version: string, - ): OkResponse | ErrorResponse; - - /** - * Get version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Get version.") - @operationId("DataVersions_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}") - @get - get( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @path - name: string, - - /** - * Version identifier. - */ - @path - version: string, - ): ArmResponse | ErrorResponse; - - /** - * Create or update version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Create or update version.") - @operationId("DataVersions_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Version identifier. - */ - @path - version: string, - - /** - * Version entity to create or update. - */ - @bodyRoot - body: DataVersionBaseResource, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface EnvironmentContainersOperations { - /** - * List environment containers. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("List environment containers.") - @operationId("EnvironmentContainers_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments") - @get - list( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Continuation token for pagination. - */ - @query("$skip") - $skip?: string, - - /** - * View type for including/excluding (for example) archived entities. - */ - @query("listViewType") - listViewType?: ListViewType, - ): ArmResponse | ErrorResponse; - - /** - * Delete container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Delete container.") - @operationId("EnvironmentContainers_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}") - @delete - delete( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - ): OkResponse | ErrorResponse; - - /** - * Get container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Get container.") - @operationId("EnvironmentContainers_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}") - @get - get( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - ): ArmResponse | ErrorResponse; - - /** - * Create or update container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Create or update container.") - @operationId("EnvironmentContainers_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Container entity to create or update. - */ - @bodyRoot - body: EnvironmentContainerResource, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface EnvironmentVersionsOperations { - /** - * List versions. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("List versions.") - @operationId("EnvironmentVersions_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions") - @get - list( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - - /** - * Ordering of list. - */ - @query("$orderBy") - $orderBy?: string, - - /** - * Maximum number of records to return. - */ - @query("$top") - $top?: int32, - - /** - * Continuation token for pagination. - */ - @query("$skip") - $skip?: string, - - /** - * View type for including/excluding (for example) archived entities. - */ - @query("listViewType") - listViewType?: ListViewType, - - /** - * Stage for including/excluding (for example) archived entities. Takes priority over listViewType - */ - @query("stage") - stage?: string, - ): ArmResponse | ErrorResponse; - - /** - * Delete version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Delete version.") - @operationId("EnvironmentVersions_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}") - @delete - delete( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - - /** - * Version identifier. This is case-sensitive. - */ - @path - version: string, - ): OkResponse | ErrorResponse; - - /** - * Get version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Get version.") - @operationId("EnvironmentVersions_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}") - @get - get( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - - /** - * Version identifier. This is case-sensitive. - */ - @path - version: string, - ): ArmResponse | ErrorResponse; - - /** - * Creates or updates an EnvironmentVersion. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Creates or updates an EnvironmentVersion.") - @operationId("EnvironmentVersions_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Name of EnvironmentVersion. This is case-sensitive. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Version of EnvironmentVersion. - */ - @path - version: string, - - /** - * Definition of EnvironmentVersion. - */ - @bodyRoot - body: EnvironmentVersionResource, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface ModelContainersOperations { - /** - * List model containers. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("List model containers.") - @operationId("ModelContainers_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models") - @get - list( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Continuation token for pagination. - */ - @query("$skip") - $skip?: string, - - /** - * Maximum number of results to return. - */ - @query("count") - count?: int32, - - /** - * View type for including/excluding (for example) archived entities. - */ - @query("listViewType") - listViewType?: ListViewType, - ): ArmResponse | ErrorResponse; - - /** - * Delete container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Delete container.") - @operationId("ModelContainers_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}") - @delete - delete( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - ): OkResponse | ErrorResponse; - - /** - * Get container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Get container.") - @operationId("ModelContainers_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}") - @get - get( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - ): ArmResponse | ErrorResponse; - - /** - * Create or update container. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Create or update container.") - @operationId("ModelContainers_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Container entity to create or update. - */ - @bodyRoot - body: ModelContainerResource, - ): ArmResponse | ErrorResponse; -} - -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" -interface ModelVersionsOperations { - /** - * List model versions. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("List model versions.") - @operationId("ModelVersions_List") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions") - @get - list( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Model name. This is case-sensitive. - */ - @path - name: string, - - /** - * Continuation token for pagination. - */ - @query("$skip") - $skip?: string, - - /** - * Ordering of list. - */ - @query("$orderBy") - $orderBy?: string, - - /** - * Maximum number of records to return. - */ - @query("$top") - $top?: int32, - - /** - * Model version. - */ - @query("version") - version?: string, - - /** - * Model description. - */ - @query("description") - description?: string, - - /** - * Number of initial results to skip. - */ - @query("offset") - offset?: int32, - - /** - * Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 - */ - @query("tags") - tags?: string, - - /** - * Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 - */ - @query("properties") - properties?: string, - - /** - * Name of the feed. - */ - @query("feed") - feed?: string, - - /** - * View type for including/excluding (for example) archived entities. - */ - @query("listViewType") - listViewType?: ListViewType, - - /** - * Model stage - */ - @query("stage") - stage?: string, - ): ArmResponse | ErrorResponse; - - /** - * Delete version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Delete version.") - @operationId("ModelVersions_Delete") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}") - @delete - delete( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - - /** - * Version identifier. This is case-sensitive. - */ - @path - version: string, - ): OkResponse | ErrorResponse; - - /** - * Get version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Get version.") - @operationId("ModelVersions_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}") - @get - get( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @path - name: string, - - /** - * Version identifier. This is case-sensitive. - */ - @path - version: string, - ): ArmResponse | ErrorResponse; - - /** - * Create or update version. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Create or update version.") - @operationId("ModelVersions_CreateOrUpdate") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}") - @put - createOrUpdate( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Version identifier. This is case-sensitive. - */ - @path - version: string, - - /** - * Version entity to create or update. - */ - @bodyRoot - body: ModelVersionResource, - ): ArmResponse | ErrorResponse; - - /** - * Model Version Package operation. - */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @summary("Model Version Package operation.") - @operationId("ModelVersions_Package") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}/package") - @post - package( - ...ApiVersionParameter, - ...SubscriptionIdParameter, - ...ResourceGroupParameter, - - /** - * Name of Azure Machine Learning workspace. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") - @path - workspaceName: string, - - /** - * Container name. This is case-sensitive. - */ - @pattern("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - @path - name: string, - - /** - * Version identifier. This is case-sensitive. - */ - @path - version: string, - - /** - * Package operation request body. - */ - @bodyRoot - body: PackageRequest, - ): ArmResponse | ArmAcceptedResponse | ErrorResponse; -} diff --git a/packages/extensions/openapi-to-typespec/test/arm-networkanalytics/resources.json b/packages/extensions/openapi-to-typespec/test/arm-networkanalytics/resources.json index ab1c48f1d6..0f9faa05ab 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-networkanalytics/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-networkanalytics/resources.json @@ -1,308 +1,314 @@ { "Resources": { - "DataProduct": { - "Name": "DataProduct", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - "Method": "GET", - "OperationID": "DataProducts_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieve data product resource." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - "Method": "PUT", - "OperationID": "DataProducts_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create data product resource." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - "Method": "PATCH", - "OperationID": "DataProducts_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update data product resource." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", - "Method": "DELETE", - "OperationID": "DataProducts_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete data product resource." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", - "Method": "GET", - "OperationID": "DataProducts_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" + "DataProduct": [ + { + "Name": "DataProduct", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + "Method": "GET", + "OperationID": "DataProducts_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieve data product resource." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + "Method": "PUT", + "OperationID": "DataProducts_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create data product resource." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + "Method": "PATCH", + "OperationID": "DataProducts_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update data product resource." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}", + "Method": "DELETE", + "OperationID": "DataProducts_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete data product resource." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts", + "Method": "GET", + "OperationID": "DataProducts_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List data products by resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", + "Method": "GET", + "OperationID": "DataProducts_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List data products by subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "AddUserRole", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", + "Method": "POST", + "OperationID": "DataProducts_AddUserRole", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Assign role to the data product." }, - "Description": "List data products by resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts", - "Method": "GET", - "OperationID": "DataProducts_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "GenerateStorageAccountSasToken", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", + "Method": "POST", + "OperationID": "DataProducts_GenerateStorageAccountSasToken", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Generate sas token for storage account." }, - "Description": "List data products by subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "AddUserRole", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole", - "Method": "POST", - "OperationID": "DataProducts_AddUserRole", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Assign role to the data product." - }, - { - "Name": "GenerateStorageAccountSasToken", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken", - "Method": "POST", - "OperationID": "DataProducts_GenerateStorageAccountSasToken", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Generate sas token for storage account." - }, - { - "Name": "ListRolesAssignments", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", - "Method": "POST", - "OperationID": "DataProducts_ListRolesAssignments", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "List user roles associated with the data product." - }, - { - "Name": "RemoveUserRole", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", - "Method": "POST", - "OperationID": "DataProducts_RemoveUserRole", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Remove role from the data product." - }, - { - "Name": "RotateKey", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", - "Method": "POST", - "OperationID": "DataProducts_RotateKey", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Initiate key rotation on Data Product." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "DataProduct", - "ResourceType": "Microsoft.NetworkAnalytics/dataProducts", - "ResourceKey": "dataProductName", - "ResourceKeySegment": "dataProducts", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DataProductsCatalog": { - "Name": "DataProductsCatalog", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", - "Method": "GET", - "OperationID": "DataProductsCatalogs_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieve data type resource." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", - "Method": "GET", - "OperationID": "DataProductsCatalogs_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListRolesAssignments", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments", + "Method": "POST", + "OperationID": "DataProducts_ListRolesAssignments", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "List user roles associated with the data product." }, - "Description": "List data catalog by resource group." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", - "Method": "GET", - "OperationID": "DataProductsCatalogs_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "RemoveUserRole", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole", + "Method": "POST", + "OperationID": "DataProducts_RemoveUserRole", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Remove role from the data product." }, - "Description": "List data catalog by subscription." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "DataProductsCatalog", - "ResourceType": "Microsoft.NetworkAnalytics/dataProductsCatalogs", - "ResourceKey": "default", - "ResourceKeySegment": "dataProductsCatalogs", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "DataType": { - "Name": "DataType", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - "Method": "GET", - "OperationID": "DataTypes_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieve data type resource." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - "Method": "PUT", - "OperationID": "DataTypes_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create data type resource." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - "Method": "PATCH", - "OperationID": "DataTypes_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update data type resource." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", - "Method": "DELETE", - "OperationID": "DataTypes_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete data type resource." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", - "Method": "GET", - "OperationID": "DataTypes_ListByDataProduct", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByDataProduct", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "RotateKey", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey", + "Method": "POST", + "OperationID": "DataProducts_RotateKey", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Initiate key rotation on Data Product." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "DataProduct", + "ResourceType": "Microsoft.NetworkAnalytics/dataProducts", + "ResourceKey": "dataProductName", + "ResourceKeySegment": "dataProducts", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DataProductsCatalog": [ + { + "Name": "DataProductsCatalog", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default", + "Method": "GET", + "OperationID": "DataProductsCatalogs_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieve data type resource." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", + "Method": "GET", + "OperationID": "DataProductsCatalogs_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List data catalog by resource group." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", + "Method": "GET", + "OperationID": "DataProductsCatalogs_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List data catalog by subscription." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "DataProductsCatalog", + "ResourceType": "Microsoft.NetworkAnalytics/dataProductsCatalogs", + "ResourceKey": "default", + "ResourceKeySegment": "dataProductsCatalogs", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "DataType": [ + { + "Name": "DataType", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + "Method": "GET", + "OperationID": "DataTypes_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieve data type resource." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + "Method": "PUT", + "OperationID": "DataTypes_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create data type resource." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + "Method": "PATCH", + "OperationID": "DataTypes_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update data type resource." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}", + "Method": "DELETE", + "OperationID": "DataTypes_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete data type resource." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes", + "Method": "GET", + "OperationID": "DataTypes_ListByDataProduct", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByDataProduct", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List data type by parent resource." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "DeleteData", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", + "Method": "POST", + "OperationID": "DataTypes_DeleteData", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete data for data type." }, - "Description": "List data type by parent resource." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "DeleteData", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/deleteData", - "Method": "POST", - "OperationID": "DataTypes_DeleteData", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete data for data type." - }, - { - "Name": "GenerateStorageContainerSasToken", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", - "Method": "POST", - "OperationID": "DataTypes_GenerateStorageContainerSasToken", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Generate sas token for storage container." - } - ], - "Parents": [ - "DataProduct" - ], - "SwaggerModelName": "DataType", - "ResourceType": "Microsoft.NetworkAnalytics/dataProducts/dataTypes", - "ResourceKey": "dataTypeName", - "ResourceKeySegment": "dataTypes", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + { + "Name": "GenerateStorageContainerSasToken", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}/generateStorageContainerSasToken", + "Method": "POST", + "OperationID": "DataTypes_GenerateStorageContainerSasToken", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Generate sas token for storage container." + } + ], + "Parents": [ + "DataProduct" + ], + "SwaggerModelName": "DataType", + "ResourceType": "Microsoft.NetworkAnalytics/dataProducts/dataTypes", + "ResourceKey": "dataTypeName", + "ResourceKeySegment": "dataTypes", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-playwrighttesting/resources.json b/packages/extensions/openapi-to-typespec/test/arm-playwrighttesting/resources.json index 3fccb051c1..a8d1ae1f60 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-playwrighttesting/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-playwrighttesting/resources.json @@ -1,149 +1,153 @@ { "Resources": { - "Account": { - "Name": "Account", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}", - "Method": "GET", - "OperationID": "Accounts_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Account" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}", - "Method": "PUT", - "OperationID": "Accounts_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Account" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}", - "Method": "PATCH", - "OperationID": "Accounts_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a Account" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}", - "Method": "DELETE", - "OperationID": "Accounts_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Account" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts", - "Method": "GET", - "OperationID": "Accounts_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Account resources by resource group" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/accounts", - "Method": "GET", - "OperationID": "Accounts_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Account resources by subscription ID" - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "Account", - "ResourceType": "Microsoft.AzurePlaywrightService/accounts", - "ResourceKey": "name", - "ResourceKeySegment": "accounts", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Quota": { - "Name": "Quota", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{name}", - "Method": "GET", - "OperationID": "Quotas_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get quota by name." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas", - "Method": "GET", - "OperationID": "Quotas_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List quotas for a given subscription Id." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "SubscriptionResource" - ], - "SwaggerModelName": "Quota", - "ResourceType": "Microsoft.AzurePlaywrightService/locations/quotas", - "ResourceKey": "name", - "ResourceKeySegment": "quotas", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + "Account": [ + { + "Name": "Account", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}", + "Method": "GET", + "OperationID": "Accounts_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Account" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}", + "Method": "PUT", + "OperationID": "Accounts_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Account" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}", + "Method": "PATCH", + "OperationID": "Accounts_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a Account" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}", + "Method": "DELETE", + "OperationID": "Accounts_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Account" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts", + "Method": "GET", + "OperationID": "Accounts_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Account resources by resource group" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/accounts", + "Method": "GET", + "OperationID": "Accounts_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Account resources by subscription ID" + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "Account", + "ResourceType": "Microsoft.AzurePlaywrightService/accounts", + "ResourceKey": "name", + "ResourceKeySegment": "accounts", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Quota": [ + { + "Name": "Quota", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{name}", + "Method": "GET", + "OperationID": "Quotas_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get quota by name." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas", + "Method": "GET", + "OperationID": "Quotas_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List quotas for a given subscription Id." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "SubscriptionResource" + ], + "SwaggerModelName": "Quota", + "ResourceType": "Microsoft.AzurePlaywrightService/locations/quotas", + "ResourceKey": "name", + "ResourceKeySegment": "quotas", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": true, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-servicenetworking/resources.json b/packages/extensions/openapi-to-typespec/test/arm-servicenetworking/resources.json index af1e571d42..5aafac1baa 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-servicenetworking/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-servicenetworking/resources.json @@ -1,259 +1,265 @@ { "Resources": { - "TrafficController": { - "Name": "TrafficController", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", - "Method": "GET", - "OperationID": "TrafficControllerInterface_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a TrafficController" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", - "Method": "PUT", - "OperationID": "TrafficControllerInterface_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a TrafficController" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", - "Method": "PATCH", - "OperationID": "TrafficControllerInterface_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a TrafficController" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", - "Method": "DELETE", - "OperationID": "TrafficControllerInterface_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a TrafficController" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers", - "Method": "GET", - "OperationID": "TrafficControllerInterface_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List TrafficController resources by resource group" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceNetworking/trafficControllers", - "Method": "GET", - "OperationID": "TrafficControllerInterface_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List TrafficController resources by subscription ID" - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "TrafficController", - "ResourceType": "Microsoft.ServiceNetworking/trafficControllers", - "ResourceKey": "trafficControllerName", - "ResourceKeySegment": "trafficControllers", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Association": { - "Name": "Association", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", - "Method": "GET", - "OperationID": "AssociationsInterface_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Association" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", - "Method": "PUT", - "OperationID": "AssociationsInterface_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Association" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", - "Method": "PATCH", - "OperationID": "AssociationsInterface_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a Association" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", - "Method": "DELETE", - "OperationID": "AssociationsInterface_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Association" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations", - "Method": "GET", - "OperationID": "AssociationsInterface_ListByTrafficController", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByTrafficController", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Association resources by TrafficController" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "TrafficController" - ], - "SwaggerModelName": "Association", - "ResourceType": "Microsoft.ServiceNetworking/trafficControllers/associations", - "ResourceKey": "associationName", - "ResourceKeySegment": "associations", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Frontend": { - "Name": "Frontend", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", - "Method": "GET", - "OperationID": "FrontendsInterface_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Frontend" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", - "Method": "PUT", - "OperationID": "FrontendsInterface_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Frontend" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", - "Method": "PATCH", - "OperationID": "FrontendsInterface_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a Frontend" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", - "Method": "DELETE", - "OperationID": "FrontendsInterface_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Frontend" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends", - "Method": "GET", - "OperationID": "FrontendsInterface_ListByTrafficController", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByTrafficController", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Frontend resources by TrafficController" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "TrafficController" - ], - "SwaggerModelName": "Frontend", - "ResourceType": "Microsoft.ServiceNetworking/trafficControllers/frontends", - "ResourceKey": "frontendName", - "ResourceKeySegment": "frontends", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + "TrafficController": [ + { + "Name": "TrafficController", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", + "Method": "GET", + "OperationID": "TrafficControllerInterface_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a TrafficController" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", + "Method": "PUT", + "OperationID": "TrafficControllerInterface_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a TrafficController" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", + "Method": "PATCH", + "OperationID": "TrafficControllerInterface_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a TrafficController" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", + "Method": "DELETE", + "OperationID": "TrafficControllerInterface_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a TrafficController" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers", + "Method": "GET", + "OperationID": "TrafficControllerInterface_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List TrafficController resources by resource group" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceNetworking/trafficControllers", + "Method": "GET", + "OperationID": "TrafficControllerInterface_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List TrafficController resources by subscription ID" + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "TrafficController", + "ResourceType": "Microsoft.ServiceNetworking/trafficControllers", + "ResourceKey": "trafficControllerName", + "ResourceKeySegment": "trafficControllers", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Association": [ + { + "Name": "Association", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", + "Method": "GET", + "OperationID": "AssociationsInterface_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Association" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", + "Method": "PUT", + "OperationID": "AssociationsInterface_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Association" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", + "Method": "PATCH", + "OperationID": "AssociationsInterface_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a Association" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", + "Method": "DELETE", + "OperationID": "AssociationsInterface_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Association" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations", + "Method": "GET", + "OperationID": "AssociationsInterface_ListByTrafficController", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByTrafficController", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Association resources by TrafficController" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "TrafficController" + ], + "SwaggerModelName": "Association", + "ResourceType": "Microsoft.ServiceNetworking/trafficControllers/associations", + "ResourceKey": "associationName", + "ResourceKeySegment": "associations", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Frontend": [ + { + "Name": "Frontend", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", + "Method": "GET", + "OperationID": "FrontendsInterface_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Frontend" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", + "Method": "PUT", + "OperationID": "FrontendsInterface_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Frontend" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", + "Method": "PATCH", + "OperationID": "FrontendsInterface_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a Frontend" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", + "Method": "DELETE", + "OperationID": "FrontendsInterface_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Frontend" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends", + "Method": "GET", + "OperationID": "FrontendsInterface_ListByTrafficController", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByTrafficController", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Frontend resources by TrafficController" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "TrafficController" + ], + "SwaggerModelName": "Frontend", + "ResourceType": "Microsoft.ServiceNetworking/trafficControllers/frontends", + "ResourceKey": "frontendName", + "ResourceKeySegment": "frontends", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-sphere/resources.json b/packages/extensions/openapi-to-typespec/test/arm-sphere/resources.json index 518f6e9358..36f3036b13 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-sphere/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-sphere/resources.json @@ -1,682 +1,696 @@ { "Resources": { - "Catalog": { - "Name": "Catalog", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", - "Method": "GET", - "OperationID": "Catalogs_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Catalog" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", - "Method": "PUT", - "OperationID": "Catalogs_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Catalog" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", - "Method": "PATCH", - "OperationID": "Catalogs_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a Catalog" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", - "Method": "DELETE", - "OperationID": "Catalogs_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Catalog" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs", - "Method": "GET", - "OperationID": "Catalogs_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" + "Catalog": [ + { + "Name": "Catalog", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", + "Method": "GET", + "OperationID": "Catalogs_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Catalog" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", + "Method": "PUT", + "OperationID": "Catalogs_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Catalog" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", + "Method": "PATCH", + "OperationID": "Catalogs_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a Catalog" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}", + "Method": "DELETE", + "OperationID": "Catalogs_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Catalog" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs", + "Method": "GET", + "OperationID": "Catalogs_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Catalog resources by resource group" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AzureSphere/catalogs", + "Method": "GET", + "OperationID": "Catalogs_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Catalog resources by subscription ID" + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "CountDevices", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices", + "Method": "POST", + "OperationID": "Catalogs_CountDevices", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Counts devices in catalog." }, - "Description": "List Catalog resources by resource group" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.AzureSphere/catalogs", - "Method": "GET", - "OperationID": "Catalogs_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListDeployments", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeployments", + "Method": "POST", + "OperationID": "Catalogs_ListDeployments", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListDeployments", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists deployments for catalog." }, - "Description": "List Catalog resources by subscription ID" - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "CountDevices", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices", - "Method": "POST", - "OperationID": "Catalogs_CountDevices", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Counts devices in catalog." - }, - { - "Name": "ListDeployments", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeployments", - "Method": "POST", - "OperationID": "Catalogs_ListDeployments", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListDeployments", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListDeviceGroups", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceGroups", + "Method": "POST", + "OperationID": "Catalogs_ListDeviceGroups", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListDeviceGroups", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List the device groups for the catalog." }, - "Description": "Lists deployments for catalog." - }, - { - "Name": "ListDeviceGroups", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceGroups", - "Method": "POST", - "OperationID": "Catalogs_ListDeviceGroups", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListDeviceGroups", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListDeviceInsights", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceInsights", + "Method": "POST", + "OperationID": "Catalogs_ListDeviceInsights", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListDeviceInsights", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists device insights for catalog." }, - "Description": "List the device groups for the catalog." - }, - { - "Name": "ListDeviceInsights", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceInsights", - "Method": "POST", - "OperationID": "Catalogs_ListDeviceInsights", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListDeviceInsights", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListDevices", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDevices", + "Method": "POST", + "OperationID": "Catalogs_ListDevices", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListDevices", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists devices for catalog." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "Catalog", + "ResourceType": "Microsoft.AzureSphere/catalogs", + "ResourceKey": "catalogName", + "ResourceKeySegment": "catalogs", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Certificate": [ + { + "Name": "Certificate", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}", + "Method": "GET", + "OperationID": "Certificates_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Certificate" + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates", + "Method": "GET", + "OperationID": "Certificates_ListByCatalog", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByCatalog", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Certificate resources by Catalog" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "RetrieveCertChain", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}/retrieveCertChain", + "Method": "POST", + "OperationID": "Certificates_RetrieveCertChain", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Retrieves cert chain." }, - "Description": "Lists device insights for catalog." - }, - { - "Name": "ListDevices", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDevices", - "Method": "POST", - "OperationID": "Catalogs_ListDevices", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListDevices", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "RetrieveProofOfPossessionNonce", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}/retrieveProofOfPossessionNonce", + "Method": "POST", + "OperationID": "Certificates_RetrieveProofOfPossessionNonce", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the proof of possession nonce." + } + ], + "Parents": [ + "Catalog" + ], + "SwaggerModelName": "Certificate", + "ResourceType": "Microsoft.AzureSphere/catalogs/certificates", + "ResourceKey": "serialNumber", + "ResourceKeySegment": "certificates", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Image": [ + { + "Name": "Image", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", + "Method": "GET", + "OperationID": "Images_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Image" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", + "Method": "PUT", + "OperationID": "Images_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Image" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", + "Method": "PUT", + "OperationID": "Images_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Image" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", + "Method": "DELETE", + "OperationID": "Images_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Image" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images", + "Method": "GET", + "OperationID": "Images_ListByCatalog", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByCatalog", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Image resources by Catalog" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Catalog" + ], + "SwaggerModelName": "Image", + "ResourceType": "Microsoft.AzureSphere/catalogs/images", + "ResourceKey": "imageName", + "ResourceKeySegment": "images", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Product": [ + { + "Name": "Product", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", + "Method": "GET", + "OperationID": "Products_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", + "Method": "PUT", + "OperationID": "Products_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", + "Method": "PATCH", + "OperationID": "Products_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", + "Method": "DELETE", + "OperationID": "Products_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name'" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products", + "Method": "GET", + "OperationID": "Products_ListByCatalog", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByCatalog", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Product resources by Catalog" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "CountDevices", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/countDevices", + "Method": "POST", + "OperationID": "Products_CountDevices", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Counts devices in product. '.default' and '.unassigned' are system defined values and cannot be used for product name." }, - "Description": "Lists devices for catalog." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "Catalog", - "ResourceType": "Microsoft.AzureSphere/catalogs", - "ResourceKey": "catalogName", - "ResourceKeySegment": "catalogs", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Certificate": { - "Name": "Certificate", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}", - "Method": "GET", - "OperationID": "Certificates_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Certificate" - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates", - "Method": "GET", - "OperationID": "Certificates_ListByCatalog", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByCatalog", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "GenerateDefaultDeviceGroups", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/generateDefaultDeviceGroups", + "Method": "POST", + "OperationID": "Products_GenerateDefaultDeviceGroups", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "GenerateDefaultDeviceGroups", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Generates default device groups for the product. '.default' and '.unassigned' are system defined values and cannot be used for product name." + } + ], + "Parents": [ + "Catalog" + ], + "SwaggerModelName": "Product", + "ResourceType": "Microsoft.AzureSphere/catalogs/products", + "ResourceKey": "productName", + "ResourceKeySegment": "products", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DeviceGroup": [ + { + "Name": "DeviceGroup", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", + "Method": "GET", + "OperationID": "DeviceGroups_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", + "Method": "PUT", + "OperationID": "DeviceGroups_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", + "Method": "PATCH", + "OperationID": "DeviceGroups_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", + "Method": "DELETE", + "OperationID": "DeviceGroups_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups", + "Method": "GET", + "OperationID": "DeviceGroups_ListByProduct", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByProduct", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List DeviceGroup resources by Product. '.default' and '.unassigned' are system defined values and cannot be used for product name." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ClaimDevices", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/claimDevices", + "Method": "POST", + "OperationID": "DeviceGroups_ClaimDevices", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when bulk claiming devices to a catalog only." }, - "Description": "List Certificate resources by Catalog" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "RetrieveCertChain", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}/retrieveCertChain", - "Method": "POST", - "OperationID": "Certificates_RetrieveCertChain", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Retrieves cert chain." - }, - { - "Name": "RetrieveProofOfPossessionNonce", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}/retrieveProofOfPossessionNonce", - "Method": "POST", - "OperationID": "Certificates_RetrieveProofOfPossessionNonce", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the proof of possession nonce." - } - ], - "Parents": [ - "Catalog" - ], - "SwaggerModelName": "Certificate", - "ResourceType": "Microsoft.AzureSphere/catalogs/certificates", - "ResourceKey": "serialNumber", - "ResourceKeySegment": "certificates", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Image": { - "Name": "Image", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", - "Method": "GET", - "OperationID": "Images_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Image" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", - "Method": "PUT", - "OperationID": "Images_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Image" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", - "Method": "PUT", - "OperationID": "Images_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Image" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}", - "Method": "DELETE", - "OperationID": "Images_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Image" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images", - "Method": "GET", - "OperationID": "Images_ListByCatalog", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByCatalog", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Image resources by Catalog" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Catalog" - ], - "SwaggerModelName": "Image", - "ResourceType": "Microsoft.AzureSphere/catalogs/images", - "ResourceKey": "imageName", - "ResourceKeySegment": "images", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Product": { - "Name": "Product", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", - "Method": "GET", - "OperationID": "Products_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", - "Method": "PUT", - "OperationID": "Products_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", - "Method": "PATCH", - "OperationID": "Products_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}", - "Method": "DELETE", - "OperationID": "Products_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name'" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products", - "Method": "GET", - "OperationID": "Products_ListByCatalog", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByCatalog", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Product resources by Catalog" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "CountDevices", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/countDevices", - "Method": "POST", - "OperationID": "Products_CountDevices", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Counts devices in product. '.default' and '.unassigned' are system defined values and cannot be used for product name." - }, - { - "Name": "GenerateDefaultDeviceGroups", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/generateDefaultDeviceGroups", - "Method": "POST", - "OperationID": "Products_GenerateDefaultDeviceGroups", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "GenerateDefaultDeviceGroups", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Generates default device groups for the product. '.default' and '.unassigned' are system defined values and cannot be used for product name." - } - ], - "Parents": [ - "Catalog" - ], - "SwaggerModelName": "Product", - "ResourceType": "Microsoft.AzureSphere/catalogs/products", - "ResourceKey": "productName", - "ResourceKeySegment": "products", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DeviceGroup": { - "Name": "DeviceGroup", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", - "Method": "GET", - "OperationID": "DeviceGroups_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", - "Method": "PUT", - "OperationID": "DeviceGroups_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", - "Method": "PATCH", - "OperationID": "DeviceGroups_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}", - "Method": "DELETE", - "OperationID": "DeviceGroups_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups", - "Method": "GET", - "OperationID": "DeviceGroups_ListByProduct", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByProduct", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List DeviceGroup resources by Product. '.default' and '.unassigned' are system defined values and cannot be used for product name." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ClaimDevices", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/claimDevices", - "Method": "POST", - "OperationID": "DeviceGroups_ClaimDevices", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when bulk claiming devices to a catalog only." - }, - { - "Name": "CountDevices", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/countDevices", - "Method": "POST", - "OperationID": "DeviceGroups_CountDevices", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Counts devices in device group. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "Parents": [ - "Product" - ], - "SwaggerModelName": "DeviceGroup", - "ResourceType": "Microsoft.AzureSphere/catalogs/products/deviceGroups", - "ResourceKey": "deviceGroupName", - "ResourceKeySegment": "deviceGroups", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Deployment": { - "Name": "Deployment", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", - "Method": "GET", - "OperationID": "Deployments_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", - "Method": "PUT", - "OperationID": "Deployments_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", - "Method": "PUT", - "OperationID": "Deployments_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", - "Method": "DELETE", - "OperationID": "Deployments_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments", - "Method": "GET", - "OperationID": "Deployments_ListByDeviceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByDeviceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Deployment resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "DeviceGroup" - ], - "SwaggerModelName": "Deployment", - "ResourceType": "Microsoft.AzureSphere/catalogs/products/deviceGroups/deployments", - "ResourceKey": "deploymentName", - "ResourceKeySegment": "deployments", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Device": { - "Name": "Device", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", - "Method": "GET", - "OperationID": "Devices_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Device. Use '.unassigned' or '.default' for the device group and product names when a device does not belong to a device group and product." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", - "Method": "PUT", - "OperationID": "Devices_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", - "Method": "PATCH", - "OperationID": "Devices_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", - "Method": "DELETE", - "OperationID": "Devices_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Device" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices", - "Method": "GET", - "OperationID": "Devices_ListByDeviceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByDeviceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Device resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GenerateCapabilityImage", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}/generateCapabilityImage", - "Method": "POST", - "OperationID": "Devices_GenerateCapabilityImage", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Generates the capability image for the device. Use '.unassigned' or '.default' for the device group and product names to generate the image for a device that does not belong to a specific device group and product." - } - ], - "Parents": [ - "DeviceGroup" - ], - "SwaggerModelName": "Device", - "ResourceType": "Microsoft.AzureSphere/catalogs/products/deviceGroups/devices", - "ResourceKey": "deviceName", - "ResourceKeySegment": "devices", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + { + "Name": "CountDevices", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/countDevices", + "Method": "POST", + "OperationID": "DeviceGroups_CountDevices", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Counts devices in device group. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "Parents": [ + "Product" + ], + "SwaggerModelName": "DeviceGroup", + "ResourceType": "Microsoft.AzureSphere/catalogs/products/deviceGroups", + "ResourceKey": "deviceGroupName", + "ResourceKeySegment": "deviceGroups", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Deployment": [ + { + "Name": "Deployment", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", + "Method": "GET", + "OperationID": "Deployments_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", + "Method": "PUT", + "OperationID": "Deployments_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", + "Method": "PUT", + "OperationID": "Deployments_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments/{deploymentName}", + "Method": "DELETE", + "OperationID": "Deployments_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/deployments", + "Method": "GET", + "OperationID": "Deployments_ListByDeviceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByDeviceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Deployment resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "DeviceGroup" + ], + "SwaggerModelName": "Deployment", + "ResourceType": "Microsoft.AzureSphere/catalogs/products/deviceGroups/deployments", + "ResourceKey": "deploymentName", + "ResourceKeySegment": "deployments", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Device": [ + { + "Name": "Device", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", + "Method": "GET", + "OperationID": "Devices_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Device. Use '.unassigned' or '.default' for the device group and product names when a device does not belong to a device group and product." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", + "Method": "PUT", + "OperationID": "Devices_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the catalog only." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", + "Method": "PATCH", + "OperationID": "Devices_Update", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}", + "Method": "DELETE", + "OperationID": "Devices_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Device" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices", + "Method": "GET", + "OperationID": "Devices_ListByDeviceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByDeviceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Device resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "GenerateCapabilityImage", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices/{deviceName}/generateCapabilityImage", + "Method": "POST", + "OperationID": "Devices_GenerateCapabilityImage", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Generates the capability image for the device. Use '.unassigned' or '.default' for the device group and product names to generate the image for a device that does not belong to a specific device group and product." + } + ], + "Parents": [ + "DeviceGroup" + ], + "SwaggerModelName": "Device", + "ResourceType": "Microsoft.AzureSphere/catalogs/products/deviceGroups/devices", + "ResourceKey": "deviceName", + "ResourceKeySegment": "devices", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/resources.json b/packages/extensions/openapi-to-typespec/test/arm-storage/resources.json index afdb3152b8..ca3fd892a6 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-storage/resources.json @@ -1,1454 +1,1488 @@ { "Resources": { - "StorageAccount": { - "Name": "StorageAccount", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", - "Method": "GET", - "OperationID": "StorageAccounts_GetProperties", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", - "Method": "PUT", - "OperationID": "StorageAccounts_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", - "Method": "PATCH", - "OperationID": "StorageAccounts_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", - "Method": "DELETE", - "OperationID": "StorageAccounts_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes a storage account in Microsoft Azure." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts", - "Method": "GET", - "OperationID": "StorageAccounts_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" + "StorageAccount": [ + { + "Name": "StorageAccount", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", + "Method": "GET", + "OperationID": "StorageAccounts_GetProperties", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", + "Method": "PUT", + "OperationID": "StorageAccounts_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", + "Method": "PATCH", + "OperationID": "StorageAccounts_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", + "Method": "DELETE", + "OperationID": "StorageAccounts_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes a storage account in Microsoft Azure." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts", + "Method": "GET", + "OperationID": "StorageAccounts_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts", + "Method": "GET", + "OperationID": "StorageAccounts_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this." + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys", + "Method": "POST", + "OperationID": "StorageAccounts_ListKeys", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListKeys", + "ItemName": "keys", + "NextLinkName": "nextLink" + }, + "Description": "Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account." }, - "Description": "Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts", - "Method": "GET", - "OperationID": "StorageAccounts_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "RegenerateKey", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey", + "Method": "POST", + "OperationID": "StorageAccounts_RegenerateKey", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "RegenerateKey", + "ItemName": "keys", + "NextLinkName": "nextLink" + }, + "Description": "Regenerates one of the access keys or Kerberos keys for the specified storage account." }, - "Description": "Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys", - "Method": "POST", - "OperationID": "StorageAccounts_ListKeys", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListKeys", - "ItemName": "keys", - "NextLinkName": "nextLink" + { + "Name": "ListAccountSAS", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas", + "Method": "POST", + "OperationID": "StorageAccounts_ListAccountSAS", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "List SAS credentials of a storage account." }, - "Description": "Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account." - }, - { - "Name": "RegenerateKey", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey", - "Method": "POST", - "OperationID": "StorageAccounts_RegenerateKey", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "RegenerateKey", - "ItemName": "keys", - "NextLinkName": "nextLink" + { + "Name": "ListServiceSAS", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas", + "Method": "POST", + "OperationID": "StorageAccounts_ListServiceSAS", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "List service SAS credentials of a specific resource." }, - "Description": "Regenerates one of the access keys or Kerberos keys for the specified storage account." - }, - { - "Name": "ListAccountSAS", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas", - "Method": "POST", - "OperationID": "StorageAccounts_ListAccountSAS", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "List SAS credentials of a storage account." - }, - { - "Name": "ListServiceSAS", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas", - "Method": "POST", - "OperationID": "StorageAccounts_ListServiceSAS", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "List service SAS credentials of a specific resource." - }, - { - "Name": "Failover", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover", - "Method": "POST", - "OperationID": "StorageAccounts_Failover", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "A failover request can be triggered for a storage account in the event a primary endpoint becomes unavailable for any reason. The failover occurs from the storage account's primary cluster to the secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and the account is converted to LRS. In the case of a Planned Failover, the primary and secondary clusters are swapped after failover and the account remains geo-replicated. Failover should continue to be used in the event of availability issues as Planned failover is only available while the primary and secondary endpoints are available. The primary use case of a Planned Failover is disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter to 'Planned'. Learn more about the failover options here- https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance" - }, - { - "Name": "HierarchicalNamespaceMigration", - "Path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration", - "Method": "POST", - "OperationID": "StorageAccounts_HierarchicalNamespaceMigration", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Live Migration of storage account to enable Hns" - }, - { - "Name": "AbortHierarchicalNamespaceMigration", - "Path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration", - "Method": "POST", - "OperationID": "StorageAccounts_AbortHierarchicalNamespaceMigration", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Abort live Migration of storage account to enable Hns" - }, - { - "Name": "RestoreBlobRanges", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges", - "Method": "POST", - "OperationID": "StorageAccounts_RestoreBlobRanges", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Restore blobs in the specified blob ranges" - }, - { - "Name": "RevokeUserDelegationKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys", - "Method": "POST", - "OperationID": "StorageAccounts_RevokeUserDelegationKeys", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Revoke user delegation keys." - }, - { - "Name": "ListByStorageAccount", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources", - "Method": "GET", - "OperationID": "PrivateLinkResources_ListByStorageAccount", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByStorageAccount", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "Failover", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover", + "Method": "POST", + "OperationID": "StorageAccounts_Failover", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "A failover request can be triggered for a storage account in the event a primary endpoint becomes unavailable for any reason. The failover occurs from the storage account's primary cluster to the secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and the account is converted to LRS. In the case of a Planned Failover, the primary and secondary clusters are swapped after failover and the account remains geo-replicated. Failover should continue to be used in the event of availability issues as Planned failover is only available while the primary and secondary endpoints are available. The primary use case of a Planned Failover is disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter to 'Planned'. Learn more about the failover options here- https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance" }, - "Description": "Gets the private link resources that need to be created for a storage account." - } - ], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "StorageAccount", - "ResourceType": "Microsoft.Storage/storageAccounts", - "ResourceKey": "accountName", - "ResourceKeySegment": "storageAccounts", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "DeletedAccount": { - "Name": "DeletedAccount", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}", - "Method": "GET", - "OperationID": "DeletedAccounts_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get properties of specified deleted account resource." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "SubscriptionResource" - ], - "SwaggerModelName": "DeletedAccount", - "ResourceType": "Microsoft.Storage/locations/deletedAccounts", - "ResourceKey": "deletedAccountName", - "ResourceKeySegment": "deletedAccounts", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ManagementPolicy": { - "Name": "ManagementPolicy", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", - "Method": "GET", - "OperationID": "ManagementPolicies_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the managementpolicy associated with the specified storage account." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", - "Method": "PUT", - "OperationID": "ManagementPolicies_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the managementpolicy to the specified storage account." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", - "Method": "PUT", - "OperationID": "ManagementPolicies_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the managementpolicy to the specified storage account." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", - "Method": "DELETE", - "OperationID": "ManagementPolicies_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the managementpolicy associated with the specified storage account." - } - ], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "StorageAccount" - ], - "SwaggerModelName": "ManagementPolicy", - "ResourceType": "Microsoft.Storage/storageAccounts/managementPolicies", - "ResourceKey": "managementPolicyName", - "ResourceKeySegment": "managementPolicies", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "BlobInventoryPolicy": { - "Name": "BlobInventoryPolicy", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", - "Method": "GET", - "OperationID": "BlobInventoryPolicies_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the blob inventory policy associated with the specified storage account." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", - "Method": "PUT", - "OperationID": "BlobInventoryPolicies_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the blob inventory policy to the specified storage account." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", - "Method": "PUT", - "OperationID": "BlobInventoryPolicies_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the blob inventory policy to the specified storage account." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", - "Method": "DELETE", - "OperationID": "BlobInventoryPolicies_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the blob inventory policy associated with the specified storage account." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies", - "Method": "GET", - "OperationID": "BlobInventoryPolicies_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "HierarchicalNamespaceMigration", + "Path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration", + "Method": "POST", + "OperationID": "StorageAccounts_HierarchicalNamespaceMigration", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Live Migration of storage account to enable Hns" }, - "Description": "Gets the blob inventory policy associated with the specified storage account." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "StorageAccount" - ], - "SwaggerModelName": "BlobInventoryPolicy", - "ResourceType": "Microsoft.Storage/storageAccounts/inventoryPolicies", - "ResourceKey": "blobInventoryPolicyName", - "ResourceKeySegment": "inventoryPolicies", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "PrivateEndpointConnection": { - "Name": "PrivateEndpointConnection", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "GET", - "OperationID": "PrivateEndpointConnections_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the specified private endpoint connection associated with the storage account." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "PUT", - "OperationID": "PrivateEndpointConnections_Put", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update the state of specified private endpoint connection associated with the storage account." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "PUT", - "OperationID": "PrivateEndpointConnections_Put", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Update the state of specified private endpoint connection associated with the storage account." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", - "Method": "DELETE", - "OperationID": "PrivateEndpointConnections_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified private endpoint connection associated with the storage account." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections", - "Method": "GET", - "OperationID": "PrivateEndpointConnections_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "AbortHierarchicalNamespaceMigration", + "Path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration", + "Method": "POST", + "OperationID": "StorageAccounts_AbortHierarchicalNamespaceMigration", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Abort live Migration of storage account to enable Hns" }, - "Description": "List all the private endpoint connections associated with the storage account." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "StorageAccount" - ], - "SwaggerModelName": "PrivateEndpointConnection", - "ResourceType": "Microsoft.Storage/storageAccounts/privateEndpointConnections", - "ResourceKey": "privateEndpointConnectionName", - "ResourceKeySegment": "privateEndpointConnections", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ObjectReplicationPolicy": { - "Name": "ObjectReplicationPolicy", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", - "Method": "GET", - "OperationID": "ObjectReplicationPolicies_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the object replication policy of the storage account by policy ID." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", - "Method": "PUT", - "OperationID": "ObjectReplicationPolicies_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update the object replication policy of the storage account." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", - "Method": "PUT", - "OperationID": "ObjectReplicationPolicies_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update the object replication policy of the storage account." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", - "Method": "DELETE", - "OperationID": "ObjectReplicationPolicies_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the object replication policy associated with the specified storage account." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies", - "Method": "GET", - "OperationID": "ObjectReplicationPolicies_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "RestoreBlobRanges", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges", + "Method": "POST", + "OperationID": "StorageAccounts_RestoreBlobRanges", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Restore blobs in the specified blob ranges" }, - "Description": "List the object replication policies associated with the storage account." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "StorageAccount" - ], - "SwaggerModelName": "ObjectReplicationPolicy", - "ResourceType": "Microsoft.Storage/storageAccounts/objectReplicationPolicies", - "ResourceKey": "objectReplicationPolicyId", - "ResourceKeySegment": "objectReplicationPolicies", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "LocalUser": { - "Name": "LocalUser", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}", - "Method": "GET", - "OperationID": "LocalUsers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the local user of the storage account by username." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}", - "Method": "PUT", - "OperationID": "LocalUsers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update the properties of a local user associated with the storage account" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}", - "Method": "PUT", - "OperationID": "LocalUsers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update the properties of a local user associated with the storage account" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}", - "Method": "DELETE", - "OperationID": "LocalUsers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the local user associated with the specified storage account." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers", - "Method": "GET", - "OperationID": "LocalUsers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "RevokeUserDelegationKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys", + "Method": "POST", + "OperationID": "StorageAccounts_RevokeUserDelegationKeys", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Revoke user delegation keys." }, - "Description": "List the local users associated with the storage account." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "ListKeys", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/listKeys", - "Method": "POST", - "OperationID": "LocalUsers_ListKeys", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "List SSH authorized keys and shared key of the local user." - }, - { - "Name": "RegeneratePassword", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/regeneratePassword", - "Method": "POST", - "OperationID": "LocalUsers_RegeneratePassword", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Regenerate the local user SSH password." - } - ], - "Parents": [ - "StorageAccount" - ], - "SwaggerModelName": "LocalUser", - "ResourceType": "Microsoft.Storage/storageAccounts/localUsers", - "ResourceKey": "username", - "ResourceKeySegment": "localUsers", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "EncryptionScope": { - "Name": "EncryptionScope", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", - "Method": "GET", - "OperationID": "EncryptionScopes_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Returns the properties for the specified encryption scope." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", - "Method": "PUT", - "OperationID": "EncryptionScopes_Put", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already created and a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified request." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", - "Method": "PATCH", - "OperationID": "EncryptionScopes_Patch", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update encryption scope properties as specified in the request body. Update fails if the specified encryption scope does not already exist." - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes", - "Method": "GET", - "OperationID": "EncryptionScopes_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ListByStorageAccount", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources", + "Method": "GET", + "OperationID": "PrivateLinkResources_ListByStorageAccount", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByStorageAccount", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the private link resources that need to be created for a storage account." + } + ], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "StorageAccount", + "ResourceType": "Microsoft.Storage/storageAccounts", + "ResourceKey": "accountName", + "ResourceKeySegment": "storageAccounts", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "DeletedAccount": [ + { + "Name": "DeletedAccount", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}", + "Method": "GET", + "OperationID": "DeletedAccounts_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get properties of specified deleted account resource." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "SubscriptionResource" + ], + "SwaggerModelName": "DeletedAccount", + "ResourceType": "Microsoft.Storage/locations/deletedAccounts", + "ResourceKey": "deletedAccountName", + "ResourceKeySegment": "deletedAccounts", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": true, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ManagementPolicy": [ + { + "Name": "ManagementPolicy", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", + "Method": "GET", + "OperationID": "ManagementPolicies_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the managementpolicy associated with the specified storage account." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", + "Method": "PUT", + "OperationID": "ManagementPolicies_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the managementpolicy to the specified storage account." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", + "Method": "PUT", + "OperationID": "ManagementPolicies_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the managementpolicy to the specified storage account." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", + "Method": "DELETE", + "OperationID": "ManagementPolicies_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the managementpolicy associated with the specified storage account." + } + ], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "StorageAccount" + ], + "SwaggerModelName": "ManagementPolicy", + "ResourceType": "Microsoft.Storage/storageAccounts/managementPolicies", + "ResourceKey": "managementPolicyName", + "ResourceKeySegment": "managementPolicies", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "BlobInventoryPolicy": [ + { + "Name": "BlobInventoryPolicy", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", + "Method": "GET", + "OperationID": "BlobInventoryPolicies_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the blob inventory policy associated with the specified storage account." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", + "Method": "PUT", + "OperationID": "BlobInventoryPolicies_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the blob inventory policy to the specified storage account." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", + "Method": "PUT", + "OperationID": "BlobInventoryPolicies_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the blob inventory policy to the specified storage account." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", + "Method": "DELETE", + "OperationID": "BlobInventoryPolicies_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the blob inventory policy associated with the specified storage account." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies", + "Method": "GET", + "OperationID": "BlobInventoryPolicies_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets the blob inventory policy associated with the specified storage account." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "StorageAccount" + ], + "SwaggerModelName": "BlobInventoryPolicy", + "ResourceType": "Microsoft.Storage/storageAccounts/inventoryPolicies", + "ResourceKey": "blobInventoryPolicyName", + "ResourceKeySegment": "inventoryPolicies", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "PrivateEndpointConnection": [ + { + "Name": "PrivateEndpointConnection", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "GET", + "OperationID": "PrivateEndpointConnections_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the specified private endpoint connection associated with the storage account." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "PUT", + "OperationID": "PrivateEndpointConnections_Put", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update the state of specified private endpoint connection associated with the storage account." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "PUT", + "OperationID": "PrivateEndpointConnections_Put", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Update the state of specified private endpoint connection associated with the storage account." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + "Method": "DELETE", + "OperationID": "PrivateEndpointConnections_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the specified private endpoint connection associated with the storage account." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections", + "Method": "GET", + "OperationID": "PrivateEndpointConnections_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List all the private endpoint connections associated with the storage account." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "StorageAccount" + ], + "SwaggerModelName": "PrivateEndpointConnection", + "ResourceType": "Microsoft.Storage/storageAccounts/privateEndpointConnections", + "ResourceKey": "privateEndpointConnectionName", + "ResourceKeySegment": "privateEndpointConnections", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ObjectReplicationPolicy": [ + { + "Name": "ObjectReplicationPolicy", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", + "Method": "GET", + "OperationID": "ObjectReplicationPolicies_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the object replication policy of the storage account by policy ID." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", + "Method": "PUT", + "OperationID": "ObjectReplicationPolicies_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update the object replication policy of the storage account." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", + "Method": "PUT", + "OperationID": "ObjectReplicationPolicies_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update the object replication policy of the storage account." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", + "Method": "DELETE", + "OperationID": "ObjectReplicationPolicies_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the object replication policy associated with the specified storage account." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies", + "Method": "GET", + "OperationID": "ObjectReplicationPolicies_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List the object replication policies associated with the storage account." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "StorageAccount" + ], + "SwaggerModelName": "ObjectReplicationPolicy", + "ResourceType": "Microsoft.Storage/storageAccounts/objectReplicationPolicies", + "ResourceKey": "objectReplicationPolicyId", + "ResourceKeySegment": "objectReplicationPolicies", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "LocalUser": [ + { + "Name": "LocalUser", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}", + "Method": "GET", + "OperationID": "LocalUsers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get the local user of the storage account by username." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}", + "Method": "PUT", + "OperationID": "LocalUsers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update the properties of a local user associated with the storage account" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}", + "Method": "PUT", + "OperationID": "LocalUsers_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create or update the properties of a local user associated with the storage account" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}", + "Method": "DELETE", + "OperationID": "LocalUsers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the local user associated with the specified storage account." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers", + "Method": "GET", + "OperationID": "LocalUsers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List the local users associated with the storage account." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "ListKeys", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/listKeys", + "Method": "POST", + "OperationID": "LocalUsers_ListKeys", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "List SSH authorized keys and shared key of the local user." }, - "Description": "Lists all the encryption scopes available under the specified storage account." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "StorageAccount" - ], - "SwaggerModelName": "EncryptionScope", - "ResourceType": "Microsoft.Storage/storageAccounts/encryptionScopes", - "ResourceKey": "encryptionScopeName", - "ResourceKeySegment": "encryptionScopes", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "BlobServiceProperties": { - "Name": "BlobServiceProperty", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}", - "Method": "GET", - "OperationID": "BlobServices_GetServiceProperties", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}", - "Method": "PUT", - "OperationID": "BlobServices_SetServiceProperties", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}", - "Method": "PUT", - "OperationID": "BlobServices_SetServiceProperties", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices", - "Method": "GET", - "OperationID": "BlobServices_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "RegeneratePassword", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/regeneratePassword", + "Method": "POST", + "OperationID": "LocalUsers_RegeneratePassword", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Regenerate the local user SSH password." + } + ], + "Parents": [ + "StorageAccount" + ], + "SwaggerModelName": "LocalUser", + "ResourceType": "Microsoft.Storage/storageAccounts/localUsers", + "ResourceKey": "username", + "ResourceKeySegment": "localUsers", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "EncryptionScope": [ + { + "Name": "EncryptionScope", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", + "Method": "GET", + "OperationID": "EncryptionScopes_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Returns the properties for the specified encryption scope." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", + "Method": "PUT", + "OperationID": "EncryptionScopes_Put", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already created and a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified request." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", + "Method": "PATCH", + "OperationID": "EncryptionScopes_Patch", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update encryption scope properties as specified in the request body. Update fails if the specified encryption scope does not already exist." + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes", + "Method": "GET", + "OperationID": "EncryptionScopes_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all the encryption scopes available under the specified storage account." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "StorageAccount" + ], + "SwaggerModelName": "EncryptionScope", + "ResourceType": "Microsoft.Storage/storageAccounts/encryptionScopes", + "ResourceKey": "encryptionScopeName", + "ResourceKeySegment": "encryptionScopes", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "BlobServiceProperties": [ + { + "Name": "BlobServiceProperty", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}", + "Method": "GET", + "OperationID": "BlobServices_GetServiceProperties", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}", + "Method": "PUT", + "OperationID": "BlobServices_SetServiceProperties", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}", + "Method": "PUT", + "OperationID": "BlobServices_SetServiceProperties", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices", + "Method": "GET", + "OperationID": "BlobServices_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List blob services of storage account. It returns a collection of one object named default." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "StorageAccount" + ], + "SwaggerModelName": "BlobServiceProperties", + "ResourceType": "Microsoft.Storage/storageAccounts/blobServices", + "ResourceKey": "BlobServicesName", + "ResourceKeySegment": "blobServices", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "BlobContainer": [ + { + "Name": "BlobContainer", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", + "Method": "GET", + "OperationID": "BlobContainers_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets properties of a specified container. " + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", + "Method": "PUT", + "OperationID": "BlobContainers_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. " + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", + "Method": "PATCH", + "OperationID": "BlobContainers_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. " + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", + "Method": "DELETE", + "OperationID": "BlobContainers_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specified container under its account." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers", + "Method": "GET", + "OperationID": "BlobContainers_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "SetLegalHold", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold", + "Method": "POST", + "OperationID": "BlobContainers_SetLegalHold", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request." }, - "Description": "List blob services of storage account. It returns a collection of one object named default." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "StorageAccount" - ], - "SwaggerModelName": "BlobServiceProperties", - "ResourceType": "Microsoft.Storage/storageAccounts/blobServices", - "ResourceKey": "BlobServicesName", - "ResourceKeySegment": "blobServices", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "BlobContainer": { - "Name": "BlobContainer", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", - "Method": "GET", - "OperationID": "BlobContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets properties of a specified container. " - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", - "Method": "PUT", - "OperationID": "BlobContainers_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. " - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", - "Method": "PATCH", - "OperationID": "BlobContainers_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. " - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", - "Method": "DELETE", - "OperationID": "BlobContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specified container under its account." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers", - "Method": "GET", - "OperationID": "BlobContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ClearLegalHold", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold", + "Method": "POST", + "OperationID": "BlobContainers_ClearLegalHold", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request." }, - "Description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "SetLegalHold", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold", - "Method": "POST", - "OperationID": "BlobContainers_SetLegalHold", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request." - }, - { - "Name": "ClearLegalHold", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold", - "Method": "POST", - "OperationID": "BlobContainers_ClearLegalHold", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request." - }, - { - "Name": "Lease", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease", - "Method": "POST", - "OperationID": "BlobContainers_Lease", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite." - }, - { - "Name": "ObjectLevelWorm", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/migrate", - "Method": "POST", - "OperationID": "BlobContainers_ObjectLevelWorm", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "This operation migrates a blob container from container level WORM to object level immutability enabled container. Prerequisites require a container level immutability policy either in locked or unlocked state, Account level versioning must be enabled and there should be no Legal hold on the container." - } - ], - "Parents": [ - "BlobServiceProperty" - ], - "SwaggerModelName": "BlobContainer", - "ResourceType": "Microsoft.Storage/storageAccounts/blobServices/containers", - "ResourceKey": "containerName", - "ResourceKeySegment": "containers", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ImmutabilityPolicy": { - "Name": "ImmutabilityPolicy", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", - "Method": "GET", - "OperationID": "BlobContainers_GetImmutabilityPolicy", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", - "Method": "PUT", - "OperationID": "BlobContainers_CreateOrUpdateImmutabilityPolicy", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", - "Method": "PUT", - "OperationID": "BlobContainers_CreateOrUpdateImmutabilityPolicy", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", - "Method": "DELETE", - "OperationID": "BlobContainers_DeleteImmutabilityPolicy", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, the only way is to delete the container after deleting all expired blobs inside the policy locked container." - } - ], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "LockImmutabilityPolicy", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock", - "Method": "POST", - "OperationID": "BlobContainers_LockImmutabilityPolicy", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation." - }, - { - "Name": "ExtendImmutabilityPolicy", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend", - "Method": "POST", - "OperationID": "BlobContainers_ExtendImmutabilityPolicy", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation." - } - ], - "Parents": [ - "BlobContainer" - ], - "SwaggerModelName": "ImmutabilityPolicy", - "ResourceType": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies", - "ResourceKey": "immutabilityPolicyName", - "ResourceKeySegment": "immutabilityPolicies", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "FileServiceProperties": { - "Name": "FileServiceProperty", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", - "Method": "GET", - "OperationID": "FileServices_GetServiceProperties", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", - "Method": "PUT", - "OperationID": "FileServices_SetServiceProperties", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. " - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", - "Method": "PUT", - "OperationID": "FileServices_SetServiceProperties", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. " - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices", - "Method": "GET", - "OperationID": "FileServices_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "Lease", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease", + "Method": "POST", + "OperationID": "BlobContainers_Lease", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite." }, - "Description": "List all file services in storage accounts" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "StorageAccount" - ], - "SwaggerModelName": "FileServiceProperties", - "ResourceType": "Microsoft.Storage/storageAccounts/fileServices", - "ResourceKey": "FileServicesName", - "ResourceKeySegment": "fileServices", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "FileShare": { - "Name": "FileShare", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", - "Method": "GET", - "OperationID": "FileShares_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets properties of a specified share." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", - "Method": "PUT", - "OperationID": "FileShares_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share. " - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", - "Method": "PATCH", - "OperationID": "FileShares_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist. " - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", - "Method": "DELETE", - "OperationID": "FileShares_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specified share under its account." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares", - "Method": "GET", - "OperationID": "FileShares_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ObjectLevelWorm", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/migrate", + "Method": "POST", + "OperationID": "BlobContainers_ObjectLevelWorm", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "This operation migrates a blob container from container level WORM to object level immutability enabled container. Prerequisites require a container level immutability policy either in locked or unlocked state, Account level versioning must be enabled and there should be no Legal hold on the container." + } + ], + "Parents": [ + "BlobServiceProperty" + ], + "SwaggerModelName": "BlobContainer", + "ResourceType": "Microsoft.Storage/storageAccounts/blobServices/containers", + "ResourceKey": "containerName", + "ResourceKeySegment": "containers", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ImmutabilityPolicy": [ + { + "Name": "ImmutabilityPolicy", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", + "Method": "GET", + "OperationID": "BlobContainers_GetImmutabilityPolicy", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", + "Method": "PUT", + "OperationID": "BlobContainers_CreateOrUpdateImmutabilityPolicy", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", + "Method": "PUT", + "OperationID": "BlobContainers_CreateOrUpdateImmutabilityPolicy", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", + "Method": "DELETE", + "OperationID": "BlobContainers_DeleteImmutabilityPolicy", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, the only way is to delete the container after deleting all expired blobs inside the policy locked container." + } + ], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "LockImmutabilityPolicy", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock", + "Method": "POST", + "OperationID": "BlobContainers_LockImmutabilityPolicy", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation." }, - "Description": "Lists all shares." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Restore", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore", - "Method": "POST", - "OperationID": "FileShares_Restore", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Restore a file share within a valid retention days if share soft delete is enabled" - }, - { - "Name": "Lease", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/lease", - "Method": "POST", - "OperationID": "FileShares_Lease", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The Lease Share operation establishes and manages a lock on a share for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite." - } - ], - "Parents": [ - "FileServiceProperty" - ], - "SwaggerModelName": "FileShare", - "ResourceType": "Microsoft.Storage/storageAccounts/fileServices/shares", - "ResourceKey": "shareName", - "ResourceKeySegment": "shares", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "QueueServiceProperties": { - "Name": "QueueServiceProperty", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}", - "Method": "GET", - "OperationID": "QueueServices_GetServiceProperties", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}", - "Method": "PUT", - "OperationID": "QueueServices_SetServiceProperties", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}", - "Method": "PUT", - "OperationID": "QueueServices_SetServiceProperties", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices", - "Method": "GET", - "OperationID": "QueueServices_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" + { + "Name": "ExtendImmutabilityPolicy", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend", + "Method": "POST", + "OperationID": "BlobContainers_ExtendImmutabilityPolicy", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation." + } + ], + "Parents": [ + "BlobContainer" + ], + "SwaggerModelName": "ImmutabilityPolicy", + "ResourceType": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies", + "ResourceKey": "immutabilityPolicyName", + "ResourceKeySegment": "immutabilityPolicies", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "FileServiceProperties": [ + { + "Name": "FileServiceProperty", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", + "Method": "GET", + "OperationID": "FileServices_GetServiceProperties", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", + "Method": "PUT", + "OperationID": "FileServices_SetServiceProperties", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. " + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", + "Method": "PUT", + "OperationID": "FileServices_SetServiceProperties", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. " + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices", + "Method": "GET", + "OperationID": "FileServices_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List all file services in storage accounts" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "StorageAccount" + ], + "SwaggerModelName": "FileServiceProperties", + "ResourceType": "Microsoft.Storage/storageAccounts/fileServices", + "ResourceKey": "FileServicesName", + "ResourceKeySegment": "fileServices", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "FileShare": [ + { + "Name": "FileShare", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", + "Method": "GET", + "OperationID": "FileShares_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets properties of a specified share." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", + "Method": "PUT", + "OperationID": "FileShares_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share. " + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", + "Method": "PATCH", + "OperationID": "FileShares_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist. " + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", + "Method": "DELETE", + "OperationID": "FileShares_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes specified share under its account." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares", + "Method": "GET", + "OperationID": "FileShares_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Lists all shares." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [ + { + "Name": "Restore", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore", + "Method": "POST", + "OperationID": "FileShares_Restore", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Restore a file share within a valid retention days if share soft delete is enabled" }, - "Description": "List all queue services for the storage account" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "StorageAccount" - ], - "SwaggerModelName": "QueueServiceProperties", - "ResourceType": "Microsoft.Storage/storageAccounts/queueServices", - "ResourceKey": "queueServiceName", - "ResourceKeySegment": "queueServices", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "StorageQueue": { - "Name": "StorageQueue", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", - "Method": "GET", - "OperationID": "Queue_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the queue with the specified queue name, under the specified account if it exists." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", - "Method": "PUT", - "OperationID": "Queue_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new queue with the specified queue name, under the specified account." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", - "Method": "PATCH", - "OperationID": "Queue_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Creates a new queue with the specified queue name, under the specified account." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", - "Method": "DELETE", - "OperationID": "Queue_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the queue with the specified queue name, under the specified account if it exists." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues", - "Method": "GET", - "OperationID": "Queue_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all the queues under the specified storage account" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "QueueServiceProperty" - ], - "SwaggerModelName": "StorageQueue", - "ResourceType": "Microsoft.Storage/storageAccounts/queueServices/queues", - "ResourceKey": "queueName", - "ResourceKeySegment": "queues", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "TableServiceProperties": { - "Name": "TableServiceProperty", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}", - "Method": "GET", - "OperationID": "TableServices_GetServiceProperties", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}", - "Method": "PUT", - "OperationID": "TableServices_SetServiceProperties", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}", - "Method": "PUT", - "OperationID": "TableServices_SetServiceProperties", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " - } - ], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices", - "Method": "GET", - "OperationID": "TableServices_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List all table services for the storage account." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "StorageAccount" - ], - "SwaggerModelName": "TableServiceProperties", - "ResourceType": "Microsoft.Storage/storageAccounts/tableServices", - "ResourceKey": "tableServiceName", - "ResourceKeySegment": "tableServices", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "Table": { - "Name": "Table", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", - "Method": "GET", - "OperationID": "Table_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the table with the specified table name, under the specified account if it exists." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", - "Method": "PUT", - "OperationID": "Table_Create", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new table with the specified table name, under the specified account." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", - "Method": "PATCH", - "OperationID": "Table_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Creates a new table with the specified table name, under the specified account." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", - "Method": "DELETE", - "OperationID": "Table_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the table with the specified table name, under the specified account if it exists." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables", - "Method": "GET", - "OperationID": "Table_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all the tables under the specified storage account" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "TableServiceProperty" - ], - "SwaggerModelName": "Table", - "ResourceType": "Microsoft.Storage/storageAccounts/tableServices/tables", - "ResourceKey": "tableName", - "ResourceKeySegment": "tables", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + { + "Name": "Lease", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/lease", + "Method": "POST", + "OperationID": "FileShares_Lease", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "The Lease Share operation establishes and manages a lock on a share for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite." + } + ], + "Parents": [ + "FileServiceProperty" + ], + "SwaggerModelName": "FileShare", + "ResourceType": "Microsoft.Storage/storageAccounts/fileServices/shares", + "ResourceKey": "shareName", + "ResourceKeySegment": "shares", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "QueueServiceProperties": [ + { + "Name": "QueueServiceProperty", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}", + "Method": "GET", + "OperationID": "QueueServices_GetServiceProperties", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}", + "Method": "PUT", + "OperationID": "QueueServices_SetServiceProperties", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}", + "Method": "PUT", + "OperationID": "QueueServices_SetServiceProperties", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices", + "Method": "GET", + "OperationID": "QueueServices_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List all queue services for the storage account" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "StorageAccount" + ], + "SwaggerModelName": "QueueServiceProperties", + "ResourceType": "Microsoft.Storage/storageAccounts/queueServices", + "ResourceKey": "queueServiceName", + "ResourceKeySegment": "queueServices", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "StorageQueue": [ + { + "Name": "StorageQueue", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", + "Method": "GET", + "OperationID": "Queue_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the queue with the specified queue name, under the specified account if it exists." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", + "Method": "PUT", + "OperationID": "Queue_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new queue with the specified queue name, under the specified account." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", + "Method": "PATCH", + "OperationID": "Queue_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Creates a new queue with the specified queue name, under the specified account." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", + "Method": "DELETE", + "OperationID": "Queue_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the queue with the specified queue name, under the specified account if it exists." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues", + "Method": "GET", + "OperationID": "Queue_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all the queues under the specified storage account" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "QueueServiceProperty" + ], + "SwaggerModelName": "StorageQueue", + "ResourceType": "Microsoft.Storage/storageAccounts/queueServices/queues", + "ResourceKey": "queueName", + "ResourceKeySegment": "queues", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "TableServiceProperties": [ + { + "Name": "TableServiceProperty", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}", + "Method": "GET", + "OperationID": "TableServices_GetServiceProperties", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}", + "Method": "PUT", + "OperationID": "TableServices_SetServiceProperties", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}", + "Method": "PUT", + "OperationID": "TableServices_SetServiceProperties", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. " + } + ], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices", + "Method": "GET", + "OperationID": "TableServices_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List all table services for the storage account." + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "StorageAccount" + ], + "SwaggerModelName": "TableServiceProperties", + "ResourceType": "Microsoft.Storage/storageAccounts/tableServices", + "ResourceKey": "tableServiceName", + "ResourceKeySegment": "tableServices", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "Table": [ + { + "Name": "Table", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", + "Method": "GET", + "OperationID": "Table_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Gets the table with the specified table name, under the specified account if it exists." + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", + "Method": "PUT", + "OperationID": "Table_Create", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Creates a new table with the specified table name, under the specified account." + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", + "Method": "PATCH", + "OperationID": "Table_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Creates a new table with the specified table name, under the specified account." + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", + "Method": "DELETE", + "OperationID": "Table_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Deletes the table with the specified table name, under the specified account if it exists." + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables", + "Method": "GET", + "OperationID": "Table_List", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of all the tables under the specified storage account" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "TableServiceProperty" + ], + "SwaggerModelName": "Table", + "ResourceType": "Microsoft.Storage/storageAccounts/tableServices/tables", + "ResourceKey": "tableName", + "ResourceKeySegment": "tables", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/swagger-output/swagger.json b/packages/extensions/openapi-to-typespec/test/arm-storage/swagger-output/swagger.json index 103a61236b..5d7cd3b3a9 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/swagger-output/swagger.json +++ b/packages/extensions/openapi-to-typespec/test/arm-storage/swagger-output/swagger.json @@ -59,16 +59,16 @@ "name": "PrivateEndpointConnections" }, { - "name": "ObjectReplicationPoliciesOperationGroup" + "name": "ObjectReplicationPolicyOperationGroup" }, { - "name": "LocalUsersOperationGroup" + "name": "LocalUserOperationGroup" }, { "name": "EncryptionScopes" }, { - "name": "BlobServicePropertiesOperationGroup" + "name": "BlobServices" }, { "name": "BlobContainers" @@ -77,19 +77,19 @@ "name": "ImmutabilityPolicies" }, { - "name": "FileServicePropertiesOperationGroup" + "name": "FileServices" }, { "name": "FileShares" }, { - "name": "QueueServicePropertiesOperationGroup" + "name": "QueueServices" }, { "name": "StorageQueues" }, { - "name": "TableServicePropertiesOperationGroup" + "name": "TableServices" }, { "name": "Tables" @@ -750,7 +750,7 @@ "get": { "operationId": "BlobServices_List", "tags": [ - "BlobServicePropertiesOperationGroup" + "BlobServices" ], "description": "List blob services of storage account. It returns a collection of one object named default.", "parameters": [ @@ -798,7 +798,7 @@ "get": { "operationId": "BlobServices_GetServiceProperties", "tags": [ - "BlobServicePropertiesOperationGroup" + "BlobServices" ], "description": "Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.", "parameters": [ @@ -844,7 +844,7 @@ "put": { "operationId": "BlobServices_SetServiceProperties", "tags": [ - "BlobServicePropertiesOperationGroup" + "BlobServices" ], "description": "Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.", "parameters": [ @@ -2239,7 +2239,7 @@ "get": { "operationId": "FileServices_List", "tags": [ - "FileServicePropertiesOperationGroup" + "FileServices" ], "description": "List all file services in storage accounts", "parameters": [ @@ -2287,7 +2287,7 @@ "get": { "operationId": "FileServices_GetServiceProperties", "tags": [ - "FileServicePropertiesOperationGroup" + "FileServices" ], "description": "Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.", "parameters": [ @@ -2333,7 +2333,7 @@ "put": { "operationId": "FileServices_SetServiceProperties", "tags": [ - "FileServicePropertiesOperationGroup" + "FileServices" ], "description": "Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.", "parameters": [ @@ -3414,7 +3414,7 @@ "get": { "operationId": "LocalUsers_List", "tags": [ - "LocalUsersOperationGroup" + "LocalUserOperationGroup" ], "description": "List the local users associated with the storage account.", "parameters": [ @@ -3462,7 +3462,7 @@ "get": { "operationId": "LocalUsers_Get", "tags": [ - "LocalUsersOperationGroup" + "LocalUserOperationGroup" ], "description": "Get the local user of the storage account by username.", "parameters": [ @@ -3517,7 +3517,7 @@ "put": { "operationId": "LocalUsers_CreateOrUpdate", "tags": [ - "LocalUsersOperationGroup" + "LocalUserOperationGroup" ], "description": "Create or update the properties of a local user associated with the storage account", "parameters": [ @@ -3584,7 +3584,7 @@ "delete": { "operationId": "LocalUsers_Delete", "tags": [ - "LocalUsersOperationGroup" + "LocalUserOperationGroup" ], "description": "Deletes the local user associated with the specified storage account.", "parameters": [ @@ -3641,7 +3641,7 @@ "post": { "operationId": "LocalUsers_ListKeys", "tags": [ - "LocalUsersOperationGroup" + "LocalUserOperationGroup" ], "description": "List SSH authorized keys and shared key of the local user.", "parameters": [ @@ -3698,7 +3698,7 @@ "post": { "operationId": "LocalUsers_RegeneratePassword", "tags": [ - "LocalUsersOperationGroup" + "LocalUserOperationGroup" ], "description": "Regenerate the local user SSH password.", "parameters": [ @@ -3985,7 +3985,7 @@ "get": { "operationId": "ObjectReplicationPolicies_List", "tags": [ - "ObjectReplicationPoliciesOperationGroup" + "ObjectReplicationPolicyOperationGroup" ], "description": "List the object replication policies associated with the storage account.", "parameters": [ @@ -4033,7 +4033,7 @@ "get": { "operationId": "ObjectReplicationPolicies_Get", "tags": [ - "ObjectReplicationPoliciesOperationGroup" + "ObjectReplicationPolicyOperationGroup" ], "description": "Get the object replication policy of the storage account by policy ID.", "parameters": [ @@ -4087,7 +4087,7 @@ "put": { "operationId": "ObjectReplicationPolicies_CreateOrUpdate", "tags": [ - "ObjectReplicationPoliciesOperationGroup" + "ObjectReplicationPolicyOperationGroup" ], "description": "Create or update the object replication policy of the storage account.", "parameters": [ @@ -4159,7 +4159,7 @@ "delete": { "operationId": "ObjectReplicationPolicies_Delete", "tags": [ - "ObjectReplicationPoliciesOperationGroup" + "ObjectReplicationPolicyOperationGroup" ], "description": "Deletes the object replication policy associated with the specified storage account.", "parameters": [ @@ -4481,7 +4481,7 @@ "get": { "operationId": "QueueServices_List", "tags": [ - "QueueServicePropertiesOperationGroup" + "QueueServices" ], "description": "List all queue services for the storage account", "parameters": [ @@ -4529,7 +4529,7 @@ "get": { "operationId": "QueueServices_GetServiceProperties", "tags": [ - "QueueServicePropertiesOperationGroup" + "QueueServices" ], "description": "Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.", "parameters": [ @@ -4575,7 +4575,7 @@ "put": { "operationId": "QueueServices_SetServiceProperties", "tags": [ - "QueueServicePropertiesOperationGroup" + "QueueServices" ], "description": "Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.", "parameters": [ @@ -5121,7 +5121,7 @@ "get": { "operationId": "TableServices_List", "tags": [ - "TableServicePropertiesOperationGroup" + "TableServices" ], "description": "List all table services for the storage account.", "parameters": [ @@ -5169,7 +5169,7 @@ "get": { "operationId": "TableServices_GetServiceProperties", "tags": [ - "TableServicePropertiesOperationGroup" + "TableServices" ], "description": "Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.", "parameters": [ @@ -5215,7 +5215,7 @@ "put": { "operationId": "TableServices_SetServiceProperties", "tags": [ - "TableServicePropertiesOperationGroup" + "TableServices" ], "description": "Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.", "parameters": [ diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/BlobServiceProperties.tsp b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/BlobServiceProperties.tsp index 10baabf016..d1bfbb39a8 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/BlobServiceProperties.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/BlobServiceProperties.tsp @@ -28,20 +28,16 @@ model BlobServiceProperties } @armResourceOperations -interface BlobServicePropertiesOperationGroup { +interface BlobServices { /** * Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("BlobServices_GetServiceProperties") getServiceProperties is ArmResourceRead; /** * Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" - @operationId("BlobServices_SetServiceProperties") setServiceProperties is ArmResourceCreateOrReplaceSync< BlobServiceProperties, Response = ArmResourceUpdatedResponse @@ -50,8 +46,6 @@ interface BlobServicePropertiesOperationGroup { /** * List blob services of storage account. It returns a collection of one object named default. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("BlobServices_List") list is ArmResourceListByParent< BlobServiceProperties, Response = ArmResponse @@ -62,6 +56,6 @@ interface BlobServicePropertiesOperationGroup { @@doc(BlobServiceProperties.properties, "The properties of a storage account’s Blob service." ); -@@doc(BlobServicePropertiesOperationGroup.setServiceProperties::parameters.resource, +@@doc(BlobServices.setServiceProperties::parameters.resource, "The properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules." ); diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/FileServiceProperties.tsp b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/FileServiceProperties.tsp index 71a4d28a5a..629a6e6c68 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/FileServiceProperties.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/FileServiceProperties.tsp @@ -28,20 +28,16 @@ model FileServiceProperties } @armResourceOperations -interface FileServicePropertiesOperationGroup { +interface FileServices { /** * Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("FileServices_GetServiceProperties") getServiceProperties is ArmResourceRead; /** * Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" - @operationId("FileServices_SetServiceProperties") setServiceProperties is ArmResourceCreateOrReplaceSync< FileServiceProperties, Response = ArmResourceUpdatedResponse @@ -50,8 +46,6 @@ interface FileServicePropertiesOperationGroup { /** * List all file services in storage accounts */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("FileServices_List") list is ArmResourceListByParent< FileServiceProperties, Response = ArmResponse @@ -62,6 +56,6 @@ interface FileServicePropertiesOperationGroup { @@doc(FileServiceProperties.properties, "The properties of File services in storage account." ); -@@doc(FileServicePropertiesOperationGroup.setServiceProperties::parameters.resource, +@@doc(FileServices.setServiceProperties::parameters.resource, "The properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules." ); diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/LocalUser.tsp b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/LocalUser.tsp index b848056c7d..081523a791 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/LocalUser.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/LocalUser.tsp @@ -25,7 +25,7 @@ model LocalUser is Azure.ResourceManager.ProxyResource { } @armResourceOperations -interface LocalUsersOperationGroup { +interface LocalUserOperationGroup { /** * Get the local user of the storage account by username. */ @@ -90,6 +90,6 @@ interface LocalUsersOperationGroup { "The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account." ); @@doc(LocalUser.properties, "Storage account local user properties."); -@@doc(LocalUsersOperationGroup.createOrUpdate::parameters.resource, +@@doc(LocalUserOperationGroup.createOrUpdate::parameters.resource, "The local user associated with a storage account." ); diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/ObjectReplicationPolicy.tsp b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/ObjectReplicationPolicy.tsp index 93093d015b..efc8c43ccb 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/ObjectReplicationPolicy.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/ObjectReplicationPolicy.tsp @@ -26,7 +26,7 @@ model ObjectReplicationPolicy } @armResourceOperations -interface ObjectReplicationPoliciesOperationGroup { +interface ObjectReplicationPolicyOperationGroup { /** * Get the object replication policy of the storage account by policy ID. */ @@ -70,6 +70,6 @@ interface ObjectReplicationPoliciesOperationGroup { @@doc(ObjectReplicationPolicy.properties, "Returns the Storage Account Object Replication Policy." ); -@@doc(ObjectReplicationPoliciesOperationGroup.createOrUpdate::parameters.resource, +@@doc(ObjectReplicationPolicyOperationGroup.createOrUpdate::parameters.resource, "The object replication policy set to a storage account. A unique policy ID will be created if absent." ); diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/QueueServiceProperties.tsp b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/QueueServiceProperties.tsp index 63c1574d76..4e7f975ab4 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/QueueServiceProperties.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/QueueServiceProperties.tsp @@ -27,20 +27,16 @@ model QueueServiceProperties } @armResourceOperations -interface QueueServicePropertiesOperationGroup { +interface QueueServices { /** * Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("QueueServices_GetServiceProperties") getServiceProperties is ArmResourceRead; /** * Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" - @operationId("QueueServices_SetServiceProperties") setServiceProperties is ArmResourceCreateOrReplaceSync< QueueServiceProperties, Response = ArmResourceUpdatedResponse @@ -49,8 +45,6 @@ interface QueueServicePropertiesOperationGroup { /** * List all queue services for the storage account */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("QueueServices_List") list is ArmResourceListByParent< QueueServiceProperties, Response = ArmResponse @@ -61,6 +55,6 @@ interface QueueServicePropertiesOperationGroup { @@doc(QueueServiceProperties.properties, "The properties of a storage account’s Queue service." ); -@@doc(QueueServicePropertiesOperationGroup.setServiceProperties::parameters.resource, +@@doc(QueueServices.setServiceProperties::parameters.resource, "The properties of a storage account’s Queue service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified." ); diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/TableServiceProperties.tsp b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/TableServiceProperties.tsp index 3dc907261e..51be9b2b94 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/TableServiceProperties.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/TableServiceProperties.tsp @@ -27,20 +27,16 @@ model TableServiceProperties } @armResourceOperations -interface TableServicePropertiesOperationGroup { +interface TableServices { /** * Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("TableServices_GetServiceProperties") getServiceProperties is ArmResourceRead; /** * Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" - @operationId("TableServices_SetServiceProperties") setServiceProperties is ArmResourceCreateOrReplaceSync< TableServiceProperties, Response = ArmResourceUpdatedResponse @@ -49,8 +45,6 @@ interface TableServicePropertiesOperationGroup { /** * List all table services for the storage account. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("TableServices_List") list is ArmResourceListByParent< TableServiceProperties, Response = ArmResponse @@ -61,6 +55,6 @@ interface TableServicePropertiesOperationGroup { @@doc(TableServiceProperties.properties, "The properties of a storage account’s Table service." ); -@@doc(TableServicePropertiesOperationGroup.setServiceProperties::parameters.resource, +@@doc(TableServices.setServiceProperties::parameters.resource, "The properties of a storage account’s Table service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified." ); diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/client.tsp b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/client.tsp index 5f27478500..3bf9a7717d 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/client.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/client.tsp @@ -53,13 +53,13 @@ using Microsoft.Storage; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(BlobInventoryPolicy.properties); -@@clientName(ObjectReplicationPoliciesOperationGroup.createOrUpdate::parameters.resource, +@@clientName(ObjectReplicationPolicyOperationGroup.createOrUpdate::parameters.resource, "properties" ); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(ObjectReplicationPolicy.properties); -@@clientName(LocalUsersOperationGroup.createOrUpdate::parameters.resource, +@@clientName(LocalUserOperationGroup.createOrUpdate::parameters.resource, "properties" ); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@ -71,7 +71,7 @@ using Microsoft.Storage; @@flattenProperty(EncryptionScope.properties); @@clientName(BlobServicePropertiesOperationGroup, "BlobServiceProperties"); -@@clientName(BlobServicePropertiesOperationGroup.setServiceProperties::parameters.resource, +@@clientName(BlobServices.setServiceProperties::parameters.resource, "parameters" ); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@ -91,7 +91,7 @@ using Microsoft.Storage; @@flattenProperty(ImmutabilityPolicy.properties); @@clientName(FileServicePropertiesOperationGroup, "FileServiceProperties"); -@@clientName(FileServicePropertiesOperationGroup.setServiceProperties::parameters.resource, +@@clientName(FileServices.setServiceProperties::parameters.resource, "parameters" ); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@ -104,7 +104,7 @@ using Microsoft.Storage; @@flattenProperty(FileShare.properties); @@clientName(QueueServicePropertiesOperationGroup, "QueueServiceProperties"); -@@clientName(QueueServicePropertiesOperationGroup.setServiceProperties::parameters.resource, +@@clientName(QueueServices.setServiceProperties::parameters.resource, "parameters" ); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@ -116,7 +116,7 @@ using Microsoft.Storage; @@flattenProperty(StorageQueue.properties); @@clientName(TableServicePropertiesOperationGroup, "TableServiceProperties"); -@@clientName(TableServicePropertiesOperationGroup.setServiceProperties::parameters.resource, +@@clientName(TableServices.setServiceProperties::parameters.resource, "parameters" ); #suppress "deprecated" "@flattenProperty decorator is not recommended to use." diff --git a/packages/extensions/openapi-to-typespec/test/arm-test/resources.json b/packages/extensions/openapi-to-typespec/test/arm-test/resources.json index c828332f55..cd2e9a668c 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-test/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-test/resources.json @@ -1,235 +1,243 @@ { "Resources": { - "Employee": { - "Name": "Employee", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}", - "Method": "GET", - "OperationID": "Employees_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Employee" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}", - "Method": "PUT", - "OperationID": "Employees_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create a Employee" - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}", - "Method": "PATCH", - "OperationID": "Employees_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Update a Employee" - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}", - "Method": "DELETE", - "OperationID": "Employees_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete a Employee" - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees", - "Method": "GET", - "OperationID": "Employees_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Employee resources by resource group" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "_", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Test/employees", - "Method": "GET", - "OperationID": "Employees_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List Employee resources by subscription ID" - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "ResourceGroupResource" - ], - "SwaggerModelName": "Employee", - "ResourceType": "Microsoft.Test/employees", - "ResourceKey": "employeeName", - "ResourceKeySegment": "employees", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "Enroll": { - "Name": "Enroll", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}/enrolls/default", - "Method": "GET", - "OperationID": "Enrolls_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Enroll." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Employee" - ], - "SwaggerModelName": "Enroll", - "ResourceType": "Microsoft.Test/employees/enrolls", - "ResourceKey": "default", - "ResourceKeySegment": "enrolls", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": true - }, - "DictProperty": { - "Name": "DictProperty", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}/dictproperties/{name}", - "Method": "GET", - "OperationID": "DictProperties_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Resource." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}/dictproperties", - "Method": "GET", - "OperationID": "DictProperties_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List resources by resource group" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Employee" - ], - "SwaggerModelName": "DictProperty", - "ResourceType": "Microsoft.Test/employees/dictproperties", - "ResourceKey": "name", - "ResourceKeySegment": "dictproperties", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ArrayDefault": { - "Name": "ArrayDefault", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}/arraydefaults/{name}", - "Method": "GET", - "OperationID": "ArrayDefault_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a Resource." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}/arraydefaults", - "Method": "GET", - "OperationID": "ArrayDefault_ListByResourceGroup", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByResourceGroup", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List resources by resource group" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": [ - "Employee" - ], - "SwaggerModelName": "ArrayDefault", - "ResourceType": "Microsoft.Test/employees/arraydefaults", - "ResourceKey": "name", - "ResourceKeySegment": "arraydefaults", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - } + "Employee": [ + { + "Name": "Employee", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}", + "Method": "GET", + "OperationID": "Employees_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Employee" + } + ], + "CreateOperations": [ + { + "Name": "CreateOrUpdate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}", + "Method": "PUT", + "OperationID": "Employees_CreateOrUpdate", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Create a Employee" + } + ], + "UpdateOperations": [ + { + "Name": "Update", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}", + "Method": "PATCH", + "OperationID": "Employees_Update", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Update a Employee" + } + ], + "DeleteOperations": [ + { + "Name": "Delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}", + "Method": "DELETE", + "OperationID": "Employees_Delete", + "IsLongRunning": true, + "PagingMetadata": null, + "Description": "Delete a Employee" + } + ], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees", + "Method": "GET", + "OperationID": "Employees_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Employee resources by resource group" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [ + { + "Name": "_", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Test/employees", + "Method": "GET", + "OperationID": "Employees_ListBySubscription", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListBySubscription", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List Employee resources by subscription ID" + } + ], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ResourceGroupResource" + ], + "SwaggerModelName": "Employee", + "ResourceType": "Microsoft.Test/employees", + "ResourceKey": "employeeName", + "ResourceKeySegment": "employees", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "Enroll": [ + { + "Name": "Enroll", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}/enrolls/default", + "Method": "GET", + "OperationID": "Enrolls_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Enroll." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Employee" + ], + "SwaggerModelName": "Enroll", + "ResourceType": "Microsoft.Test/employees/enrolls", + "ResourceKey": "default", + "ResourceKeySegment": "enrolls", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": true + } + ], + "DictProperty": [ + { + "Name": "DictProperty", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}/dictproperties/{name}", + "Method": "GET", + "OperationID": "DictProperties_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Resource." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}/dictproperties", + "Method": "GET", + "OperationID": "DictProperties_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List resources by resource group" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Employee" + ], + "SwaggerModelName": "DictProperty", + "ResourceType": "Microsoft.Test/employees/dictproperties", + "ResourceKey": "name", + "ResourceKeySegment": "dictproperties", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ], + "ArrayDefault": [ + { + "Name": "ArrayDefault", + "GetOperations": [ + { + "Name": "Get", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}/arraydefaults/{name}", + "Method": "GET", + "OperationID": "ArrayDefault_Get", + "IsLongRunning": false, + "PagingMetadata": null, + "Description": "Get a Resource." + } + ], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [ + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Test/employees/{employeeName}/arraydefaults", + "Method": "GET", + "OperationID": "ArrayDefault_ListByResourceGroup", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListByResourceGroup", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "List resources by resource group" + } + ], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "Employee" + ], + "SwaggerModelName": "ArrayDefault", + "ResourceType": "Microsoft.Test/employees/arraydefaults", + "ResourceKey": "name", + "ResourceKeySegment": "arraydefaults", + "IsTrackedResource": true, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + } + ] }, "RenameMapping": {}, "OverrideOperationName": {} diff --git a/packages/extensions/openapi-to-typespec/test/search/tsp-output/models.tsp b/packages/extensions/openapi-to-typespec/test/search/tsp-output/models.tsp index 4081ce94c0..0ab97d5b21 100644 --- a/packages/extensions/openapi-to-typespec/test/search/tsp-output/models.tsp +++ b/packages/extensions/openapi-to-typespec/test/search/tsp-output/models.tsp @@ -547,7 +547,7 @@ namespace Azure.Search; * Services Vision Vectorize API. */"AIServicesVision": "aiServicesVision", /** * Generate embeddings using an Azure Machine Learning endpoint deployed via the -* Azure AI Studio Model Catalog at query time. +* Azure AI Foundry Model Catalog at query time. */"AML": "aml" } @@ -660,7 +660,7 @@ namespace Azure.Search; * Forms bigrams of CJK terms that are generated from the standard tokenizer. See * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKBigramFilter.html */"CjkBigram": "cjk_bigram", /** -* Normalizes CJK width differences. Folds fullwidth ASCII variants into the +* Normalizes CJK width differences. Folds full-width ASCII variants into the * equivalent basic Latin, and half-width Katakana variants into the equivalent * Kana. See * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKWidthFilter.html @@ -1238,7 +1238,7 @@ threshold direction will be chosen for higher @search.score. } /** -* The name of the embedding model from the Azure AI Studio Catalog that will be +* The name of the embedding model from the Azure AI Foundry Catalog that will be * called. */ union AIStudioModelCatalogName { @@ -7334,7 +7334,7 @@ model AIServicesVisionParameters { } /** -* Specifies an Azure Machine Learning endpoint deployed via the Azure AI Studio +* Specifies an Azure Machine Learning endpoint deployed via the Azure AI Foundry * Model Catalog for generating the vector embedding of a query string. */ model AMLVectorizer extends VectorSearchVectorizer { @@ -7382,7 +7382,7 @@ model AMLParameters { */ "region"?: string; /** -* The name of the embedding model from the Azure AI Studio Catalog that is +* The name of the embedding model from the Azure AI Foundry Catalog that is * deployed at the provided endpoint. */ "modelName"?: AIStudioModelCatalogName;