@autorest/powershell 4.0.0-dev.1 → 4.0.0-dev.11

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 (306) hide show
  1. package/.rush/temp/package-deps_build.json +94 -60
  2. package/.rush/temp/shrinkwrap-deps.json +22 -22
  3. package/autorest-configuration-for-sdk.md +122 -0
  4. package/autorest-configuration.md +4 -2
  5. package/dist/cmdlets/class.d.ts +1 -0
  6. package/dist/cmdlets/class.d.ts.map +1 -1
  7. package/dist/cmdlets/class.js +218 -82
  8. package/dist/cmdlets/class.js.map +1 -1
  9. package/dist/cmdlets/namespace.d.ts.map +1 -1
  10. package/dist/cmdlets/namespace.js +3 -1
  11. package/dist/cmdlets/namespace.js.map +1 -1
  12. package/dist/cmdlets/parameter.js +1 -0
  13. package/dist/cmdlets/parameter.js.map +1 -1
  14. package/dist/enums/namespace.js +2 -1
  15. package/dist/enums/namespace.js.map +1 -1
  16. package/dist/file-formats/md-file.js +1 -0
  17. package/dist/file-formats/md-file.js.map +1 -1
  18. package/dist/file-formats/psd-file.js +1 -0
  19. package/dist/file-formats/psd-file.js.map +1 -1
  20. package/dist/file-formats/psscript-file.js +1 -0
  21. package/dist/file-formats/psscript-file.js.map +1 -1
  22. package/dist/generators/csproj.js +1 -0
  23. package/dist/generators/csproj.js.map +1 -1
  24. package/dist/generators/gitattributes.js +1 -0
  25. package/dist/generators/gitattributes.js.map +1 -1
  26. package/dist/generators/gitignore.js +1 -0
  27. package/dist/generators/gitignore.js.map +1 -1
  28. package/dist/generators/inputhandler.custom.d.ts +3 -0
  29. package/dist/generators/inputhandler.custom.d.ts.map +1 -0
  30. package/dist/generators/inputhandler.custom.js +33 -0
  31. package/dist/generators/inputhandler.custom.js.map +1 -0
  32. package/dist/generators/nuspec.js +1 -0
  33. package/dist/generators/nuspec.js.map +1 -1
  34. package/dist/generators/psm1.custom.js +1 -0
  35. package/dist/generators/psm1.custom.js.map +1 -1
  36. package/dist/generators/psm1.internal.js +1 -0
  37. package/dist/generators/psm1.internal.js.map +1 -1
  38. package/dist/generators/psm1.js +3 -2
  39. package/dist/generators/psm1.js.map +1 -1
  40. package/dist/generators/readme.js +1 -0
  41. package/dist/generators/readme.js.map +1 -1
  42. package/dist/generators/script-cmdlet.js +2 -1
  43. package/dist/generators/script-cmdlet.js.map +1 -1
  44. package/dist/internal/name-inferrer.js +1 -0
  45. package/dist/internal/name-inferrer.js.map +1 -1
  46. package/dist/internal/powershell-declarations.d.ts +3 -0
  47. package/dist/internal/powershell-declarations.d.ts.map +1 -1
  48. package/dist/internal/powershell-declarations.js +3 -0
  49. package/dist/internal/powershell-declarations.js.map +1 -1
  50. package/dist/internal/project.d.ts +14 -9
  51. package/dist/internal/project.d.ts.map +1 -1
  52. package/dist/internal/project.js +34 -12
  53. package/dist/internal/project.js.map +1 -1
  54. package/dist/internal/state.js +1 -0
  55. package/dist/internal/state.js.map +1 -1
  56. package/dist/internal/verbs.js +1 -0
  57. package/dist/internal/verbs.js.map +1 -1
  58. package/dist/llcsharp/clientruntime.d.ts +3 -0
  59. package/dist/llcsharp/clientruntime.d.ts.map +1 -1
  60. package/dist/llcsharp/clientruntime.js +4 -0
  61. package/dist/llcsharp/clientruntime.js.map +1 -1
  62. package/dist/llcsharp/code-model.d.ts +1 -0
  63. package/dist/llcsharp/code-model.d.ts.map +1 -1
  64. package/dist/llcsharp/csharp-declarations.js +1 -0
  65. package/dist/llcsharp/csharp-declarations.js.map +1 -1
  66. package/dist/llcsharp/enums/enum.js +2 -1
  67. package/dist/llcsharp/enums/enum.js.map +1 -1
  68. package/dist/llcsharp/enums/namespace.js +1 -0
  69. package/dist/llcsharp/enums/namespace.js.map +1 -1
  70. package/dist/llcsharp/exports.js +23 -13
  71. package/dist/llcsharp/exports.js.map +1 -1
  72. package/dist/llcsharp/generator.js +1 -0
  73. package/dist/llcsharp/generator.js.map +1 -1
  74. package/dist/llcsharp/messages.js +1 -0
  75. package/dist/llcsharp/messages.js.map +1 -1
  76. package/dist/llcsharp/model/idictionary.js +1 -0
  77. package/dist/llcsharp/model/idictionary.js.map +1 -1
  78. package/dist/llcsharp/model/interface.d.ts.map +1 -1
  79. package/dist/llcsharp/model/interface.js +2 -1
  80. package/dist/llcsharp/model/interface.js.map +1 -1
  81. package/dist/llcsharp/model/model-class-dictionary.js +1 -0
  82. package/dist/llcsharp/model/model-class-dictionary.js.map +1 -1
  83. package/dist/llcsharp/model/model-class-json.d.ts.map +1 -1
  84. package/dist/llcsharp/model/model-class-json.js +12 -2
  85. package/dist/llcsharp/model/model-class-json.js.map +1 -1
  86. package/dist/llcsharp/model/model-class-serializer.js +1 -0
  87. package/dist/llcsharp/model/model-class-serializer.js.map +1 -1
  88. package/dist/llcsharp/model/model-class.js +11 -10
  89. package/dist/llcsharp/model/model-class.js.map +1 -1
  90. package/dist/llcsharp/model/namespace.js +1 -0
  91. package/dist/llcsharp/model/namespace.js.map +1 -1
  92. package/dist/llcsharp/model/property.js +1 -0
  93. package/dist/llcsharp/model/property.js.map +1 -1
  94. package/dist/llcsharp/operation/api-class.js +1 -0
  95. package/dist/llcsharp/operation/api-class.js.map +1 -1
  96. package/dist/llcsharp/operation/method.d.ts.map +1 -1
  97. package/dist/llcsharp/operation/method.js +21 -27
  98. package/dist/llcsharp/operation/method.js.map +1 -1
  99. package/dist/llcsharp/operation/namespace.js +1 -0
  100. package/dist/llcsharp/operation/namespace.js.map +1 -1
  101. package/dist/llcsharp/operation/parameter.js +1 -0
  102. package/dist/llcsharp/operation/parameter.js.map +1 -1
  103. package/dist/llcsharp/project.d.ts.map +1 -1
  104. package/dist/llcsharp/project.js +3 -1
  105. package/dist/llcsharp/project.js.map +1 -1
  106. package/dist/llcsharp/schema/Uuid.js +1 -0
  107. package/dist/llcsharp/schema/Uuid.js.map +1 -1
  108. package/dist/llcsharp/schema/array.js +1 -0
  109. package/dist/llcsharp/schema/array.js.map +1 -1
  110. package/dist/llcsharp/schema/binary.js +1 -0
  111. package/dist/llcsharp/schema/binary.js.map +1 -1
  112. package/dist/llcsharp/schema/boolean.js +1 -0
  113. package/dist/llcsharp/schema/boolean.js.map +1 -1
  114. package/dist/llcsharp/schema/byte-array.js +1 -0
  115. package/dist/llcsharp/schema/byte-array.js.map +1 -1
  116. package/dist/llcsharp/schema/char.js +1 -0
  117. package/dist/llcsharp/schema/char.js.map +1 -1
  118. package/dist/llcsharp/schema/date-time.d.ts.map +1 -1
  119. package/dist/llcsharp/schema/date-time.js +1 -0
  120. package/dist/llcsharp/schema/date-time.js.map +1 -1
  121. package/dist/llcsharp/schema/date.js +1 -0
  122. package/dist/llcsharp/schema/date.js.map +1 -1
  123. package/dist/llcsharp/schema/duration.js +1 -0
  124. package/dist/llcsharp/schema/duration.js.map +1 -1
  125. package/dist/llcsharp/schema/enum.js +1 -0
  126. package/dist/llcsharp/schema/enum.js.map +1 -1
  127. package/dist/llcsharp/schema/integer.js +1 -0
  128. package/dist/llcsharp/schema/integer.js.map +1 -1
  129. package/dist/llcsharp/schema/object.js +1 -0
  130. package/dist/llcsharp/schema/object.js.map +1 -1
  131. package/dist/llcsharp/schema/password.js +2 -1
  132. package/dist/llcsharp/schema/password.js.map +1 -1
  133. package/dist/llcsharp/schema/primitive.js +1 -0
  134. package/dist/llcsharp/schema/primitive.js.map +1 -1
  135. package/dist/llcsharp/schema/schema-resolver.d.ts +2 -3
  136. package/dist/llcsharp/schema/schema-resolver.d.ts.map +1 -1
  137. package/dist/llcsharp/schema/schema-resolver.js +4 -0
  138. package/dist/llcsharp/schema/schema-resolver.js.map +1 -1
  139. package/dist/llcsharp/schema/string.d.ts.map +1 -1
  140. package/dist/llcsharp/schema/string.js +1 -0
  141. package/dist/llcsharp/schema/string.js.map +1 -1
  142. package/dist/llcsharp/schema/uri.d.ts +10 -0
  143. package/dist/llcsharp/schema/uri.d.ts.map +1 -0
  144. package/dist/llcsharp/schema/uri.js +25 -0
  145. package/dist/llcsharp/schema/uri.js.map +1 -0
  146. package/dist/llcsharp/validations.js +1 -0
  147. package/dist/llcsharp/validations.js.map +1 -1
  148. package/dist/main.d.ts.map +1 -1
  149. package/dist/main.js +11 -0
  150. package/dist/main.js.map +1 -1
  151. package/dist/models/model-extensions.js +7 -6
  152. package/dist/models/model-extensions.js.map +1 -1
  153. package/dist/module/module-class.js +2 -1
  154. package/dist/module/module-class.js.map +1 -1
  155. package/dist/module/module-namespace.js +1 -0
  156. package/dist/module/module-namespace.js.map +1 -1
  157. package/dist/plugins/add-azure-completers-v2.js +1 -0
  158. package/dist/plugins/add-azure-completers-v2.js.map +1 -1
  159. package/dist/plugins/create-commands-v2.d.ts.map +1 -1
  160. package/dist/plugins/create-commands-v2.js +6 -4
  161. package/dist/plugins/create-commands-v2.js.map +1 -1
  162. package/dist/plugins/cs-namer-v2.js +4 -3
  163. package/dist/plugins/cs-namer-v2.js.map +1 -1
  164. package/dist/plugins/llcsharp-v2.js +1 -0
  165. package/dist/plugins/llcsharp-v2.js.map +1 -1
  166. package/dist/plugins/modifiers-v2.d.ts +4 -0
  167. package/dist/plugins/modifiers-v2.d.ts.map +1 -1
  168. package/dist/plugins/modifiers-v2.js +69 -13
  169. package/dist/plugins/modifiers-v2.js.map +1 -1
  170. package/dist/plugins/plugin-create-inline-properties.d.ts.map +1 -1
  171. package/dist/plugins/plugin-create-inline-properties.js +16 -1
  172. package/dist/plugins/plugin-create-inline-properties.js.map +1 -1
  173. package/dist/plugins/plugin-tweak-m4-model.js +4 -3
  174. package/dist/plugins/plugin-tweak-m4-model.js.map +1 -1
  175. package/dist/plugins/plugin-tweak-model-azure-v2.js +4 -3
  176. package/dist/plugins/plugin-tweak-model-azure-v2.js.map +1 -1
  177. package/dist/plugins/plugin-tweak-model.js +15 -14
  178. package/dist/plugins/plugin-tweak-model.js.map +1 -1
  179. package/dist/plugins/powershell-v2.d.ts.map +1 -1
  180. package/dist/plugins/powershell-v2.js +8 -2
  181. package/dist/plugins/powershell-v2.js.map +1 -1
  182. package/dist/plugins/ps-namer-v2.js +1 -0
  183. package/dist/plugins/ps-namer-v2.js.map +1 -1
  184. package/dist/plugins/sdk-create-inline-properties.d.ts +4 -0
  185. package/dist/plugins/sdk-create-inline-properties.d.ts.map +1 -0
  186. package/dist/plugins/sdk-create-inline-properties.js +552 -0
  187. package/dist/plugins/sdk-create-inline-properties.js.map +1 -0
  188. package/dist/plugins/sdk-cs-namer.d.ts +3 -0
  189. package/dist/plugins/sdk-cs-namer.d.ts.map +1 -0
  190. package/dist/plugins/sdk-cs-namer.js +385 -0
  191. package/dist/plugins/sdk-cs-namer.js.map +1 -0
  192. package/dist/plugins/sdk-cs-simplifier.d.ts +3 -0
  193. package/dist/plugins/sdk-cs-simplifier.d.ts.map +1 -0
  194. package/dist/plugins/sdk-cs-simplifier.js +154 -0
  195. package/dist/plugins/sdk-cs-simplifier.js.map +1 -0
  196. package/dist/plugins/sdk-generate.d.ts +3 -0
  197. package/dist/plugins/sdk-generate.d.ts.map +1 -0
  198. package/dist/plugins/sdk-generate.js +106 -0
  199. package/dist/plugins/sdk-generate.js.map +1 -0
  200. package/dist/plugins/sdk-tweak-model.d.ts +3 -0
  201. package/dist/plugins/sdk-tweak-model.d.ts.map +1 -0
  202. package/dist/plugins/sdk-tweak-model.js +357 -0
  203. package/dist/plugins/sdk-tweak-model.js.map +1 -0
  204. package/dist/sdk/project.d.ts +45 -0
  205. package/dist/sdk/project.d.ts.map +1 -0
  206. package/dist/sdk/project.js +56 -0
  207. package/dist/sdk/project.js.map +1 -0
  208. package/dist/sdk/state.d.ts +23 -0
  209. package/dist/sdk/state.d.ts.map +1 -0
  210. package/dist/sdk/state.js +28 -0
  211. package/dist/sdk/state.js.map +1 -0
  212. package/dist/sdk/utility.d.ts +32 -0
  213. package/dist/sdk/utility.d.ts.map +1 -0
  214. package/dist/sdk/utility.js +414 -0
  215. package/dist/sdk/utility.js.map +1 -0
  216. package/dist/utils/PwshModel.js +1 -0
  217. package/dist/utils/PwshModel.js.map +1 -1
  218. package/dist/utils/SdkModel.d.ts +7 -0
  219. package/dist/utils/SdkModel.d.ts.map +1 -0
  220. package/dist/utils/SdkModel.js +17 -0
  221. package/dist/utils/SdkModel.js.map +1 -0
  222. package/dist/utils/TrieNode.d.ts +10 -0
  223. package/dist/utils/TrieNode.d.ts.map +1 -0
  224. package/dist/utils/TrieNode.js +45 -0
  225. package/dist/utils/TrieNode.js.map +1 -0
  226. package/dist/utils/WrapComments.d.ts +2 -0
  227. package/dist/utils/WrapComments.d.ts.map +1 -0
  228. package/dist/utils/WrapComments.js +46 -0
  229. package/dist/utils/WrapComments.js.map +1 -0
  230. package/dist/utils/code-namer.d.ts +3 -0
  231. package/dist/utils/code-namer.d.ts.map +1 -0
  232. package/dist/utils/code-namer.js +38 -0
  233. package/dist/utils/code-namer.js.map +1 -0
  234. package/dist/utils/command-operation.d.ts +1 -0
  235. package/dist/utils/command-operation.d.ts.map +1 -1
  236. package/dist/utils/command-operation.js +2 -2
  237. package/dist/utils/command-operation.js.map +1 -1
  238. package/dist/utils/components.d.ts +2 -0
  239. package/dist/utils/components.d.ts.map +1 -1
  240. package/dist/utils/components.js +1 -0
  241. package/dist/utils/components.js.map +1 -1
  242. package/dist/utils/extensions.js +1 -0
  243. package/dist/utils/extensions.js.map +1 -1
  244. package/dist/utils/http-definitions.js +1 -0
  245. package/dist/utils/http-definitions.js.map +1 -1
  246. package/dist/utils/http-operation.js +1 -0
  247. package/dist/utils/http-operation.js.map +1 -1
  248. package/dist/utils/info.js +1 -0
  249. package/dist/utils/info.js.map +1 -1
  250. package/dist/utils/model-state.js +1 -0
  251. package/dist/utils/model-state.js.map +1 -1
  252. package/dist/utils/powershell-comment.js +11 -10
  253. package/dist/utils/powershell-comment.js.map +1 -1
  254. package/dist/utils/programatic-operation.js +2 -2
  255. package/dist/utils/programatic-operation.js.map +1 -1
  256. package/dist/utils/resolve-conflicts.js +1 -0
  257. package/dist/utils/resolve-conflicts.js.map +1 -1
  258. package/dist/utils/schema.d.ts +4 -0
  259. package/dist/utils/schema.d.ts.map +1 -1
  260. package/dist/utils/schema.js +28 -0
  261. package/dist/utils/schema.js.map +1 -1
  262. package/dist/utils/security-scheme.js +1 -0
  263. package/dist/utils/security-scheme.js.map +1 -1
  264. package/dist/utils/uid.js +1 -0
  265. package/dist/utils/uid.js.map +1 -1
  266. package/package.json +6 -5
  267. package/readme.md +5 -1
  268. package/resources/assets/build-module.ps1 +26 -2
  269. package/resources/assets/create-model-cmdlets.ps1 +8 -5
  270. package/resources/assets/custom/README.md +1 -1
  271. package/resources/assets/docs/README.md +1 -1
  272. package/resources/assets/exports/README.md +1 -1
  273. package/resources/assets/generate-portal-ux.ps1 +379 -0
  274. package/resources/assets/how-to.md +1 -1
  275. package/resources/assets/internal/README.md +1 -1
  276. package/resources/assets/tools/Resources/docs/README.md +1 -1
  277. package/resources/assets/tools/Resources/how-to.md +1 -1
  278. package/resources/modules/Az.Accounts/2.7.5/Az.Accounts.nuspec +1 -1
  279. package/resources/modules/Az.Accounts/2.7.5/Az.Accounts.psd1 +1 -1
  280. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml +34 -34
  281. package/resources/modules/Az.Accounts/2.7.5/en-US/about_az.help.txt +1 -1
  282. package/resources/modules/Az.Accounts/2.7.5/package/services/metadata/core-properties/1aa0749a068a4238881858013f1a5b7f.psmdcp +1 -1
  283. package/resources/psruntime/Attributes/ExternalDocsAttribute.cs +30 -0
  284. package/resources/psruntime/BuildTime/Models/PsMarkdownTypes.cs +39 -4
  285. package/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs +8 -2
  286. package/resources/psruntime/BuildTime/Models/PsProxyTypes.cs +6 -0
  287. package/resources/psruntime/BuildTime/PsAttributes.cs +7 -0
  288. package/resources/runtime/csharp/client/Context.cs +33 -0
  289. package/resources/runtime/csharp/client/InfoAttribute.cs +1 -0
  290. package/resources/runtime/csharp/client/InputHandler.cs +22 -0
  291. package/resources/runtime/csharp/pipeline/Events.cs +2 -2
  292. package/resources/templates/azureMethod.ejs +5 -0
  293. package/resources/templates/azureMethodGroup.ejs +46 -0
  294. package/resources/templates/azureServiceClient.ejs +80 -0
  295. package/resources/templates/enum.ejs +73 -0
  296. package/resources/templates/exception.ejs +52 -0
  297. package/resources/templates/extensionMethod.ejs +68 -0
  298. package/resources/templates/extensions.ejs +19 -0
  299. package/resources/templates/longRunningOperationMethod.ejs +43 -0
  300. package/resources/templates/method.ejs +65 -0
  301. package/resources/templates/methodBodyRestCall.ejs +317 -0
  302. package/resources/templates/methodGroupInterface.ejs +77 -0
  303. package/resources/templates/model.ejs +184 -0
  304. package/resources/templates/page.ejs +40 -0
  305. package/resources/templates/serviceClientBody.ejs +303 -0
  306. package/resources/templates/serviceClientInterface.ejs +55 -0
