@autorest/powershell 2.1.401 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/.rush/temp/package-deps_build.json +213 -186
  2. package/.rush/temp/shrinkwrap-deps.json +322 -326
  3. package/autorest-configuration.md +60 -47
  4. package/dist/cmdlets/class.d.ts +21 -8
  5. package/dist/cmdlets/class.d.ts.map +1 -1
  6. package/dist/cmdlets/class.js +475 -151
  7. package/dist/cmdlets/class.js.map +1 -1
  8. package/dist/cmdlets/namespace.d.ts.map +1 -1
  9. package/dist/cmdlets/namespace.js +1 -0
  10. package/dist/cmdlets/namespace.js.map +1 -1
  11. package/dist/enums/namespace.d.ts.map +1 -1
  12. package/dist/enums/namespace.js +17 -10
  13. package/dist/enums/namespace.js.map +1 -1
  14. package/dist/generators/csproj.d.ts.map +1 -1
  15. package/dist/generators/csproj.js +2 -1
  16. package/dist/generators/csproj.js.map +1 -1
  17. package/dist/generators/gitignore.d.ts.map +1 -1
  18. package/dist/generators/gitignore.js +1 -0
  19. package/dist/generators/gitignore.js.map +1 -1
  20. package/dist/generators/nuspec.d.ts.map +1 -1
  21. package/dist/generators/nuspec.js +4 -3
  22. package/dist/generators/nuspec.js.map +1 -1
  23. package/dist/generators/psm1.d.ts.map +1 -1
  24. package/dist/generators/psm1.js +24 -15
  25. package/dist/generators/psm1.js.map +1 -1
  26. package/dist/generators/script-cmdlet.d.ts.map +1 -1
  27. package/dist/generators/script-cmdlet.js +1 -1
  28. package/dist/generators/script-cmdlet.js.map +1 -1
  29. package/dist/internal/name-inferrer.d.ts.map +1 -1
  30. package/dist/internal/name-inferrer.js +2 -0
  31. package/dist/internal/name-inferrer.js.map +1 -1
  32. package/dist/internal/project.d.ts +46 -5
  33. package/dist/internal/project.d.ts.map +1 -1
  34. package/dist/internal/project.js +72 -13
  35. package/dist/internal/project.js.map +1 -1
  36. package/dist/internal/state.d.ts +3 -2
  37. package/dist/internal/state.d.ts.map +1 -1
  38. package/dist/internal/state.js +3 -3
  39. package/dist/internal/state.js.map +1 -1
  40. package/dist/llcsharp/clientruntime.d.ts +5 -0
  41. package/dist/llcsharp/clientruntime.d.ts.map +1 -1
  42. package/dist/llcsharp/clientruntime.js +5 -0
  43. package/dist/llcsharp/clientruntime.js.map +1 -1
  44. package/dist/llcsharp/enums/enum.d.ts +2 -2
  45. package/dist/llcsharp/enums/enum.d.ts.map +1 -1
  46. package/dist/llcsharp/enums/enum.js +11 -10
  47. package/dist/llcsharp/enums/enum.js.map +1 -1
  48. package/dist/llcsharp/generator.d.ts +3 -3
  49. package/dist/llcsharp/generator.d.ts.map +1 -1
  50. package/dist/llcsharp/generator.js +4 -2
  51. package/dist/llcsharp/generator.js.map +1 -1
  52. package/dist/llcsharp/model/interface.d.ts +3 -2
  53. package/dist/llcsharp/model/interface.d.ts.map +1 -1
  54. package/dist/llcsharp/model/interface.js +68 -17
  55. package/dist/llcsharp/model/interface.js.map +1 -1
  56. package/dist/llcsharp/model/model-class-dictionary.d.ts.map +1 -1
  57. package/dist/llcsharp/model/model-class-dictionary.js +12 -6
  58. package/dist/llcsharp/model/model-class-dictionary.js.map +1 -1
  59. package/dist/llcsharp/model/model-class-json.d.ts.map +1 -1
  60. package/dist/llcsharp/model/model-class-json.js +20 -12
  61. package/dist/llcsharp/model/model-class-json.js.map +1 -1
  62. package/dist/llcsharp/model/model-class-serializer.d.ts +9 -21
  63. package/dist/llcsharp/model/model-class-serializer.d.ts.map +1 -1
  64. package/dist/llcsharp/model/model-class-serializer.js +21 -50
  65. package/dist/llcsharp/model/model-class-serializer.js.map +1 -1
  66. package/dist/llcsharp/model/model-class.d.ts +7 -4
  67. package/dist/llcsharp/model/model-class.d.ts.map +1 -1
  68. package/dist/llcsharp/model/model-class.js +147 -82
  69. package/dist/llcsharp/model/model-class.js.map +1 -1
  70. package/dist/llcsharp/model/namespace.d.ts +4 -4
  71. package/dist/llcsharp/model/namespace.d.ts.map +1 -1
  72. package/dist/llcsharp/model/namespace.js +40 -18
  73. package/dist/llcsharp/model/namespace.js.map +1 -1
  74. package/dist/llcsharp/model/property.d.ts +4 -4
  75. package/dist/llcsharp/model/property.d.ts.map +1 -1
  76. package/dist/llcsharp/model/property.js +9 -7
  77. package/dist/llcsharp/model/property.js.map +1 -1
  78. package/dist/llcsharp/operation/api-class.d.ts.map +1 -1
  79. package/dist/llcsharp/operation/api-class.js +24 -23
  80. package/dist/llcsharp/operation/api-class.js.map +1 -1
  81. package/dist/llcsharp/operation/method.d.ts +7 -5
  82. package/dist/llcsharp/operation/method.d.ts.map +1 -1
  83. package/dist/llcsharp/operation/method.js +157 -93
  84. package/dist/llcsharp/operation/method.js.map +1 -1
  85. package/dist/llcsharp/operation/namespace.js +2 -1
  86. package/dist/llcsharp/operation/namespace.js.map +1 -1
  87. package/dist/llcsharp/operation/parameter.d.ts +4 -4
  88. package/dist/llcsharp/operation/parameter.d.ts.map +1 -1
  89. package/dist/llcsharp/operation/parameter.js +7 -5
  90. package/dist/llcsharp/operation/parameter.js.map +1 -1
  91. package/dist/llcsharp/project.d.ts +4 -0
  92. package/dist/llcsharp/project.d.ts.map +1 -1
  93. package/dist/llcsharp/project.js +7 -2
  94. package/dist/llcsharp/project.js.map +1 -1
  95. package/dist/llcsharp/schema/Uuid.d.ts +2 -2
  96. package/dist/llcsharp/schema/Uuid.d.ts.map +1 -1
  97. package/dist/llcsharp/schema/Uuid.js.map +1 -1
  98. package/dist/llcsharp/schema/array.d.ts +3 -3
  99. package/dist/llcsharp/schema/array.d.ts.map +1 -1
  100. package/dist/llcsharp/schema/array.js +15 -8
  101. package/dist/llcsharp/schema/array.js.map +1 -1
  102. package/dist/llcsharp/schema/binary.d.ts +3 -3
  103. package/dist/llcsharp/schema/binary.d.ts.map +1 -1
  104. package/dist/llcsharp/schema/binary.js.map +1 -1
  105. package/dist/llcsharp/schema/boolean.d.ts +4 -4
  106. package/dist/llcsharp/schema/boolean.d.ts.map +1 -1
  107. package/dist/llcsharp/schema/boolean.js +1 -1
  108. package/dist/llcsharp/schema/boolean.js.map +1 -1
  109. package/dist/llcsharp/schema/byte-array.d.ts +3 -3
  110. package/dist/llcsharp/schema/byte-array.d.ts.map +1 -1
  111. package/dist/llcsharp/schema/byte-array.js +12 -2
  112. package/dist/llcsharp/schema/byte-array.js.map +1 -1
  113. package/dist/llcsharp/schema/char.d.ts +4 -4
  114. package/dist/llcsharp/schema/char.d.ts.map +1 -1
  115. package/dist/llcsharp/schema/char.js +3 -3
  116. package/dist/llcsharp/schema/char.js.map +1 -1
  117. package/dist/llcsharp/schema/date-time.d.ts +7 -7
  118. package/dist/llcsharp/schema/date-time.d.ts.map +1 -1
  119. package/dist/llcsharp/schema/date-time.js +4 -4
  120. package/dist/llcsharp/schema/date-time.js.map +1 -1
  121. package/dist/llcsharp/schema/date.d.ts +2 -2
  122. package/dist/llcsharp/schema/date.d.ts.map +1 -1
  123. package/dist/llcsharp/schema/date.js.map +1 -1
  124. package/dist/llcsharp/schema/duration.d.ts +5 -5
  125. package/dist/llcsharp/schema/duration.d.ts.map +1 -1
  126. package/dist/llcsharp/schema/duration.js +2 -2
  127. package/dist/llcsharp/schema/duration.js.map +1 -1
  128. package/dist/llcsharp/schema/enum.d.ts +2 -2
  129. package/dist/llcsharp/schema/enum.d.ts.map +1 -1
  130. package/dist/llcsharp/schema/enum.js +5 -3
  131. package/dist/llcsharp/schema/enum.js.map +1 -1
  132. package/dist/llcsharp/schema/extended-type-declaration.d.ts +2 -2
  133. package/dist/llcsharp/schema/extended-type-declaration.d.ts.map +1 -1
  134. package/dist/llcsharp/schema/integer.d.ts +4 -4
  135. package/dist/llcsharp/schema/integer.d.ts.map +1 -1
  136. package/dist/llcsharp/schema/integer.js +1 -1
  137. package/dist/llcsharp/schema/integer.js.map +1 -1
  138. package/dist/llcsharp/schema/object.d.ts +3 -3
  139. package/dist/llcsharp/schema/object.d.ts.map +1 -1
  140. package/dist/llcsharp/schema/object.js +25 -21
  141. package/dist/llcsharp/schema/object.js.map +1 -1
  142. package/dist/llcsharp/schema/password.d.ts +23 -0
  143. package/dist/llcsharp/schema/password.d.ts.map +1 -0
  144. package/dist/llcsharp/schema/password.js +89 -0
  145. package/dist/llcsharp/schema/password.js.map +1 -0
  146. package/dist/llcsharp/schema/primitive.d.ts +4 -4
  147. package/dist/llcsharp/schema/primitive.d.ts.map +1 -1
  148. package/dist/llcsharp/schema/primitive.js +7 -3
  149. package/dist/llcsharp/schema/primitive.js.map +1 -1
  150. package/dist/llcsharp/schema/schema-resolver.d.ts +4 -3
  151. package/dist/llcsharp/schema/schema-resolver.d.ts.map +1 -1
  152. package/dist/llcsharp/schema/schema-resolver.js +61 -64
  153. package/dist/llcsharp/schema/schema-resolver.js.map +1 -1
  154. package/dist/llcsharp/schema/string.d.ts +3 -3
  155. package/dist/llcsharp/schema/string.d.ts.map +1 -1
  156. package/dist/llcsharp/schema/string.js +14 -10
  157. package/dist/llcsharp/schema/string.js.map +1 -1
  158. package/dist/main.d.ts.map +1 -1
  159. package/dist/main.js +23 -14
  160. package/dist/main.js.map +1 -1
  161. package/dist/models/model-extensions.d.ts +3 -2
  162. package/dist/models/model-extensions.d.ts.map +1 -1
  163. package/dist/models/model-extensions.js +195 -168
  164. package/dist/models/model-extensions.js.map +1 -1
  165. package/dist/module/module-class.d.ts +4 -2
  166. package/dist/module/module-class.d.ts.map +1 -1
  167. package/dist/module/module-class.js +67 -13
  168. package/dist/module/module-class.js.map +1 -1
  169. package/dist/module/module-namespace.d.ts +2 -2
  170. package/dist/module/module-namespace.d.ts.map +1 -1
  171. package/dist/module/module-namespace.js +3 -2
  172. package/dist/module/module-namespace.js.map +1 -1
  173. package/dist/plugins/add-azure-completers-v2.d.ts +3 -0
  174. package/dist/plugins/add-azure-completers-v2.d.ts.map +1 -0
  175. package/dist/plugins/{add-azure-completers.js → add-azure-completers-v2.js} +7 -5
  176. package/dist/plugins/add-azure-completers-v2.js.map +1 -0
  177. package/dist/plugins/create-commands-v2.d.ts +40 -0
  178. package/dist/plugins/create-commands-v2.d.ts.map +1 -0
  179. package/dist/plugins/{create-commands.js → create-commands-v2.js} +128 -78
  180. package/dist/plugins/create-commands-v2.js.map +1 -0
  181. package/dist/plugins/cs-namer-v2.d.ts +3 -0
  182. package/dist/plugins/cs-namer-v2.d.ts.map +1 -0
  183. package/dist/plugins/cs-namer-v2.js +230 -0
  184. package/dist/plugins/cs-namer-v2.js.map +1 -0
  185. package/dist/plugins/llcsharp-v2.d.ts +3 -0
  186. package/dist/plugins/llcsharp-v2.d.ts.map +1 -0
  187. package/dist/plugins/{llcsharp.js → llcsharp-v2.js} +3 -3
  188. package/dist/plugins/llcsharp-v2.js.map +1 -0
  189. package/dist/plugins/modifiers-v2.d.ts +3 -0
  190. package/dist/plugins/modifiers-v2.d.ts.map +1 -0
  191. package/dist/plugins/{modifiers.js → modifiers-v2.js} +151 -32
  192. package/dist/plugins/modifiers-v2.js.map +1 -0
  193. package/dist/plugins/plugin-create-inline-properties.d.ts +4 -0
  194. package/dist/plugins/plugin-create-inline-properties.d.ts.map +1 -0
  195. package/dist/plugins/plugin-create-inline-properties.js +356 -0
  196. package/dist/plugins/plugin-create-inline-properties.js.map +1 -0
  197. package/dist/plugins/plugin-tweak-m4-model.d.ts +3 -0
  198. package/dist/plugins/plugin-tweak-m4-model.d.ts.map +1 -0
  199. package/dist/plugins/plugin-tweak-m4-model.js +166 -0
  200. package/dist/plugins/plugin-tweak-m4-model.js.map +1 -0
  201. package/dist/plugins/plugin-tweak-model-azure-v2.d.ts +3 -0
  202. package/dist/plugins/plugin-tweak-model-azure-v2.d.ts.map +1 -0
  203. package/dist/plugins/plugin-tweak-model-azure-v2.js +169 -0
  204. package/dist/plugins/plugin-tweak-model-azure-v2.js.map +1 -0
  205. package/dist/plugins/plugin-tweak-model.d.ts +9 -0
  206. package/dist/plugins/plugin-tweak-model.d.ts.map +1 -0
  207. package/dist/plugins/plugin-tweak-model.js +572 -0
  208. package/dist/plugins/plugin-tweak-model.js.map +1 -0
  209. package/dist/plugins/powershell-v2.d.ts +3 -0
  210. package/dist/plugins/powershell-v2.d.ts.map +1 -0
  211. package/dist/plugins/{powershell.js → powershell-v2.js} +9 -4
  212. package/dist/plugins/powershell-v2.js.map +1 -0
  213. package/dist/plugins/{ps-namer.d.ts → ps-namer-v2.d.ts} +2 -2
  214. package/dist/plugins/ps-namer-v2.d.ts.map +1 -0
  215. package/dist/plugins/{ps-namer.js → ps-namer-v2.js} +64 -49
  216. package/dist/plugins/ps-namer-v2.js.map +1 -0
  217. package/dist/utils/PwshModel.d.ts +8 -0
  218. package/dist/utils/PwshModel.d.ts.map +1 -0
  219. package/dist/utils/PwshModel.js +17 -0
  220. package/dist/utils/PwshModel.js.map +1 -0
  221. package/dist/utils/command-operation.d.ts +51 -0
  222. package/dist/utils/command-operation.d.ts.map +1 -0
  223. package/dist/utils/command-operation.js +33 -0
  224. package/dist/utils/command-operation.js.map +1 -0
  225. package/dist/utils/components.d.ts +133 -0
  226. package/dist/utils/components.d.ts.map +1 -0
  227. package/dist/utils/components.js +100 -0
  228. package/dist/utils/components.js.map +1 -0
  229. package/dist/utils/extensions.d.ts +11 -0
  230. package/dist/utils/extensions.d.ts.map +1 -0
  231. package/dist/utils/extensions.js +16 -0
  232. package/dist/utils/extensions.js.map +1 -0
  233. package/dist/utils/http-definitions.d.ts +45 -0
  234. package/dist/utils/http-definitions.d.ts.map +1 -0
  235. package/dist/utils/http-definitions.js +47 -0
  236. package/dist/utils/http-definitions.js.map +1 -0
  237. package/dist/utils/http-operation.d.ts +8 -0
  238. package/dist/utils/http-operation.d.ts.map +1 -0
  239. package/dist/utils/http-operation.js +254 -0
  240. package/dist/utils/http-operation.js.map +1 -0
  241. package/dist/utils/info.d.ts +36 -0
  242. package/dist/utils/info.d.ts.map +1 -0
  243. package/dist/utils/info.js +36 -0
  244. package/dist/utils/info.js.map +1 -0
  245. package/dist/utils/model-state.d.ts +44 -0
  246. package/dist/utils/model-state.d.ts.map +1 -0
  247. package/dist/utils/model-state.js +206 -0
  248. package/dist/utils/model-state.js.map +1 -0
  249. package/dist/utils/powershell-comment.d.ts +2 -0
  250. package/dist/utils/powershell-comment.d.ts.map +1 -0
  251. package/dist/utils/powershell-comment.js +25 -0
  252. package/dist/utils/powershell-comment.js.map +1 -0
  253. package/dist/utils/programatic-operation.d.ts +20 -0
  254. package/dist/utils/programatic-operation.d.ts.map +1 -0
  255. package/dist/utils/programatic-operation.js +29 -0
  256. package/dist/utils/programatic-operation.js.map +1 -0
  257. package/dist/utils/resolve-conflicts.d.ts +7 -0
  258. package/dist/utils/resolve-conflicts.d.ts.map +1 -0
  259. package/dist/utils/resolve-conflicts.js +57 -0
  260. package/dist/utils/resolve-conflicts.js.map +1 -0
  261. package/dist/utils/schema.d.ts +116 -0
  262. package/dist/utils/schema.d.ts.map +1 -0
  263. package/dist/utils/schema.js +186 -0
  264. package/dist/utils/schema.js.map +1 -0
  265. package/dist/utils/security-scheme.d.ts +123 -0
  266. package/dist/utils/security-scheme.d.ts.map +1 -0
  267. package/dist/utils/security-scheme.js +119 -0
  268. package/dist/utils/security-scheme.js.map +1 -0
  269. package/dist/utils/uid.d.ts +2 -0
  270. package/dist/utils/uid.d.ts.map +1 -0
  271. package/dist/utils/uid.js +8 -0
  272. package/dist/utils/uid.js.map +1 -0
  273. package/package.json +22 -21
  274. package/resources/assets/build-module.ps1 +12 -15
  275. package/resources/assets/check-dependencies.ps1 +4 -14
  276. package/resources/assets/create-model-cmdlets.ps1 +157 -0
  277. package/resources/assets/custom/{readme.md → README.md} +7 -7
  278. package/resources/assets/docs/README.md +11 -0
  279. package/resources/assets/examples/{readme.md → README.md} +0 -0
  280. package/resources/assets/export-surface.ps1 +1 -11
  281. package/resources/assets/exports/{readme.md → README.md} +2 -2
  282. package/resources/assets/generate-help.ps1 +2 -12
  283. package/resources/assets/how-to.md +5 -5
  284. package/resources/assets/internal/{readme.md → README.md} +3 -3
  285. package/resources/assets/pack-module.ps1 +1 -11
  286. package/resources/assets/resources/{readme.md → README.md} +0 -0
  287. package/resources/assets/run-module.ps1 +3 -11
  288. package/resources/assets/test/{readme.md → README.md} +0 -0
  289. package/resources/assets/test/loadEnv.ps1 +1 -11
  290. package/resources/assets/test-module.ps1 +39 -24
  291. package/resources/assets/tools/Resources/{readme.md → README.md} +3 -2
  292. package/resources/assets/tools/Resources/docs/{readme.md → README.md} +1 -1
  293. package/resources/assets/tools/Resources/examples/{readme.md → README.md} +0 -0
  294. package/resources/assets/tools/Resources/how-to.md +5 -5
  295. package/resources/assets/tools/Resources/resources/{readme.md → README.md} +0 -0
  296. package/resources/assets/tools/Resources/test/{readme.md → README.md} +0 -0
  297. package/resources/modules/Az.Accounts/2.7.5/Accounts.format.ps1xml +496 -0
  298. package/resources/modules/Az.Accounts/2.7.5/Accounts.generated.format.ps1xml +468 -0
  299. package/resources/modules/Az.Accounts/2.7.5/Accounts.types.ps1xml +303 -0
  300. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Az.Accounts.nuspec +5 -3
  301. package/resources/modules/Az.Accounts/2.7.5/Az.Accounts.psd1 +387 -0
  302. package/resources/modules/Az.Accounts/2.7.5/Az.Accounts.psm1 +375 -0
  303. package/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/Azure.Core.dll +0 -0
  304. package/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/Azure.Identity.dll +0 -0
  305. package/resources/modules/Az.Accounts/{1.8.1/PreloadAssemblies → 2.7.5/AzSharedAlcAssemblies}/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  306. package/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/Microsoft.Identity.Client.Extensions.Msal.dll +0 -0
  307. package/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/Microsoft.Identity.Client.dll +0 -0
  308. package/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/System.Memory.Data.dll +0 -0
  309. package/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/System.Text.Json.dll +0 -0
  310. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Hyak.Common.dll +0 -0
  311. package/resources/modules/Az.Accounts/2.7.5/Microsoft.ApplicationInsights.dll +0 -0
  312. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.Common.dll +0 -0
  313. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Authentication.Abstractions.dll +0 -0
  314. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Authentication.ResourceManager.deps.json +945 -404
  315. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll +0 -0
  316. package/resources/modules/Az.Accounts/{1.8.1/Microsoft.Azure.PowerShell.Cmdlets.Accounts.deps.json → 2.7.5/Microsoft.Azure.PowerShell.Authentication.deps.json} +906 -488
  317. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Authentication.dll +0 -0
  318. package/resources/modules/Az.Accounts/{1.8.1/Microsoft.Azure.PowerShell.Authentication.deps.json → 2.7.5/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.deps.json} +301 -719
  319. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll +0 -0
  320. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Authenticators.dll +0 -0
  321. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Clients.Aks.dll +0 -0
  322. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Clients.Authorization.dll +0 -0
  323. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Clients.Compute.dll +0 -0
  324. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll +0 -0
  325. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Clients.KeyVault.dll +0 -0
  326. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Clients.Monitor.dll +0 -0
  327. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Clients.Network.dll +0 -0
  328. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll +0 -0
  329. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Clients.ResourceManager.dll +0 -0
  330. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Clients.Storage.Management.dll +0 -0
  331. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Clients.Websites.dll +0 -0
  332. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Cmdlets.Accounts.deps.json +2413 -0
  333. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll +0 -0
  334. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml +3567 -1995
  335. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Common.Share.dll +0 -0
  336. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Common.dll +0 -0
  337. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Storage.dll +0 -0
  338. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Azure.PowerShell.Strategies.dll +0 -0
  339. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.Rest.ClientRuntime.Azure.dll +0 -0
  340. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Rest.ClientRuntime.dll +0 -0
  341. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.WindowsAzure.Storage.DataMovement.dll +0 -0
  342. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/Microsoft.WindowsAzure.Storage.dll +0 -0
  343. package/resources/modules/Az.Accounts/2.7.5/PostImportScripts/LoadAuthenticators.ps1 +219 -0
  344. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Azure.Core.dll +0 -0
  345. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Azure.Identity.dll +0 -0
  346. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Microsoft.Azure.PowerShell.Authenticators.dll +0 -0
  347. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  348. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Microsoft.Identity.Client.Extensions.Msal.dll +0 -0
  349. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Microsoft.Identity.Client.dll +0 -0
  350. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Newtonsoft.Json.12.0.3.dll +0 -0
  351. package/resources/modules/Az.Accounts/{1.8.1/PreloadAssemblies/Newtonsoft.Json.10.dll → 2.7.5/PreloadAssemblies/Newtonsoft.Json.dll} +0 -0
  352. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Buffers.dll +0 -0
  353. package/resources/modules/Az.Accounts/{1.8.1/PreloadAssemblies/System.Diagnostics.DiagnosticSource.4.0.4.0.dll → 2.7.5/PreloadAssemblies/System.Diagnostics.DiagnosticSource.dll} +0 -0
  354. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Memory.Data.dll +0 -0
  355. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/PreloadAssemblies/System.Memory.dll +0 -0
  356. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/PreloadAssemblies/System.Net.Http.WinHttpHandler.dll +0 -0
  357. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Numerics.Vectors.dll +0 -0
  358. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Private.ServiceModel.dll +0 -0
  359. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/PreloadAssemblies/System.Reflection.DispatchProxy.dll +0 -0
  360. package/resources/modules/Az.Accounts/{1.8.1/PreloadAssemblies/System.Runtime.CompilerServices.Unsafe.4.0.5.0.dll → 2.7.5/PreloadAssemblies/System.Runtime.CompilerServices.Unsafe.dll} +0 -0
  361. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/PreloadAssemblies/System.Security.AccessControl.dll +0 -0
  362. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Security.Cryptography.Cng.dll +0 -0
  363. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/PreloadAssemblies/System.Security.Permissions.dll +0 -0
  364. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/PreloadAssemblies/System.Security.Principal.Windows.dll +0 -0
  365. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.ServiceModel.Primitives.dll +0 -0
  366. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Text.Encodings.Web.dll +0 -0
  367. package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Text.Json.dll +0 -0
  368. package/resources/modules/Az.Accounts/{1.8.1/PreloadAssemblies/System.Threading.Tasks.Extensions.4.2.0.0.dll → 2.7.5/PreloadAssemblies/System.Threading.Tasks.Extensions.dll} +0 -0
  369. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/PreloadAssemblies/System.Xml.ReaderWriter.dll +0 -0
  370. package/resources/modules/Az.Accounts/2.7.5/StartupScripts/AzError.ps1 +278 -0
  371. package/resources/modules/Az.Accounts/2.7.5/StartupScripts/InitializeAssemblyResolver.ps1 +234 -0
  372. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/[Content_Types].xml +1 -0
  373. package/resources/modules/Az.Accounts/{1.8.1 → 2.7.5}/_rels/.rels +2 -2
  374. package/resources/modules/Az.Accounts/2.7.5/en-US/about_az.help.txt +50 -0
  375. package/resources/modules/Az.Accounts/{1.8.1/package/services/metadata/core-properties/b4e383786e734eb49545960a9feff173.psmdcp → 2.7.5/package/services/metadata/core-properties/1aa0749a068a4238881858013f1a5b7f.psmdcp} +2 -2
  376. package/resources/psruntime/AsyncCommandRuntime.cs +4 -0
  377. package/resources/psruntime/AsyncOperationResponse.cs +10 -11
  378. package/resources/psruntime/BuildTime/Cmdlets/ExportFormatPs1xml.cs +3 -1
  379. package/resources/psruntime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +94 -87
  380. package/resources/psruntime/BuildTime/Cmdlets/ExportPsd1.cs +168 -102
  381. package/resources/psruntime/BuildTime/Cmdlets/ExportTestStub.cs +22 -11
  382. package/resources/psruntime/BuildTime/Cmdlets/GetScriptCmdlet.cs +2 -1
  383. package/resources/psruntime/BuildTime/MarkdownRenderer.cs +1 -8
  384. package/resources/psruntime/BuildTime/Models/PsHelpMarkdownOutputs.cs +33 -11
  385. package/resources/psruntime/BuildTime/Models/PsHelpTypes.cs +3 -0
  386. package/resources/psruntime/BuildTime/Models/PsMarkdownTypes.cs +17 -14
  387. package/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs +111 -13
  388. package/resources/psruntime/BuildTime/Models/PsProxyTypes.cs +18 -3
  389. package/resources/psruntime/BuildTime/PsAttributes.cs +1 -1
  390. package/resources/psruntime/BuildTime/PsExtensions.cs +9 -0
  391. package/resources/psruntime/BuildTime/PsHelpers.cs +2 -1
  392. package/resources/psruntime/DictionaryExtensions.cs +8 -11
  393. package/resources/psruntime/EventDataExtensions.cs +1 -1
  394. package/resources/psruntime/MessageAttribute.cs +360 -0
  395. package/resources/psruntime/MessageAttributeHelper.cs +161 -0
  396. package/resources/psruntime/Properties/Resources.Designer.cs +5633 -0
  397. package/resources/psruntime/Properties/Resources.resx +1741 -0
  398. package/resources/psruntime/TypeConverterExtensions.cs +31 -10
  399. package/resources/runtime/csharp/client/Extensions.cs +7 -1
  400. package/resources/runtime/csharp/client/IAssociativeArray.cs +4 -1
  401. package/resources/runtime/csharp/client/UndeclaredResponseException.cs +10 -2
  402. package/resources/runtime/csharp/json/Customizations/IJsonSerializable.cs +21 -7
  403. package/resources/runtime/csharp/json/Nodes/JsonNumber.cs +5 -5
  404. package/resources/runtime/csharp/pipeline/ISendAsync.cs +7 -3
  405. package/resources/runtime/csharp/pipeline/PipelineMocking.cs +17 -9
  406. package/resources/utils/Unprotect-SecureString.ps1 +16 -0
  407. package/changelog.md +0 -4
  408. package/dist/llcsharp/enums/json-serializer.d.ts +0 -9
  409. package/dist/llcsharp/enums/json-serializer.d.ts.map +0 -1
  410. package/dist/llcsharp/enums/json-serializer.js +0 -41
  411. package/dist/llcsharp/enums/json-serializer.js.map +0 -1
  412. package/dist/llcsharp/model/model-class-xml.d.ts +0 -15
  413. package/dist/llcsharp/model/model-class-xml.d.ts.map +0 -1
  414. package/dist/llcsharp/model/model-class-xml.js +0 -145
  415. package/dist/llcsharp/model/model-class-xml.js.map +0 -1
  416. package/dist/plugins/add-azure-completers.d.ts +0 -3
  417. package/dist/plugins/add-azure-completers.d.ts.map +0 -1
  418. package/dist/plugins/add-azure-completers.js.map +0 -1
  419. package/dist/plugins/create-commands.d.ts +0 -38
  420. package/dist/plugins/create-commands.d.ts.map +0 -1
  421. package/dist/plugins/create-commands.js.map +0 -1
  422. package/dist/plugins/cs-namer.d.ts +0 -3
  423. package/dist/plugins/cs-namer.d.ts.map +0 -1
  424. package/dist/plugins/cs-namer.js +0 -203
  425. package/dist/plugins/cs-namer.js.map +0 -1
  426. package/dist/plugins/llcsharp.d.ts +0 -3
  427. package/dist/plugins/llcsharp.d.ts.map +0 -1
  428. package/dist/plugins/llcsharp.js.map +0 -1
  429. package/dist/plugins/modifiers.d.ts +0 -3
  430. package/dist/plugins/modifiers.d.ts.map +0 -1
  431. package/dist/plugins/modifiers.js.map +0 -1
  432. package/dist/plugins/powershell.d.ts +0 -3
  433. package/dist/plugins/powershell.d.ts.map +0 -1
  434. package/dist/plugins/powershell.js.map +0 -1
  435. package/dist/plugins/ps-namer.d.ts.map +0 -1
  436. package/dist/plugins/ps-namer.js.map +0 -1
  437. package/resources/assets/docs/readme.md +0 -11
  438. package/resources/modules/Az.Accounts/1.8.1/Accounts.format.ps1xml +0 -368
  439. package/resources/modules/Az.Accounts/1.8.1/Accounts.generated.format.ps1xml +0 -422
  440. package/resources/modules/Az.Accounts/1.8.1/Accounts.types.ps1xml +0 -281
  441. package/resources/modules/Az.Accounts/1.8.1/Az.Accounts.psd1 +0 -360
  442. package/resources/modules/Az.Accounts/1.8.1/Az.Accounts.psm1 +0 -339
  443. package/resources/modules/Az.Accounts/1.8.1/Microsoft.ApplicationInsights.dll +0 -0
  444. package/resources/modules/Az.Accounts/1.8.1/Microsoft.Azure.PowerShell.Authentication.Abstractions.dll +0 -0
  445. package/resources/modules/Az.Accounts/1.8.1/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll +0 -0
  446. package/resources/modules/Az.Accounts/1.8.1/Microsoft.Azure.PowerShell.Authentication.dll +0 -0
  447. package/resources/modules/Az.Accounts/1.8.1/Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll +0 -0
  448. package/resources/modules/Az.Accounts/1.8.1/Microsoft.Azure.PowerShell.Clients.ResourceManager.dll +0 -0
  449. package/resources/modules/Az.Accounts/1.8.1/Microsoft.Azure.PowerShell.Clients.Storage.Management.dll +0 -0
  450. package/resources/modules/Az.Accounts/1.8.1/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll +0 -0
  451. package/resources/modules/Az.Accounts/1.8.1/Microsoft.Azure.PowerShell.Common.dll +0 -0
  452. package/resources/modules/Az.Accounts/1.8.1/Microsoft.Rest.ClientRuntime.dll +0 -0
  453. package/resources/modules/Az.Accounts/1.8.1/NetCoreAssemblies/Azure.Core.dll +0 -0
  454. package/resources/modules/Az.Accounts/1.8.1/NetCoreAssemblies/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  455. package/resources/modules/Az.Accounts/1.8.1/NetCoreAssemblies/Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll +0 -0
  456. package/resources/modules/Az.Accounts/1.8.1/NetCoreAssemblies/Microsoft.IdentityModel.Clients.ActiveDirectory.dll +0 -0
  457. package/resources/modules/Az.Accounts/1.8.1/NetCoreAssemblies/System.Numerics.Vectors.dll +0 -0
  458. package/resources/modules/Az.Accounts/1.8.1/NetCoreAssemblies/System.Runtime.CompilerServices.Unsafe.dll +0 -0
  459. package/resources/modules/Az.Accounts/1.8.1/NetCoreAssemblies/System.Text.Encodings.Web.dll +0 -0
  460. package/resources/modules/Az.Accounts/1.8.1/NetCoreAssemblies/System.Text.Json.dll +0 -0
  461. package/resources/modules/Az.Accounts/1.8.1/NetCoreAssemblies/System.Threading.Tasks.Extensions.dll +0 -0
  462. package/resources/modules/Az.Accounts/1.8.1/PostImportScripts/LoadAuthenticators.ps1 +0 -197
  463. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/Azure.Core.dll +0 -0
  464. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/Microsoft.Azure.PowerShell.Authenticators.dll +0 -0
  465. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll +0 -0
  466. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/Microsoft.IdentityModel.Clients.ActiveDirectory.dll +0 -0
  467. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/System.Buffers.dll +0 -0
  468. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/System.Diagnostics.DiagnosticSource.dll +0 -0
  469. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/System.Numerics.Vectors.dll +0 -0
  470. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/System.Private.ServiceModel.dll +0 -0
  471. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/System.Runtime.CompilerServices.Unsafe.4.0.4.0.dll +0 -0
  472. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/System.Runtime.CompilerServices.Unsafe.4.0.4.1.dll +0 -0
  473. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/System.ServiceModel.Primitives.dll +0 -0
  474. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/System.Text.Encodings.Web.dll +0 -0
  475. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/System.Text.Json.dll +0 -0
  476. package/resources/modules/Az.Accounts/1.8.1/PreloadAssemblies/System.Threading.Tasks.Extensions.4.3.1.0.dll +0 -0
  477. package/resources/modules/Az.Accounts/1.8.1/StartupScripts/AzError.ps1 +0 -256