@@ -1384,7 +1384,7 @@ TestEnvironment TestRMEndpoint TestADEndpoint/</dev:code>
1384
1384
  <command:relatedLinks>
1385
1385
  <maml:navigationLink>
1386
1386
  <maml:linkText>Online Version:</maml:linkText>
1387
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/add-azenvironment</maml:uri>
1387
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/add-azenvironment</maml:uri>
1388
1388
  </maml:navigationLink>
1389
1389
  <maml:navigationLink>
1390
1390
  <maml:linkText>Get-AzEnvironment</maml:linkText>
@@ -1602,7 +1602,7 @@ TestEnvironment TestRMEndpoint TestADEndpoint/</dev:code>
1602
1602
  <command:relatedLinks>
1603
1603
  <maml:navigationLink>
1604
1604
  <maml:linkText>Online Version:</maml:linkText>
1605
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/clear-azcontext</maml:uri>
1605
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/clear-azcontext</maml:uri>
1606
1606
  </maml:navigationLink>
1607
1607
  </command:relatedLinks>
1608
1608
  </command:command>
@@ -1840,7 +1840,7 @@ TestEnvironment TestRMEndpoint TestADEndpoint/</dev:code>
1840
1840
  <command:relatedLinks>
1841
1841
  <maml:navigationLink>
1842
1842
  <maml:linkText>Online Version:</maml:linkText>
1843
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/clear-azdefault</maml:uri>
1843
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/clear-azdefault</maml:uri>
1844
1844
  </maml:navigationLink>
1845
1845
  </command:relatedLinks>
1846
1846
  </command:command>
@@ -3803,7 +3803,7 @@ xxxxxxxx-xxxx-xxxx-xxxxxxxx Subscription1 yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy Azu
3803
3803
  <command:relatedLinks>
3804
3804
  <maml:navigationLink>
3805
3805
  <maml:linkText>Online Version:</maml:linkText>
3806
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/connect-azaccount</maml:uri>
3806
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/connect-azaccount</maml:uri>
3807
3807
  </maml:navigationLink>
3808
3808
  </command:relatedLinks>
3809
3809
  </command:command>
@@ -3973,7 +3973,7 @@ Disable-AzContextAutosave -Scope Process</dev:code>
3973
3973
  <command:relatedLinks>
3974
3974
  <maml:navigationLink>
3975
3975
  <maml:linkText>Online Version:</maml:linkText>
3976
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/disable-azcontextautosave</maml:uri>
3976
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/disable-azcontextautosave</maml:uri>
3977
3977
  </maml:navigationLink>
3978
3978
  </command:relatedLinks>