@@ -0,0 +1,572 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*---------------------------------------------------------------------------------------------
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License. See License.txt in the project root for license information.
6
+ *--------------------------------------------------------------------------------------------*/
7
+ const codemodel_1 = require("@azure-tools/codemodel");
8
+ const codegen_1 = require("@azure-tools/codegen");
9
+ const linq_1 = require("@azure-tools/linq");
10
+ const model_state_1 = require("../utils/model-state");
11
+ const autorest_extension_base_1 = require("@azure-tools/autorest-extension-base");
12
+ exports.HeaderProperty = 'HeaderProperty';
13
+ var HeaderPropertyType;
14
+ (function (HeaderPropertyType) {
15
+ HeaderPropertyType["Header"] = "Header";
16
+ HeaderPropertyType["HeaderAndBody"] = "HeaderAndBody";
17
+ })(HeaderPropertyType = exports.HeaderPropertyType || (exports.HeaderPropertyType = {}));
18
+ // For now, we are not dynamically changing the service-name. Instead, we would figure out a method to change it during the creation of service readme's.
19
+ function titleToAzureServiceName(title) {
20
+ const titleCamelCase = codegen_1.pascalCase(codegen_1.deconstruct(title)).trim();
21
+ const serviceName = titleCamelCase
22
+ // Remove: !StartsWith(Management)AndContains(Management), Client, Azure, Microsoft, APIs, API, REST
23
+ .replace(/(?!^Management)(?=.*)Management|Client|Azure|Microsoft|APIs|API|REST/g, '')
24
+ // Remove: EndsWith(ServiceResourceProvider), EndsWith(ResourceProvider), EndsWith(DataPlane), EndsWith(Data)
25
+ .replace(/ServiceResourceProvider$|ResourceProvider$|DataPlane$|Data$/g, '');
26
+ return serviceName || titleCamelCase;
27
+ }
28
+ exports.titleToAzureServiceName = titleToAzureServiceName;
29
+ function dropDuplicatePropertiesInChildSchemas(schema, state, map = new Map()) {
30
+ var _a, _b;
31
+ let success = true;
32
+ for (const parent of linq_1.values((_a = schema.parents) === null || _a === void 0 ? void 0 : _a.immediate)) {
33
+ //handle parents first
34
+ if (!dropDuplicatePropertiesInChildSchemas(parent, state, map)) {
35
+ return false;
36
+ }
37
+ }
38
+ for (const { key: id, value: property } of linq_1.items(schema.properties)) {
39
+ //see if it's in the parent.
40
+ const pProp = map.get(property.serializedName);
41
+ if (pProp) {
42
+ //if the parent prop is the same type as the child prop
43
+ //we're going to drop the child property.
44
+ if (pProp.schema.type === property.schema.type) {
45
+ //if it's an object type, it has to be the exact same schema type too
46
+ if (pProp.schema.type != codemodel_1.SchemaType.Object || pProp.schema === property.schema) {
47
+ state.verbose(`Property '${property.serializedName}' in '${schema.language.default.name}' has a property the same as the parent, and is dropping the duplicate.`, {});
48
+ if (schema.properties) {
49
+ delete schema.properties[id];
50
+ }
51
+ }
52
+ else {
53
+ const conflict = `Property '${property.serializedName}' in '${schema.language.default.name}' has a conflict with a parent schema (allOf ${(_b = schema.parents) === null || _b === void 0 ? void 0 : _b.immediate.joinWith(each => each.language.default.name)}.`;
54
+ state.error(conflict, [], {});
55
+ success = false;
56
+ }
57
+ }
58
+ }
59
+ else {
60
+ map.set(property.serializedName, property);
61
+ }
62
+ }
63
+ return success;
64
+ }
65
+ async function tweakModelV2(state) {
66
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
67
+ const title = codegen_1.pascalCase(codegen_1.fixLeadingNumber(codegen_1.deconstruct(await state.getValue('title', state.model.info.title))));
68
+ state.setValue('title', title);
69
+ const serviceName = await state.getValue('service-name', titleToAzureServiceName(title));
70
+ state.setValue('service-name', serviceName);
71
+ const model = state.model;
72
+ const schemas = model.schemas;
73
+ // xichen: do we need other schema types?
74
+ const allSchemas = [...(_a = schemas.objects, (_a !== null && _a !== void 0 ? _a : [])), ...(_b = schemas.choices, (_b !== null && _b !== void 0 ? _b : [])), ...(_c = schemas.sealedChoices, (_c !== null && _c !== void 0 ? _c : []))];
75
+ model.commands = {
76
+ operations: new linq_1.Dictionary(),
77
+ parameters: new linq_1.Dictionary(),
78
+ };
79
+ // we're going to create a schema that represents the distinct sum
80
+ // of all operation PATH parameters
81
+ const universalId = new codemodel_1.ObjectSchema(`${serviceName}Identity`, '');
82
+ // xichen: Add 'universal-parameter-type' in language.default.uid, so that we can find it later
83
+ universalId.language.default.uid = 'universal-parameter-type';
84
+ universalId.apiVersions = universalId.apiVersions || [];
85
+ state.model.schemas.objects = state.model.schemas.objects || [];
86
+ universalId.language.default.uid = 'universal-parameter-type';
87
+ state.model.schemas.objects.push(universalId);
88
+ for (const group of linq_1.values(model.operationGroups)) {
89
+ for (const operation of linq_1.values(group.operations)) {
90
+ for (const response of linq_1.values(operation.responses)) {
91
+ // Mark returned object in response
92
+ let respSchema = response.schema;
93
+ if (((_d = respSchema) === null || _d === void 0 ? void 0 : _d.type) === codemodel_1.SchemaType.Object) {
94
+ respSchema.extensions = respSchema.extensions || {};
95
+ respSchema.extensions['is-return-object'] = true;
96
+ }
97
+ }
98
+ for (const param of linq_1.values(operation.parameters).where(each => { var _a, _b; return ((_b = (_a = each.protocol) === null || _a === void 0 ? void 0 : _a.http) === null || _b === void 0 ? void 0 : _b.in) === codemodel_1.ParameterLocation.Path; })) {
99
+ const name = param.language.default.name;
100
+ const hasName = (_e = universalId.properties) === null || _e === void 0 ? void 0 : _e.find((prop) => prop.language.default.name.toLocaleLowerCase() === name.toLocaleLowerCase());
101
+ if (!hasName) {
102
+ if (!universalId.properties) {
103
+ universalId.properties = [];
104
+ }
105
+ const newProp = new codemodel_1.Property(name, param.language.default.description, param.schema);
106
+ newProp.required = false;
107
+ newProp.readOnly = false;
108
+ newProp.serializedName = param.language.default.serializedName;
109
+ universalId.properties.push(newProp);
110
+ }
111
+ }
112
+ }
113
+ }
114
+ if (await state.getValue('azure', false)) {
115
+ const idScheam = new codemodel_1.Schema('_identity_type_', 'Resource identity path', codemodel_1.SchemaType.String);
116
+ const idProp = new codemodel_1.Property('id', 'Resource identity path', idScheam);
117
+ idProp.readOnly = false;
118
+ idProp.required = false;
119
+ idProp.language.default.uid = 'universal-parameter:resource identity';
120
+ if (!universalId.properties) {
121
+ universalId.properties = [];
122
+ }
123
+ universalId.properties.push(idProp);
124
+ }
125
+ // xichen: do nothing in m3 logic. Comment it out
126
+ // if an operation has a response that has a schema with string/binary we should make the response application/octet-stream
127
+ // for (const operationGroups of values(model.operationGroups)) {
128
+ // for (const operation of values(operationGroups.operations)) {
129
+ // for (const response of values(operation.responses)) {
130
+ // if ((response as any).schema) {
131
+ // const respSchema = response as any;
132
+ // if (respSchema.type === SchemaType.String && respSchema.format === StringFormat.Binary) {
133
+ // // WHY WAS THIS HERE?!
134
+ // // response.mimeTypes = [KnownMediaType.Stream];
135
+ // }
136
+ // }
137
+ // }
138
+ // }
139
+ // }
140
+ // schemas that have parents and implement properties that are in the parent schemas
141
+ // will have the property dropped in the child schema
142
+ for (const schema of linq_1.values(model.schemas.objects)) {
143
+ if (linq_1.length((_f = schema.parents) === null || _f === void 0 ? void 0 : _f.immediate) > 0) {
144
+ if (!dropDuplicatePropertiesInChildSchemas(schema, state)) {
145
+ throw new Error('Schemas are in conflict.');
146
+ }
147
+ }
148
+ }
149
+ if (await state.getValue('use-storage-pipeline', false)) {
150
+ // we're going to create new models for the reponse headers ?
151
+ }
152
+ else {
153
+ // if an operation has a body parameter with string/binary, we should make the request application/octet-stream
154
+ // === Header Schemas ===
155
+ // go thru the operations, find responses that have header values, and add a property to the schemas that are returned with those values
156
+ for (const operationGroups of linq_1.values(model.operationGroups)) {
157
+ for (const operation of linq_1.values(operationGroups.operations)) {
158
+ for (const response of linq_1.values(operation.responses)) {
159
+ // for a given response, find the possible models that can be returned from the service
160
+ for (const header of linq_1.values((_g = response.protocol.http) === null || _g === void 0 ? void 0 : _g.headers)) {
161
+ if (!response.schema) {
162
+ // no response schema? can we fake one?
163
+ // service.Message({ Channel: Channel.Debug, Text: `${header.key} is in ${operation.details.default.name} but there is no response model` });
164
+ continue;
165
+ }
166
+ // if the method response has a schema and it's an object, we're going to add our properties to the schema object.
167
+ // yes, this means that the reponse model may have properties that are undefined if the server doesn't send back the header
168
+ // and other operations might add other headers that are not the same.
169
+ // if the method's response is a primitive value (string, boolean, null, number) or an array, we can't modify that type obviously
170
+ // in which case, we're going to add a header
171
+ // work with schemas that have objects only.
172
+ if (response.schema.type === codemodel_1.SchemaType.Object) {
173
+ const respSchema = response.schema;
174
+ const curHeader = header;
175
+ const headerKey = curHeader.header;
176
+ respSchema.language.default.hasHeaders = true;
177
+ const property = linq_1.values(codemodel_1.getAllProperties(respSchema)).first((each) => each.language.default.name === headerKey);
178
+ if (!property) {
179
+ state.message({ Channel: autorest_extension_base_1.Channel.Debug, Text: `Adding header property '${headerKey}' to model ${respSchema.language.default.name}` });
180
+ // create a property for the header value
181
+ const newProperty = new codemodel_1.Property(headerKey, curHeader.description || '', curHeader.schema);
182
+ newProperty.language.default.required = false;
183
+ // mark it that it's a header-only property
184
+ newProperty.language.default[exports.HeaderProperty] = HeaderPropertyType.Header;
185
+ // add it to this model.
186
+ if (!respSchema.properties) {
187
+ respSchema.properties = [];
188
+ }
189
+ respSchema.properties.push(newProperty);
190
+ }
191
+ else {
192
+ // there is a property with this name already.
193
+ // was this previously declared as a header only property?
194
+ if (!property.language.default[exports.HeaderProperty]) {
195
+ state.message({ Channel: autorest_extension_base_1.Channel.Debug, Text: `Property ${headerKey} in model ${respSchema.language.default.name} can also come from the header.` });
196
+ // no.. There is duplication between header and body property. Probably because of etags.
197
+ // tell it to be a header-and-body property.
198
+ property.language.default[exports.HeaderProperty] = HeaderPropertyType.HeaderAndBody;
199
+ property.language.default.name = headerKey;
200
+ }
201
+ }
202
+ }
203
+ }
204
+ }
205
+ }
206
+ }
207
+ }
208
+ // remove well-known header parameters from operations and add mark the operation has supporting that feature
209
+ for (const operationGruops of linq_1.values(model.operationGroups)) {
210
+ for (const operation of linq_1.values(operationGruops.operations)) {
211
+ // if we have an operation with a body, and content-type is a multipart/formdata
212
+ // then we should go thru the parameters of the body and look for a string/binary parameters
213
+ // and remember to add another parameter for the filename of the string/binary
214
+ const request = (_h = operation.requests) === null || _h === void 0 ? void 0 : _h[0];
215
+ (_k = (_j = request) === null || _j === void 0 ? void 0 : _j.parameters) === null || _k === void 0 ? void 0 : _k.filter((param) => { var _a, _b; return param.schema.type !== codemodel_1.SchemaType.Object && ((_a = param.protocol.http) === null || _a === void 0 ? void 0 : _a.in) === 'body' && ((_b = param.protocol.http) === null || _b === void 0 ? void 0 : _b.style) === codegen_1.KnownMediaType.Multipart; }).forEach((param) => {
216
+ for (const prop of linq_1.values(codemodel_1.getAllProperties(param.schema))) {
217
+ if (prop.schema.type === codemodel_1.SchemaType.Binary) {
218
+ prop.language.default.isNamedStream = true;
219
+ }
220
+ }
221
+ });
222
+ // move well-known hearder parameters into details, and we can process them in the generator how we please.
223
+ // operation.details.default.headerparameters = values(operation.parameters).where(p => p.in === ParameterLocation.Header && ['If-Match', 'If-None-Match'].includes(p.name)).toArray();
224
+ // remove if-match and if-none-match parameters from the operation itself.
225
+ // operation.parameters = values(operation.parameters).where(p => !(p.in === ParameterLocation.Header && ['If-Match', 'If-None-Match'].includes(p.name))).toArray();
226
+ }
227
+ }
228
+ // identify models that are polymorphic in nature
229
+ for (const schema of allSchemas) {
230
+ if (schema instanceof codemodel_1.ObjectSchema) {
231
+ const objSchema = schema;
232
+ // if this actual type is polymorphic, make sure we know that.
233
+ // parent class
234
+ if (objSchema.discriminator) {
235
+ objSchema.language.default.isPolymorphic = true;
236
+ if (objSchema.children) {
237
+ objSchema.language.default.polymorphicChildren = (_l = objSchema.children) === null || _l === void 0 ? void 0 : _l.all;
238
+ }
239
+ }
240
+ // sub class
241
+ if (objSchema.discriminatorValue) {
242
+ objSchema.language.default.discriminatorValue = (_m = objSchema.extensions) === null || _m === void 0 ? void 0 : _m['x-ms-discriminator-value'];
243
+ }
244
+ }
245
+ }
246
+ // identify parameters that are constants
247
+ for (const group of linq_1.values(model.operationGroups)) {
248
+ for (const operation of linq_1.values(group.operations)) {
249
+ for (const parameter of linq_1.values(operation.parameters)) {
250
+ if (parameter.required) {
251
+ if (parameter.schema.type === codemodel_1.SchemaType.Choice) {
252
+ const choiceSchema = parameter.schema;
253
+ if (choiceSchema.choices.length === 1) {
254
+ parameter.language.default.constantValue = choiceSchema.choices[0].value;
255
+ }
256
+ }
257
+ else if (parameter.schema.type === codemodel_1.SchemaType.Constant) {
258
+ const constantSchema = parameter.schema;
259
+ parameter.language.default.constantValue = constantSchema.value.value;
260
+ }
261
+ else if (parameter.schema.type === codemodel_1.SchemaType.SealedChoice) {
262
+ const sealedChoiceSchema = parameter.schema;
263
+ if (sealedChoiceSchema.choices.length === 1) {
264
+ parameter.language.default.constantValue = sealedChoiceSchema.choices[0].value;
265
+ if (sealedChoiceSchema.language.default.skip !== false) {
266
+ sealedChoiceSchema.language.default.skip = true;
267
+ }
268
+ }
269
+ }
270
+ }
271
+ else {
272
+ if (parameter.schema.type === codemodel_1.SchemaType.SealedChoice) {
273
+ const sealedChoiceSchema = parameter.schema;
274
+ if (sealedChoiceSchema.choices.length === 1) {
275
+ sealedChoiceSchema.language.default.skip = false;
276
+ }
277
+ }
278
+ }
279
+ }
280
+ }
281
+ }
282
+ // identify properties that are constants
283
+ for (const schema of linq_1.values(schemas.objects)) {
284
+ for (const property of linq_1.values(schema.properties)) {
285
+ if (property === undefined) {
286
+ continue;
287
+ }
288
+ if (property.required) {
289
+ if (property.schema.type === codemodel_1.SchemaType.Choice) {
290
+ const choiceSchema = property.schema;
291
+ if (choiceSchema.choices.length === 1) {
292
+ // properties with an enum single value are constants
293
+ // add the constant value
294
+ property.language.default.constantValue = choiceSchema.choices[0].value;
295
+ }
296
+ }
297
+ else if (property.schema.type === codemodel_1.SchemaType.Constant) {
298
+ const constantSchema = property.schema;
299
+ property.language.default.constantValue = constantSchema.value.value;
300
+ }
301
+ else if (property.schema.type === codemodel_1.SchemaType.SealedChoice) {
302
+ const sealedChoiceSchema = property.schema;
303
+ if (sealedChoiceSchema.choices.length === 1) {
304
+ property.language.default.constantValue = sealedChoiceSchema.choices[0].value;
305
+ if (sealedChoiceSchema.language.default.skip !== false) {
306
+ sealedChoiceSchema.language.default.skip = true;
307
+ }
308
+ }
309
+ }
310
+ }
311
+ else {
312
+ if (property.schema.type === codemodel_1.SchemaType.SealedChoice) {
313
+ const sealedChoiceSchema = property.schema;
314
+ if (sealedChoiceSchema.choices.length === 1) {
315
+ sealedChoiceSchema.language.default.skip = false;
316
+ }
317
+ }
318
+ }
319
+ }
320
+ }
321
+ // xichen: Do we need skip?
322
+ // const enumsToSkip = new Set<string>();
323
+ // // identify properties that are constants
324
+ // for (const schema of values(model.schemas)) {
325
+ // for (const property of values(schema.properties)) {
326
+ // if (property.details.default.required && length(property.schema.enum) === 1) {
327
+ // // properties with an enum single value are constants
328
+ // // add the constant value
329
+ // property.details.default.constantValue = property.schema.enum[0];
330
+ // // mark as skip the generation of this model
331
+ // enumsToSkip.add(property.schema.details.default.uid);
332
+ // // make it a string and keep its name
333
+ // property.schema = new Schema(property.schema.details.default.name, { type: property.schema.type });
334
+ // } else {
335
+ // enumsToSkip.delete(property.schema.details.default.uid);
336
+ // }
337
+ // }
338
+ // }
339
+ // // mark enums that shouldn't be generated
340
+ // for (const schema of values(model.schemas)) {
341
+ // if (enumsToSkip.has(schema.details.default.uid)) {
342
+ // schema.details.default.skip = true;
343
+ // }
344
+ // }
345
+ return model;
346
+ }
347
+ // async function tweakModel(state: State): Promise<codemodel.Model> {
348
+ // const title = pascalCase(fixLeadingNumber(deconstruct(await state.getValue('title', state.model.info.title))));
349
+ // state.setValue('title', title);
350
+ // const serviceName = await state.getValue('service-name', titleToAzureServiceName(title));
351
+ // state.setValue('service-name', serviceName);
352
+ // const model = state.model;
353
+ // model.schemas = model.schemas || [];
354
+ // const set = new Set<Schema>();
355
+ // const removes = new Set<string>();
356
+ // for (const key of keys(model.schemas)) {
357
+ // const value = model.schemas[key];
358
+ // if (set.has(value)) {
359
+ // // this schema is already in the collection. let's drop it when we're done
360
+ // removes.add(key);
361
+ // } else {
362
+ // set.add(value);
363
+ // }
364
+ // }
365
+ // // we're going to create a schema that represents the distinct sum
366
+ // // of all operation PATH parameters
367
+ // const universalId = new Schema(`${serviceName}Identity`, {
368
+ // type: JsonType.Object, description: 'Resource Identity', details: {
369
+ // default: {
370
+ // uid: 'universal-parameter-type'
371
+ // }
372
+ // }
373
+ // });
374
+ // model.schemas['universal-parameter-type'] = universalId;
375
+ // for (const operation of values(model.http.operations)) {
376
+ // for (const param of values(operation.parameters).where(each => each.in === ParameterLocation.Path)) {
377
+ // const name = param.details.default.name;
378
+ // if (!universalId.properties[name]) {
379
+ // universalId.properties[name] = new Property(name, {
380
+ // schema: param.schema, description: param.description, serializedName: name, details: {
381
+ // default: {
382
+ // description: param.description,
383
+ // name: name,
384
+ // required: false,
385
+ // readOnly: false,
386
+ // uid: `universal-parameter:${name}`
387
+ // }
388
+ // }
389
+ // });
390
+ // }
391
+ // }
392
+ // }
393
+ // if (await state.getValue('azure', false)) {
394
+ // universalId.properties['id'] = new Property('id', {
395
+ // schema: new Schema('_identity_type_', { type: JsonType.String, description: 'Resource identity path' }),
396
+ // description: 'Resource identity path', serializedName: 'id', details: {
397
+ // default: {
398
+ // description: 'Resource identity path',
399
+ // name: 'id',
400
+ // required: false,
401
+ // readOnly: false,
402
+ // uid: 'universal-parameter:resource identity'
403
+ // }
404
+ // }
405
+ // });
406
+ // }
407
+ // // remove schemas that are referenced elsewhere previously.
408
+ // for (const each of removes.values()) {
409
+ // delete model.schemas[each];
410
+ // }
411
+ // // if an operation has a response that has a schema with string/binary we should make the response application/octet-stream
412
+ // for (const operation of values(model.http.operations)) {
413
+ // for (const responses of values(operation.responses)) {
414
+ // for (const response of responses) {
415
+ // if (response.schema) {
416
+ // if (response.schema.type === JsonType.String && response.schema.format === StringFormat.Binary) {
417
+ // // WHY WAS THIS HERE?!
418
+ // // response.mimeTypes = [KnownMediaType.Stream];
419
+ // }
420
+ // }
421
+ // }
422
+ // }
423
+ // }
424
+ // // schemas that have parents and implement properties that are in the parent schemas
425
+ // // will have the property dropped in the child schema
426
+ // for (const schema of values(model.schemas)) {
427
+ // if (length(schema.allOf) > 0) {
428
+ // if (!dropDuplicatePropertiesInChildSchemas(schema, state)) {
429
+ // throw new Error('Schemas are in conflict.');
430
+ // }
431
+ // }
432
+ // }
433
+ // if (await state.getValue('use-storage-pipeline', false)) {
434
+ // // we're going to create new models for the reponse headers ?
435
+ // } else {
436
+ // // if an operation has a body parameter with string/binary, we should make the request application/octet-stream
437
+ // // === Header Schemas ===
438
+ // // go thru the operations, find responses that have header values, and add a property to the schemas that are returned with those values
439
+ // for (const operation of values(model.http.operations)) {
440
+ // for (const responses of values(operation.responses)) {
441
+ // for (const response of responses) {
442
+ // // for a given response, find the possible models that can be returned from the service
443
+ // for (const header of values(response.headers)) {
444
+ // if (!response.schema) {
445
+ // // no response schema? can we fake one?
446
+ // // service.Message({ Channel: Channel.Debug, Text: `${header.key} is in ${operation.details.default.name} but there is no response model` });
447
+ // continue;
448
+ // }
449
+ // // if the method response has a schema and it's an object, we're going to add our properties to the schema object.
450
+ // // yes, this means that the reponse model may have properties that are undefined if the server doesn't send back the header
451
+ // // and other operations might add other headers that are not the same.
452
+ // // if the method's response is a primitive value (string, boolean, null, number) or an array, we can't modify that type obviously
453
+ // // in which case, we're going to add a header
454
+ // // work with schemas that have objects only.
455
+ // if (isSchemaObject(response.schema)) {
456
+ // response.schema.details.default.hasHeaders = true;
457
+ // const property = response.schema.properties[header.key];
458
+ // if (!property) {
459
+ // state.message({ Channel: Channel.Debug, Text: `Adding header property '${header.key}' to model ${response.schema.details.default.name}` });
460
+ // // create a property for the header value
461
+ // const newProperty = new Property(header.key, { schema: header.schema, description: header.description });
462
+ // newProperty.details.default.name = header.key;
463
+ // newProperty.details.default.required = false;
464
+ // // mark it that it's a header-only property
465
+ // newProperty.details.default[HeaderProperty] = HeaderPropertyType.Header;
466
+ // // add it to this model.
467
+ // response.schema.properties[header.key] = newProperty;
468
+ // } else {
469
+ // // there is a property with this name already.
470
+ // // was this previously declared as a header only property?
471
+ // if (!property.details.default[HeaderProperty]) {
472
+ // state.message({ Channel: Channel.Debug, Text: `Property ${header.key} in model ${response.schema.details.default.name} can also come from the header.` });
473
+ // // no.. There is duplication between header and body property. Probably because of etags.
474
+ // // tell it to be a header-and-body property.
475
+ // property.details.default[HeaderProperty] = HeaderPropertyType.HeaderAndBody;
476
+ // property.details.default.name = header.key;
477
+ // }
478
+ // }
479
+ // }
480
+ // }
481
+ // }
482
+ // }
483
+ // }
484
+ // }
485
+ // // remove well-known header parameters from operations and add mark the operation has supporting that feature
486
+ // for (const operation of values(model.http.operations)) {
487
+ // // if we have an operation with a body, and content-type is a multipart/formdata
488
+ // // then we should go thru the parameters of the body and look for a string/binary parameters
489
+ // // and remember to add another parameter for the filename of the string/binary
490
+ // if (operation.requestBody && knownMediaType(operation.requestBody.contentType) === KnownMediaType.Multipart) {
491
+ // for (const prop of values(operation.requestBody.schema.properties)) {
492
+ // if (prop.schema.type === JsonType.String && prop.schema.format === 'binary') {
493
+ // prop.details.default.isNamedStream = true;
494
+ // }
495
+ // }
496
+ // }
497
+ // // move well-known hearder parameters into details, and we can process them in the generator how we please.
498
+ // // operation.details.default.headerparameters = values(operation.parameters).where(p => p.in === ParameterLocation.Header && ['If-Match', 'If-None-Match'].includes(p.name)).toArray();
499
+ // // remove if-match and if-none-match parameters from the operation itself.
500
+ // // operation.parameters = values(operation.parameters).where(p => !(p.in === ParameterLocation.Header && ['If-Match', 'If-None-Match'].includes(p.name))).toArray();
501
+ // }
502
+ // // identify models that are polymorphic in nature
503
+ // for (const schema of values(model.schemas)) {
504
+ // // if this actual type is polymorphic, make sure we know that.
505
+ // if (schema.discriminator) {
506
+ // schema.details.default.isPolymorphic = true;
507
+ // }
508
+ // const parents = getPolymorphicBases(schema);
509
+ // if (length(parents) > 0) {
510
+ // // if our parent is polymorphic, then we must have a discriminator value
511
+ // schema.details.default.discriminatorValue = schema.extensions['x-ms-discriminator-value'] || schema.details.default.name;
512
+ // // and make sure that all our polymorphic parents have a reference to this type.
513
+ // for (const parent of getPolymorphicBases(schema)) {
514
+ // parent.details.default.polymorphicChildren = parent.details.default.polymorphicChildren || new Array<Schema>();
515
+ // parent.details.default.polymorphicChildren.push(schema);
516
+ // }
517
+ // }
518
+ // }
519
+ // // identify parameters that are constants
520
+ // for (const operation of values(model.http.operations)) {
521
+ // for (const parameter of values(operation.parameters)) {
522
+ // if (parameter.required && length(parameter.schema.enum) === 1) {
523
+ // // parameters with an enum single value are constants
524
+ // parameter.details.default.constantValue = parameter.schema.enum[0];
525
+ // }
526
+ // }
527
+ // }
528
+ // const enumsToSkip = new Set<string>();
529
+ // // identify properties that are constants
530
+ // for (const schema of values(model.schemas)) {
531
+ // for (const property of values(schema.properties)) {
532
+ // if (property.details.default.required && length(property.schema.enum) === 1) {
533
+ // // properties with an enum single value are constants
534
+ // // add the constant value
535
+ // property.details.default.constantValue = property.schema.enum[0];
536
+ // // mark as skip the generation of this model
537
+ // enumsToSkip.add(property.schema.details.default.uid);
538
+ // // make it a string and keep its name
539
+ // property.schema = new Schema(property.schema.details.default.name, { type: property.schema.type });
540
+ // } else {
541
+ // enumsToSkip.delete(property.schema.details.default.uid);
542
+ // }
543
+ // }
544
+ // }
545
+ // // mark enums that shouldn't be generated
546
+ // for (const schema of values(model.schemas)) {
547
+ // if (enumsToSkip.has(schema.details.default.uid)) {
548
+ // schema.details.default.skip = true;
549
+ // }
550
+ // }
551
+ // for (const operation of values(model.http.operations)) {
552
+ // for (const { key: responseCode, value: responses } of items(operation.responses)) {
553
+ // for (const response of values(responses)) {
554
+ // if (responseCode === 'default' || response.extensions['x-ms-error-response'] === true) {
555
+ // response.details.default.isErrorResponse = true;
556
+ // }
557
+ // }
558
+ // }
559
+ // }
560
+ // return model;
561
+ // }
562
+ // Universal version -
563
+ // tweaks the code model to adjust things so that the code will generate better.
564
+ async function tweakModelPlugin(service) {
565
+ //const session = await startSession<PwshModel>(service, {}, codeModelSchema);
566
+ const state = await new model_state_1.ModelState(service).init();
567
+ //const result = tweakModelV2(session);
568
+ await service.WriteFile('code-model-v4-tweakcodemodel-v2.yaml', codegen_1.serialize(await tweakModelV2(state)), undefined, 'code-model-v4');
569
+ //return processCodeModel(tweakModelV2, service, 'tweakcodemodel-v2');
570
+ }
571
+ exports.tweakModelPlugin = tweakModelPlugin;
572
+ //# sourceMappingURL=plugin-tweak-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-tweak-model.js","sourceRoot":"","sources":["../../plugins/plugin-tweak-model.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,sDAAmY;AACnY,kDAA4G;AAC5G,4CAA4E;AAE5E,sDAAkD;AAElD,kFAA4F;AAK/E,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAC/C,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,qDAA+B,CAAA;AACjC,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAID,yJAAyJ;AACzJ,SAAgB,uBAAuB,CAAC,KAAa;IACnD,MAAM,cAAc,GAAG,oBAAU,CAAC,qBAAW,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC7D,MAAM,WAAW,GAAG,cAAc;QAChC,oGAAo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gEAAgE;AAEhE,gDAAgD;AAChD,8GAA8G;AAC9G,iBAAiB;AACjB,mEAAmE;AACnE,UAAU;AACV,QAAQ;AACR,MAAM;AAEN,8CAA8C;AAC9C,kDAAkD;AAClD,yDAAyD;AACzD,4CAA4C;AAC5C,QAAQ;AACR,MAAM;AAEN,6DAA6D;AAC7D,0FAA0F;AAC1F,oDAAoD;AACpD,mGAAmG;AACnG,6DAA6D;AAC7D,YAAY;AACZ,UAAU;AACV,QAAQ;AACR,MAAM;AAEN,kBAAkB;AAClB,IAAI;AAEJ,sBAAsB;AACtB,gFAAgF;AAEzE,KAAK,UAAU,gBAAgB,CAAC,OAAa;IAClD,8EAA8E;IAC9E,MAAM,KAAK,GAAG,MAAM,IAAI,wBAAU,CAAY,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAC9D,uCAAuC;IACvC,MAAM,OAAO,CAAC,SAAS,CAAC,sCAAsC,EAAE,mBAAS,CAAC,MAAM,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC;IAClI,sEAAsE;AACxE,CAAC;AAND,4CAMC"}
@@ -0,0 +1,3 @@
1
+ import { Host } from '@azure-tools/autorest-extension-base';
2
+ export declare function powershellV2(service: Host): Promise<void>;
3
+ //# sourceMappingURL=powershell-v2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powershell-v2.d.ts","sourceRoot":"","sources":["../../plugins/powershell-v2.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAyC5D,wBAAsB,YAAY,CAAC,OAAO,EAAE,IAAI,iBAmC/C"}