3979
3979
  </command:command>
@@ -4105,7 +4105,7 @@ Disable-AzContextAutosave -Scope Process</dev:code>
4105
4105
  <command:relatedLinks>
4106
4106
  <maml:navigationLink>
4107
4107
  <maml:linkText>Online Version:</maml:linkText>
4108
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/disable-azdatacollection</maml:uri>
4108
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/disable-azdatacollection</maml:uri>
4109
4109
  </maml:navigationLink>
4110
4110
  <maml:navigationLink>
4111
4111
  <maml:linkText>Enable-AzDataCollection</maml:linkText>
@@ -4326,7 +4326,7 @@ Disable-AzContextAutosave -Scope Process</dev:code>
4326
4326
  <command:relatedLinks>
4327
4327
  <maml:navigationLink>
4328
4328
  <maml:linkText>Online Version:</maml:linkText>
4329
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/disable-azurermalias</maml:uri>
4329
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/disable-azurermalias</maml:uri>
4330
4330
  </maml:navigationLink>
4331
4331
  </command:relatedLinks>
4332
4332
  </command:command>
@@ -4868,7 +4868,7 @@ Disable-AzContextAutosave -Scope Process</dev:code>
4868
4868
  <command:relatedLinks>
4869
4869
  <maml:navigationLink>
4870
4870
  <maml:linkText>Online Version:</maml:linkText>
4871
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/disconnect-azaccount</maml:uri>
4871
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/disconnect-azaccount</maml:uri>
4872
4872
  </maml:navigationLink>
4873
4873
  </command:relatedLinks>
4874
4874
  </command:command>
@@ -4878,7 +4878,7 @@ Disable-AzContextAutosave -Scope Process</dev:code>
4878
4878
  <command:verb>Enable</command:verb>
4879
4879
  <command:noun>AzContextAutosave</command:noun>
4880
4880
  <maml:description>
4881
- <maml:para>Azure contexts are PowerShell objects representing your active subscription to run commands against, and the authentication information needed to connect to an Azure cloud. With Azure contexts, Azure PowerShell doesn't need to reauthenticate your account each time you switch subscriptions. For more information, see Azure PowerShell context objects (https://docs.microsoft.com/powershell/azure/context-persistence).</maml:para>
4881
+ <maml:para>Azure contexts are PowerShell objects representing your active subscription to run commands against, and the authentication information needed to connect to an Azure cloud. With Azure contexts, Azure PowerShell doesn't need to reauthenticate your account each time you switch subscriptions. For more information, see Azure PowerShell context objects (https://learn.microsoft.com/powershell/azure/context-persistence).</maml:para>
4882
4882
  <maml:para>This cmdlet allows the Azure context information to be saved and automatically loaded when you start a PowerShell process. For example, when opening a new window.</maml:para>
4883
4883
  </maml:description>
4884
4884
  </command:details>
@@ -5039,7 +5039,7 @@ Enable-AzContextAutosave -Scope Process</dev:code>
5039
5039
  <command:relatedLinks>
5040
5040
  <maml:navigationLink>
5041
5041
  <maml:linkText>Online Version:</maml:linkText>
5042
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/enable-azcontextautosave</maml:uri>
5042
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/enable-azcontextautosave</maml:uri>
5043
5043
  </maml:navigationLink>
5044
5044
  </command:relatedLinks>
5045
5045
  </command:command>
@@ -5171,7 +5171,7 @@ Enable-AzContextAutosave -Scope Process</dev:code>
5171
5171
  <command:relatedLinks>
5172
5172
  <maml:navigationLink>
5173
5173
  <maml:linkText>Online Version:</maml:linkText>
5174
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/enable-azdatacollection</maml:uri>
5174
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/enable-azdatacollection</maml:uri>
5175
5175
  </maml:navigationLink>
5176
5176
  <maml:navigationLink>
5177
5177
  <maml:linkText>Disable-AzDataCollection</maml:linkText>
@@ -5393,7 +5393,7 @@ Enable-AzContextAutosave -Scope Process</dev:code>
5393
5393
  <command:relatedLinks>
5394
5394
  <maml:navigationLink>
5395
5395
  <maml:linkText>Online Version:</maml:linkText>
5396
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/enable-azurermalias</maml:uri>
5396
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/enable-azurermalias</maml:uri>
5397
5397
  </maml:navigationLink>
5398
5398
  </command:relatedLinks>
5399
5399
  </command:command>
@@ -5596,7 +5596,7 @@ Enable-AzContextAutosave -Scope Process</dev:code>
5596
5596
  <command:relatedLinks>
5597
5597
  <maml:navigationLink>
5598
5598
  <maml:linkText>Online Version:</maml:linkText>
5599
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/get-azaccesstoken</maml:uri>
5599
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/get-azaccesstoken</maml:uri>
5600
5600
  </maml:navigationLink>
5601
5601
  </command:relatedLinks>
5602
5602
  </command:command>
@@ -5787,7 +5787,7 @@ Subscription3 (xxxxxxxx-xxxx-xxxx-xxx... test@outlook.com Subscription3
5787
5787
  <command:relatedLinks>
5788
5788
  <maml:navigationLink>
5789
5789
  <maml:linkText>Online Version:</maml:linkText>
5790
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/get-azcontext</maml:uri>
5790
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/get-azcontext</maml:uri>
5791
5791
  </maml:navigationLink>
5792
5792
  <maml:navigationLink>
5793
5793
  <maml:linkText>Set-AzContext</maml:linkText>
@@ -5932,7 +5932,7 @@ Settings : {}</dev:code>
5932
5932
  <command:relatedLinks>
5933
5933
  <maml:navigationLink>
5934
5934
  <maml:linkText>Online Version:</maml:linkText>
5935
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/get-azcontextautosavesetting</maml:uri>
5935
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/get-azcontextautosavesetting</maml:uri>
5936
5936
  </maml:navigationLink>
5937
5937
  </command:relatedLinks>
5938
5938
  </command:command>
@@ -6064,7 +6064,7 @@ Tags :</dev:code>
6064
6064
  <command:relatedLinks>
6065
6065
  <maml:navigationLink>
6066
6066
  <maml:linkText>Online Version:</maml:linkText>
6067
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/get-azdefault</maml:uri>
6067
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/get-azdefault</maml:uri>
6068
6068
  </maml:navigationLink>
6069
6069
  </command:relatedLinks>
6070
6070
  </command:command>
@@ -6248,7 +6248,7 @@ AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsofto
6248
6248
  <command:relatedLinks>
6249
6249
  <maml:navigationLink>
6250
6250
  <maml:linkText>Online Version:</maml:linkText>
6251
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/get-azenvironment</maml:uri>
6251
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/get-azenvironment</maml:uri>
6252
6252
  </maml:navigationLink>
6253
6253
  <maml:navigationLink>
6254
6254
  <maml:linkText>Add-AzEnvironment</maml:linkText>
@@ -6526,7 +6526,7 @@ Subscription1 (xxxx-xxxx-xxxx-xxxx) azureuser@micros... Subscription1
6526
6526
  <command:relatedLinks>
6527
6527
  <maml:navigationLink>
6528
6528
  <maml:linkText>Online Version:</maml:linkText>
6529
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/get-azsubscription</maml:uri>
6529
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/get-azsubscription</maml:uri>
6530
6530
  </maml:navigationLink>
6531
6531
  </command:relatedLinks>
6532
6532
  </command:command>
@@ -6656,7 +6656,7 @@ xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft Home {test0.com, test1.com,
6656
6656
  <command:relatedLinks>
6657
6657
  <maml:navigationLink>
6658
6658
  <maml:linkText>Online Version:</maml:linkText>
6659
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/get-aztenant</maml:uri>
6659
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/get-aztenant</maml:uri>
6660
6660
  </maml:navigationLink>
6661
6661
  </command:relatedLinks>
6662
6662
  </command:command>
@@ -6942,7 +6942,7 @@ azureuser@contoso.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud</dev:
6942
6942
  <command:relatedLinks>
6943
6943
  <maml:navigationLink>
6944
6944
  <maml:linkText>Online Version:</maml:linkText>
6945
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/import-azcontext</maml:uri>
6945
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/import-azcontext</maml:uri>
6946
6946
  </maml:navigationLink>
6947
6947
  </command:relatedLinks>
6948
6948
  </command:command>
@@ -7580,7 +7580,7 @@ Content : {"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users
7580
7580
  <command:relatedLinks>
7581
7581
  <maml:navigationLink>
7582
7582
  <maml:linkText>Online Version:</maml:linkText>
7583
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/invoke-azrestmethod</maml:uri>
7583
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/invoke-azrestmethod</maml:uri>
7584
7584
  </maml:navigationLink>
7585
7585
  </command:relatedLinks>
7586
7586
  </command:command>
@@ -7634,7 +7634,7 @@ Opening the default browser to https://aka.ms/azpssurvey?Q_CHL=INTERCEPT</dev:co
7634
7634
  <command:relatedLinks>
7635
7635
  <maml:navigationLink>
7636
7636
  <maml:linkText>Online Version:</maml:linkText>
7637
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/open-azsurveylink</maml:uri>
7637
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/open-azsurveylink</maml:uri>
7638
7638
  </maml:navigationLink>
7639
7639
  </command:relatedLinks>
7640
7640
  </command:command>
@@ -7742,7 +7742,7 @@ Opening the default browser to https://aka.ms/azpssurvey?Q_CHL=INTERCEPT</dev:co
7742
7742
  <command:relatedLinks>
7743
7743
  <maml:navigationLink>
7744
7744
  <maml:linkText>Online Version:</maml:linkText>
7745
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/register-azmodule</maml:uri>
7745
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/register-azmodule</maml:uri>
7746
7746
  </maml:navigationLink>
7747
7747
  </command:relatedLinks>
7748
7748
  </command:command>
@@ -8071,7 +8071,7 @@ Opening the default browser to https://aka.ms/azpssurvey?Q_CHL=INTERCEPT</dev:co
8071
8071
  <command:relatedLinks>
8072
8072
  <maml:navigationLink>
8073
8073
  <maml:linkText>Online Version:</maml:linkText>
8074
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/remove-azcontext</maml:uri>
8074
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/remove-azcontext</maml:uri>
8075
8075
  </maml:navigationLink>
8076
8076
  </command:relatedLinks>
8077
8077
  </command:command>
@@ -8270,7 +8270,7 @@ TestEnvironment TestRMEndpoint TestADEndpoint/</dev:code>
8270
8270
  <command:relatedLinks>
8271
8271
  <maml:navigationLink>
8272
8272
  <maml:linkText>Online Version:</maml:linkText>
8273
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/remove-azenvironment</maml:uri>
8273
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/remove-azenvironment</maml:uri>
8274
8274
  </maml:navigationLink>
8275
8275
  <maml:navigationLink>
8276
8276
  <maml:linkText>Add-AzEnvironment</maml:linkText>
@@ -8656,7 +8656,7 @@ TestEnvironment TestRMEndpoint TestADEndpoint/</dev:code>
8656
8656
  <command:relatedLinks>
8657
8657
  <maml:navigationLink>
8658
8658
  <maml:linkText>Online Version:</maml:linkText>
8659
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/rename-azcontext</maml:uri>
8659
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/rename-azcontext</maml:uri>
8660
8660
  </maml:navigationLink>
8661
8661
  </command:relatedLinks>
8662
8662
  </command:command>
@@ -8951,7 +8951,7 @@ HistoryId : 8</dev:code>
8951
8951
  <command:relatedLinks>
8952
8952
  <maml:navigationLink>
8953
8953
  <maml:linkText>Online Version:</maml:linkText>
8954
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/resolve-azerror</maml:uri>
8954
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/resolve-azerror</maml:uri>
8955
8955
  </maml:navigationLink>
8956
8956
  </command:relatedLinks>
8957
8957
  </command:command>
@@ -9164,7 +9164,7 @@ Save-AzContext -Path C:\test.json</dev:code>
9164
9164
  <command:relatedLinks>
9165
9165
  <maml:navigationLink>
9166
9166
  <maml:linkText>Online Version:</maml:linkText>
9167
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/save-azcontext</maml:uri>
9167
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/save-azcontext</maml:uri>
9168
9168
  </maml:navigationLink>
9169
9169
  </command:relatedLinks>
9170
9170
  </command:command>
@@ -9439,7 +9439,7 @@ Select-AzContext -Name TestEnvironment -Scope Process</dev:code>
9439
9439
  <command:relatedLinks>
9440
9440
  <maml:navigationLink>
9441
9441
  <maml:linkText>Online Version:</maml:linkText>
9442
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/select-azcontext</maml:uri>
9442
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/select-azcontext</maml:uri>
9443
9443
  </maml:navigationLink>
9444
9444
  </command:relatedLinks>
9445
9445
  </command:command>
@@ -9541,7 +9541,7 @@ your@email.com</dev:code>
9541
9541
  <command:relatedLinks>
9542
9542
  <maml:navigationLink>
9543
9543
  <maml:linkText>Online Version:</maml:linkText>
9544
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/send-feedback</maml:uri>
9544
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/send-feedback</maml:uri>
9545
9545
  </maml:navigationLink>
9546
9546
  </command:relatedLinks>
9547
9547
  </command:command>
@@ -10276,7 +10276,7 @@ Work test@outlook.com Subscription1 AzureCloud xxxxxxxx-x..
10276
10276
  <command:relatedLinks>
10277
10277
  <maml:navigationLink>
10278
10278
  <maml:linkText>Online Version:</maml:linkText>
10279
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/set-azcontext</maml:uri>
10279
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/set-azcontext</maml:uri>
10280
10280
  </maml:navigationLink>
10281
10281
  <maml:navigationLink>
10282
10282
  <maml:linkText>Get-AzContext</maml:linkText>
@@ -10494,7 +10494,7 @@ Tags :</dev:code>
10494
10494
  <command:relatedLinks>
10495
10495
  <maml:navigationLink>
10496
10496
  <maml:linkText>Online Version:</maml:linkText>
10497
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/set-azdefault</maml:uri>
10497
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/set-azdefault</maml:uri>
10498
10498
  </maml:navigationLink>
10499
10499
  </command:relatedLinks>
10500
10500
  </command:command>
@@ -11726,7 +11726,7 @@ AzureSynapseAnalyticsEndpointResourceId :</dev:code>
11726
11726
  <command:relatedLinks>
11727
11727
  <maml:navigationLink>
11728
11728
  <maml:linkText>Online Version:</maml:linkText>
11729
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/set-azenvironment</maml:uri>
11729
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/set-azenvironment</maml:uri>
11730
11730
  </maml:navigationLink>
11731
11731
  <maml:navigationLink>
11732
11732
  <maml:linkText>Add-AzEnvironment</maml:linkText>
@@ -11893,7 +11893,7 @@ AzureSynapseAnalyticsEndpointResourceId :</dev:code>
11893
11893
  <command:relatedLinks>
11894
11894
  <maml:navigationLink>
11895
11895
  <maml:linkText>Online Version:</maml:linkText>
11896
- <maml:uri>https://docs.microsoft.com/powershell/module/az.accounts/uninstall-azurerm</maml:uri>
11896
+ <maml:uri>https://learn.microsoft.com/powershell/module/az.accounts/uninstall-azurerm</maml:uri>
11897
11897
  </maml:navigationLink>
11898
11898
  </command:relatedLinks>
11899
11899
  </command:command>
@@ -47,4 +47,4 @@ GETTING STARTED
47
47
 
48
48
  SEE ALSO
49
49
 
50
- Azure PowerShell documentation: https://docs.microsoft.com/powershell/azure
50
+ Azure PowerShell documentation: https://learn.microsoft.com/powershell/azure
@@ -3,7 +3,7 @@
3
3
  <dc:creator>Microsoft Corporation</dc:creator>
4
4
  <dc:description>Microsoft Azure PowerShell - Accounts credential management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.
5
5
 
6
- For more information on account credential management, please visit the following: https://docs.microsoft.com/powershell/azure/authenticate-azureps</dc:description>
6
+ For more information on account credential management, please visit the following: https://learn.microsoft.com/powershell/azure/authenticate-azureps</dc:description>
7
7
  <dc:identifier>Az.Accounts</dc:identifier>
8
8
  <version>2.7.5</version>
9
9
  <keywords>Azure ResourceManager ARM Accounts Authentication Environment Subscription PSModule PSIncludes_Cmdlet PSCmdlet_Disable-AzDataCollection PSCmdlet_Disable-AzContextAutosave PSCmdlet_Enable-AzDataCollection PSCmdlet_Enable-AzContextAutosave PSCmdlet_Remove-AzEnvironment PSCmdlet_Get-AzEnvironment PSCmdlet_Set-AzEnvironment PSCmdlet_Add-AzEnvironment PSCmdlet_Get-AzSubscription PSCmdlet_Connect-AzAccount PSCmdlet_Get-AzContext PSCmdlet_Set-AzContext PSCmdlet_Import-AzContext PSCmdlet_Save-AzContext PSCmdlet_Get-AzTenant PSCmdlet_Send-Feedback PSCmdlet_Resolve-AzError PSCmdlet_Select-AzContext PSCmdlet_Rename-AzContext PSCmdlet_Remove-AzContext PSCmdlet_Clear-AzContext PSCmdlet_Disconnect-AzAccount PSCmdlet_Get-AzContextAutosaveSetting PSCmdlet_Set-AzDefault PSCmdlet_Get-AzDefault PSCmdlet_Clear-AzDefault PSCmdlet_Register-AzModule PSCmdlet_Enable-AzureRmAlias PSCmdlet_Disable-AzureRmAlias PSCmdlet_Uninstall-AzureRm PSCmdlet_Invoke-AzRestMethod PSCmdlet_Get-AzAccessToken PSCmdlet_Open-AzSurveyLink PSCommand_Disable-AzDataCollection PSCommand_Disable-AzContextAutosave PSCommand_Enable-AzDataCollection PSCommand_Enable-AzContextAutosave PSCommand_Remove-AzEnvironment PSCommand_Get-AzEnvironment PSCommand_Set-AzEnvironment PSCommand_Add-AzEnvironment PSCommand_Get-AzSubscription PSCommand_Connect-AzAccount PSCommand_Get-AzContext PSCommand_Set-AzContext PSCommand_Import-AzContext PSCommand_Save-AzContext PSCommand_Get-AzTenant PSCommand_Send-Feedback PSCommand_Resolve-AzError PSCommand_Select-AzContext PSCommand_Rename-AzContext PSCommand_Remove-AzContext PSCommand_Clear-AzContext PSCommand_Disconnect-AzAccount PSCommand_Get-AzContextAutosaveSetting PSCommand_Set-AzDefault PSCommand_Get-AzDefault PSCommand_Clear-AzDefault PSCommand_Register-AzModule PSCommand_Enable-AzureRmAlias PSCommand_Disable-AzureRmAlias PSCommand_Uninstall-AzureRm PSCommand_Invoke-AzRestMethod PSCommand_Get-AzAccessToken PSCommand_Open-AzSurveyLink PSCommand_Add-AzAccount PSCommand_Login-AzAccount PSCommand_Remove-AzAccount PSCommand_Logout-AzAccount PSCommand_Select-AzSubscription PSCommand_Resolve-Error PSCommand_Save-AzProfile PSCommand_Get-AzDomain PSCommand_Invoke-AzRest</keywords>
@@ -0,0 +1,30 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ namespace Microsoft.Rest
6
+ {
7
+ using System;
8
+ using System.Collections.Generic;
9
+ using System.Text;
10
+
11
+ [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
12
+ public class ExternalDocsAttribute : Attribute
13
+ {
14
+
15
+ public string Description { get; }
16
+
17
+ public string Url { get; }
18
+
19
+ public ExternalDocsAttribute(string url)
20
+ {
21
+ Url = url;
22
+ }
23
+
24
+ public ExternalDocsAttribute(string url, string description)
25
+ {
26
+ Url = url;
27
+ Description = description;
28
+ }
29
+ }
30
+ }
@@ -31,7 +31,7 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
31
31
  public string[] Inputs { get; }
32
32
  public string[] Outputs { get; }
33
33
  public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; }
34
- public string[] RelatedLinks { get; }
34
+ public MarkdownRelatedLinkInfo[] RelatedLinks { get; }
35
35
 
36
36
  public bool SupportsShouldProcess { get; }
37
37
  public bool SupportsPaging { get; }
@@ -67,7 +67,11 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
67
67
 
68
68
  ComplexInterfaceInfos = variantGroup.ComplexInterfaceInfos;
69
69
  OnlineVersion = commentInfo.OnlineVersion;
70
- RelatedLinks = commentInfo.RelatedLinks;
70
+
71
+ var relatedLinkLists = new List<MarkdownRelatedLinkInfo>();
72
+ relatedLinkLists.AddRange(commentInfo.RelatedLinks?.Select(link => new MarkdownRelatedLinkInfo(link)));
73
+ relatedLinkLists.AddRange(variantGroup.Variants.SelectMany(v => v.Attributes).OfType<ExternalDocsAttribute>()?.Distinct()?.Select(link => new MarkdownRelatedLinkInfo(link.Url, link.Description)));
74
+ RelatedLinks = relatedLinkLists?.ToArray();
71
75
 
72
76
  SupportsShouldProcess = variantGroup.SupportsShouldProcess;
73
77
  SupportsPaging = variantGroup.SupportsPaging;
@@ -218,14 +222,45 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
218
222
  }
219
223
  }
220
224
 
225
+ internal class MarkdownRelatedLinkInfo
226
+ {
227
+ public string Url { get; }
228
+ public string Description { get; }
229
+
230
+ public MarkdownRelatedLinkInfo(string url)
231
+ {
232
+ Url = url;
233
+ }
234
+
235
+ public MarkdownRelatedLinkInfo(string url, string description)
236
+ {
237
+ Url = url;
238
+ Description = description;
239
+ }
240
+
241
+ public override string ToString()
242
+ {
243
+ if (string.IsNullOrEmpty(Description))
244
+ {
245
+ return Url;
246
+ }
247
+ else
248
+ {
249
+ return $@"[{Description}]({Url})";
250
+
251
+ }
252
+
253
+ }
254
+ }
255
+
221
256
  internal static class MarkdownTypesExtensions
222
257
  {
223
258
  public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks);
224
259
 
225
260
  public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos =
226
261
  {
227
- new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"),
228
- new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"),
262
+ new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here (remove the output block if the example doesn't have an output) }}}}", @"{{ Add description here }}"),
263
+ new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here (remove the output block if the example doesn't have an output) }}}}", @"{{ Add description here }}"),
229
264
  };
230
265
 
231
266
  public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters =
@@ -262,7 +262,11 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
262
262
  var variantListString = defaultInfo.ParameterGroup.VariantNames.ToPsList();
263
263
  var parameterName = defaultInfo.ParameterGroup.ParameterName;
264
264
  sb.AppendLine();
265
- sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{");
265
+ var setCondition = " ";
266
+ if (!String.IsNullOrEmpty(defaultInfo.SetCondition)) {
267
+ setCondition = $" -and {defaultInfo.SetCondition}";
268
+ }
269
+ sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{");
266
270
  sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}");
267
271
  sb.Append($"{Indent}{Indent}}}");
268
272
  }
@@ -357,6 +361,8 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
357
361
  var notesText = !String.IsNullOrEmpty(notes) ? $"{Environment.NewLine}.Notes{Environment.NewLine}{ComplexParameterHeader}{notes}" : String.Empty;
358
362
  var relatedLinks = String.Join(Environment.NewLine, CommentInfo.RelatedLinks.Select(l => $".Link{Environment.NewLine}{l}"));
359
363
  var relatedLinksText = !String.IsNullOrEmpty(relatedLinks) ? $"{Environment.NewLine}{relatedLinks}" : String.Empty;
364
+ var externalUrls = String.Join(Environment.NewLine, CommentInfo.ExternalUrls.Select(l => $".Link{Environment.NewLine}{l}"));
365
+ var externalUrlsText = !String.IsNullOrEmpty(externalUrls) ? $"{Environment.NewLine}{externalUrls}" : String.Empty;
360
366
  var examples = "";
361
367
  foreach (var example in VariantGroup.HelpInfo.Examples)
362
368
  {
@@ -369,7 +375,7 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
369
375
  {CommentInfo.Description.ToDescriptionFormat(false)}
370
376
  {examples}{inputsText}{outputsText}{notesText}
371
377
  .Link
372
- {CommentInfo.OnlineVersion}{relatedLinksText}
378
+ {CommentInfo.OnlineVersion}{relatedLinksText}{externalUrlsText}
373
379
  #>
374
380
  ";
375
381
  }
@@ -366,6 +366,7 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
366
366
 
367
367
  public string OnlineVersion { get; }
368
368
  public string[] RelatedLinks { get; }
369
+ public string[] ExternalUrls { get; }
369
370
 
370
371
  private const string HelpLinkPrefix = @"${$project.helpLinkPrefix}";
371
372
 
@@ -391,6 +392,9 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
391
392
  var moduleName = variantGroup.RootModuleName == "" ? variantGroup.ModuleName.ToLowerInvariant() : variantGroup.RootModuleName.ToLowerInvariant();
392
393
  OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{moduleName}/{variantGroup.CmdletName.ToLowerInvariant()}";
393
394
  RelatedLinks = helpInfo.RelatedLinks.Select(rl => rl.Text).ToArray();
395
+
396
+ // Get external urls from attribute
397
+ ExternalUrls = variantGroup.Variants.SelectMany(v => v.Attributes).OfType<ExternalDocsAttribute>()?.Select(e => e.Url)?.Distinct()?.ToArray();
394
398
  }
395
399
  }
396
400
 
@@ -425,6 +429,7 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
425
429
  public string Name { get; }
426
430
  public string Description { get; }
427
431
  public string Script { get; }
432
+ public string SetCondition { get; }
428
433
  public ParameterGroup ParameterGroup { get; }
429
434
 
430
435
  public DefaultInfo(DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup)
@@ -432,6 +437,7 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
432
437
  Name = infoAttribute.Name;
433
438
  Description = infoAttribute.Description;
434
439
  Script = infoAttribute.Script;
440
+ SetCondition = infoAttribute.SetCondition;
435
441
  ParameterGroup = parameterGroup;
436
442
  }
437
443
 
@@ -48,6 +48,13 @@ namespace Microsoft.Rest
48
48
  }
49
49
  }
50
50
 
51
+ [AttributeUsage(AttributeTargets.Class)]
52
+ public class HttpPathAttribute : Attribute
53
+ {
54
+ public string Path { get; set; }
55
+ public string ApiVersion { get; set; }
56
+ }
57
+
51
58
  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
52
59
  public class CategoryAttribute : Attribute
53
60
  {
@@ -0,0 +1,33 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ namespace Microsoft.Rest.ClientRuntime
7
+ {
8
+
9
+ using System;
10
+ using System.Linq;
11
+ using System.Collections;
12
+ using System.Collections.Generic;
13
+ using System.Net.Http;
14
+ using System.Threading;
15
+ using System.Threading.Tasks;
16
+ using GetEventData = System.Func<EventData>;
17
+ using static Microsoft.Rest.ClientRuntime.Extensions;
18
+
19
+ /// <summary>
20
+ /// The IContext Interface defines the communication mechanism for input customization.
21
+ /// </summary>
22
+ /// <remarks>
23
+ /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation.
24
+ /// </remarks>
25
+ public interface IContext
26
+ {
27
+ System.Management.Automation.InvocationInfo InvocationInformation { get; set; }
28
+ System.Threading.CancellationTokenSource CancellationTokenSource { get; set; }
29
+ System.Collections.Generic.IDictionary<String, Object> ExtensibleParameters { get; }
30
+ HttpPipeline Pipeline { get; set; }
31
+ Microsoft.RestClient Client { get; }
32
+ }
33
+ }
@@ -33,5 +33,6 @@ namespace Microsoft.Rest.ClientRuntime
33
33
  public string Script { get; set; } = "";
34
34
  public string Name { get; set; } = "";
35
35
  public string Description { get; set; } = "";
36
+ public string SetCondition { get; set; } = "";
36
37
  }
37
38
  }
@@ -0,0 +1,22 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ using System;
7
+ using System.Collections.Generic;
8
+
9
+ namespace Microsoft.Rest.ClientRuntime.Cmdlets
10
+ {
11
+ public abstract class InputHandler
12
+ {
13
+ protected InputHandler NextHandler = null;
14
+
15
+ public void SetNextHandler(InputHandler nextHandler)
16
+ {
17
+ this.NextHandler = nextHandler;
18
+ }
19
+
20
+ public abstract void Process(Microsoft.Rest.ClientRuntime.IContext context);
21
+ }
22
+ }
@@ -22,6 +22,6 @@ namespace Microsoft.Rest.ClientRuntime
22
22
  public const string FollowingNextLink = nameof(FollowingNextLink);
23
23
  public const string DelayBeforePolling = nameof(DelayBeforePolling);
24
24
  public const string Polling = nameof(Polling);
25
-
25
+ public const string Progress = nameof(Progress);
26
26
  }
27
- }
27
+ }
@@ -0,0 +1,5 @@
1
+ <%if(!method.extensions || !method.extensions['x-ms-long-running-operation']) {-%>
2
+ <%- include('method', {method: method}) %>
3
+ <%} else {-%>
4
+ <%- include('longRunningOperationMethod', {method: method}) %>
5
+ <%};-%>
@@ -0,0 +1,46 @@
1
+ <%- project.commentHeader %>
2
+ <% var key = methodGroup.$key == 'Operations' ? '' : methodGroup.$key-%>
3
+
4
+ namespace <%- project.namespace %>
5
+ {
6
+ using System.Linq;
7
+ using Microsoft.Rest;
8
+ <% project.model.usings.forEach(function(using){ -%>
9
+ using <%- using %>;
10
+ <% }); -%>
11
+
12
+ <% var typeName = project.helper.PascalCase(key) + 'Operations' -%>
13
+ /// <summary>
14
+ /// <%- typeName %> operations.
15
+ /// </summary>
16
+ <% var client = project.model.info.title -%>
17
+ internal partial class <%- typeName %> : Microsoft.Rest.IServiceOperations<<%-client%>>, I<%- typeName%>
18
+ {
19
+ /// <summary>
20
+ /// Initializes a new instance of the <%- typeName%> class.
21
+ /// </summary>
22
+ /// <param name='client'>
23
+ /// Reference to the service client.
24
+ /// </param>
25
+ /// <exception cref="System.ArgumentNullException">
26
+ /// Thrown when a required parameter is null
27
+ /// </exception>
28
+ internal <%- typeName%> (<%-client%> client)
29
+ {
30
+ if (client == null)
31
+ {
32
+ throw new System.ArgumentNullException("client");
33
+ }
34
+ this.Client = client;
35
+ }
36
+
37
+ /// <summary>
38
+ /// Gets a reference to the <%-client%>
39
+ /// </summary>
40
+ public <%-client%> Client { get; private set; }
41
+
42
+ <% methodGroup.operations.forEach(function(method){ -%>
43
+ <%- include('azureMethod', {method: method}) -%>
44
+ <% }); -%>
45
+ }
46
+ }