@autorest/powershell 4.0.0-dev.7 → 4.0.0-dev.8

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 (70) hide show
  1. package/.rush/temp/package-deps_build.json +38 -37
  2. package/autorest-configuration.md +1 -1
  3. package/dist/cmdlets/class.d.ts +3 -0
  4. package/dist/cmdlets/class.d.ts.map +1 -1
  5. package/dist/cmdlets/class.js +115 -27
  6. package/dist/cmdlets/class.js.map +1 -1
  7. package/dist/cmdlets/namespace.d.ts.map +1 -1
  8. package/dist/cmdlets/namespace.js +1 -0
  9. package/dist/cmdlets/namespace.js.map +1 -1
  10. package/dist/generators/psm1.js +1 -1
  11. package/dist/generators/script-cmdlet.js +1 -1
  12. package/dist/internal/project.d.ts +9 -2
  13. package/dist/internal/project.d.ts.map +1 -1
  14. package/dist/internal/project.js +4 -2
  15. package/dist/internal/project.js.map +1 -1
  16. package/dist/llcsharp/clientruntime.d.ts +1 -0
  17. package/dist/llcsharp/clientruntime.d.ts.map +1 -1
  18. package/dist/llcsharp/clientruntime.js +1 -0
  19. package/dist/llcsharp/clientruntime.js.map +1 -1
  20. package/dist/llcsharp/csharp-declarations.d.ts +1 -0
  21. package/dist/llcsharp/csharp-declarations.d.ts.map +1 -1
  22. package/dist/llcsharp/csharp-declarations.js +2 -1
  23. package/dist/llcsharp/csharp-declarations.js.map +1 -1
  24. package/dist/llcsharp/model/model-class.d.ts.map +1 -1
  25. package/dist/llcsharp/model/model-class.js +27 -11
  26. package/dist/llcsharp/model/model-class.js.map +1 -1
  27. package/dist/llcsharp/schema/array.js +7 -7
  28. package/dist/llcsharp/schema/array.js.map +1 -1
  29. package/dist/llcsharp/schema/fixed-array.d.ts +42 -0
  30. package/dist/llcsharp/schema/fixed-array.d.ts.map +1 -0
  31. package/dist/llcsharp/schema/fixed-array.js +251 -0
  32. package/dist/llcsharp/schema/fixed-array.js.map +1 -0
  33. package/dist/llcsharp/schema/schema-resolver.d.ts +1 -1
  34. package/dist/llcsharp/schema/schema-resolver.d.ts.map +1 -1
  35. package/dist/llcsharp/schema/schema-resolver.js +9 -2
  36. package/dist/llcsharp/schema/schema-resolver.js.map +1 -1
  37. package/dist/plugins/cs-namer-v2.d.ts.map +1 -1
  38. package/dist/plugins/cs-namer-v2.js +10 -7
  39. package/dist/plugins/cs-namer-v2.js.map +1 -1
  40. package/dist/plugins/sdk-create-inline-properties.d.ts.map +1 -1
  41. package/dist/plugins/sdk-create-inline-properties.js +26 -0
  42. package/dist/plugins/sdk-create-inline-properties.js.map +1 -1
  43. package/dist/plugins/sdk-cs-namer.d.ts.map +1 -1
  44. package/dist/plugins/sdk-cs-namer.js +17 -9
  45. package/dist/plugins/sdk-cs-namer.js.map +1 -1
  46. package/dist/plugins/sdk-tweak-model.d.ts.map +1 -1
  47. package/dist/plugins/sdk-tweak-model.js +13 -5
  48. package/dist/plugins/sdk-tweak-model.js.map +1 -1
  49. package/package.json +1 -1
  50. package/resources/assets/build-module.ps1 +1 -1
  51. package/resources/assets/create-model-cmdlets.ps1 +51 -10
  52. package/resources/assets/custom/README.md +1 -1
  53. package/resources/assets/docs/README.md +1 -1
  54. package/resources/assets/exports/README.md +1 -1
  55. package/resources/assets/how-to.md +1 -1
  56. package/resources/assets/internal/README.md +1 -1
  57. package/resources/assets/tools/Resources/custom/New-AzDeployment.ps1 +1 -1
  58. package/resources/assets/tools/Resources/docs/README.md +1 -1
  59. package/resources/assets/tools/Resources/how-to.md +1 -1
  60. package/resources/modules/Az.Accounts/2.7.5/Az.Accounts.nuspec +1 -1
  61. package/resources/modules/Az.Accounts/2.7.5/Az.Accounts.psd1 +1 -1
  62. package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml +34 -34
  63. package/resources/modules/Az.Accounts/2.7.5/en-US/about_az.help.txt +1 -1
  64. package/resources/modules/Az.Accounts/2.7.5/package/services/metadata/core-properties/1aa0749a068a4238881858013f1a5b7f.psmdcp +1 -1
  65. package/resources/psruntime/BuildTime/Cmdlets/ExportFormatPs1xml.cs +3 -1
  66. package/resources/psruntime/BuildTime/PsAttributes.cs +5 -0
  67. package/resources/psruntime/BuildTime/PsExtensions.cs +7 -0
  68. package/resources/psruntime/TypeConverterExtensions.cs +50 -0
  69. package/resources/runtime/csharp/json/Nodes/Collections/XNodeArray.cs +5 -0
  70. package/resources/templates/methodBodyRestCall.ejs +1 -1
@@ -6,10 +6,10 @@
6
6
  "powershell/.npmignore": "33986ae1f99f00e14a6a7872e41f0860a44bf33f",
7
7
  "powershell/LICENSE": "21071075c24599ee98254f702bcfc504cdc275a6",
8
8
  "powershell/autorest-configuration-for-sdk.md": "af94f23cde0b8a9a0f8b7e30341e747061d672a2",
9
- "powershell/autorest-configuration.md": "d9cefca1119c4aa800e071890a5b7304feb679d0",
9
+ "powershell/autorest-configuration.md": "328f63beac732c2f4b9c188b0d3e02f88bd8ffee",
10
10
  "powershell/changelog.md": "438e32cc7c4d86e08e32c2fd4085928c0e70b1b9",
11
- "powershell/cmdlets/class.ts": "84a2fd638100af11f8bb32dd77644ddee04ed0b8",
12
- "powershell/cmdlets/namespace.ts": "35984868d65796f49997f2905f5d932efff97fe3",
11
+ "powershell/cmdlets/class.ts": "893bedf0675d7e354869b99fa342b05a75b009e1",
12
+ "powershell/cmdlets/namespace.ts": "c07ec678f014fd2eae89e15e9d63f8f37b1957a8",
13
13
  "powershell/cmdlets/parameter.ts": "7c67fea43eded2c358ad802306dde505c8d0e30f",
14
14
  "powershell/enums/namespace.ts": "1206b2c779837a0660b314059e312a472a145c87",
15
15
  "powershell/file-formats/md-file.ts": "ed8ce6b04bee95cf325ba7c92e4e242acb2c9e40",
@@ -22,17 +22,17 @@
22
22
  "powershell/generators/nuspec.ts": "d6773154e167a9cf4bec08c48f4cc56b7e28cc5d",
23
23
  "powershell/generators/psm1.custom.ts": "7977240814d1a71c9ab05dc51d0266fa505a4833",
24
24
  "powershell/generators/psm1.internal.ts": "76911b9c45af5a17197c1c8e5db7ebe6c9afea4e",
25
- "powershell/generators/psm1.ts": "ff8e4b9061ef6b85845fe225bf5350ee383eb377",
25
+ "powershell/generators/psm1.ts": "b8de87fac32b95bf60efa4efc86352ce0babb879",
26
26
  "powershell/generators/readme.ts": "b8563b454f6deaeb4d66424ebc278b90a5836776",
27
- "powershell/generators/script-cmdlet.ts": "5cb3f82db9d552efd0193935215fdf85e7d2ed98",
27
+ "powershell/generators/script-cmdlet.ts": "369849c81f6dc161b49dbaeda65d6c245bbb4d72",
28
28
  "powershell/internal/name-inferrer.ts": "425704ee9cbf78949f9021861db6e8a148a7b2d3",
29
29
  "powershell/internal/powershell-declarations.ts": "7480a3e24f514929471f924f88d3f30359f76b77",
30
- "powershell/internal/project.ts": "150cc281ee73ec65a8b85a96b861ce5540226339",
30
+ "powershell/internal/project.ts": "dcd11d4e6337cabf75560be3e344415c2778fd45",
31
31
  "powershell/internal/state.ts": "c5253f50958621596d983fde9d984a2e72d75f8f",
32
32
  "powershell/internal/verbs.ts": "c8fd6b534923b1dd1bd71be0f33936265468942e",
33
- "powershell/llcsharp/clientruntime.ts": "e8ea9bc1e02ad7f1f87aa288d8714a12595552f1",
33
+ "powershell/llcsharp/clientruntime.ts": "66d0937fb4f22323c444574102227896e0c64d50",
34
34
  "powershell/llcsharp/code-model.ts": "e825cfc34f36bf013b90c2091be7a3ce6b98dd18",
35
- "powershell/llcsharp/csharp-declarations.ts": "7adffe36eec155991f106fa9f85d5209af1bda19",
35
+ "powershell/llcsharp/csharp-declarations.ts": "310db0558c7952e5a5003d7e1397e8aaa86b3729",
36
36
  "powershell/llcsharp/enums/enum.ts": "acef7dc3022f9bfb2ac264fe18c47a218db72162",
37
37
  "powershell/llcsharp/enums/namespace.ts": "90e9a014d64620fa72af32c041a9394a6e48a528",
38
38
  "powershell/llcsharp/exports.ts": "f9d66798e8b5a93bbf5fa64c572df3662c714e18",
@@ -44,7 +44,7 @@
44
44
  "powershell/llcsharp/model/model-class-dictionary.ts": "fe5be9aa69792534b7800ea4269f052ae11c163b",
45
45
  "powershell/llcsharp/model/model-class-json.ts": "5175028256c8430bf9a00634cfae1d3955c65358",
46
46
  "powershell/llcsharp/model/model-class-serializer.ts": "24cf0191f3a079480ffc5c53eea2df607da7e4de",
47
- "powershell/llcsharp/model/model-class.ts": "52379728897ed1424d1b9f95330cf7458be29b4d",
47
+ "powershell/llcsharp/model/model-class.ts": "f047f0f4c814a587197933d43ebc50ee69a805b1",
48
48
  "powershell/llcsharp/model/namespace.ts": "5eb8d2fa9869a3ad5319223306e851c7b2ff1bfd",
49
49
  "powershell/llcsharp/model/property.ts": "94a82a74ee43919c0dddd406901c2a847c75f8db",
50
50
  "powershell/llcsharp/operation/api-class.ts": "1d66df80f692574b8533ec9e6a0b324cdca526e8",
@@ -53,7 +53,7 @@
53
53
  "powershell/llcsharp/operation/parameter.ts": "e46c779bedbe0b5150dd37ef455c5bbc6081a02b",
54
54
  "powershell/llcsharp/project.ts": "76b9c12543d73bcce7f54b0a43e3e50e988027a4",
55
55
  "powershell/llcsharp/schema/Uuid.ts": "750348055617a265ccee1588e28c7b0ad5b39ccc",
56
- "powershell/llcsharp/schema/array.ts": "cdc42090ca990850c914557d12e9692a58d352ac",
56
+ "powershell/llcsharp/schema/array.ts": "eb00cd7e80e7deb3bd97b70166cc999989ff8f9b",
57
57
  "powershell/llcsharp/schema/binary.ts": "49091f193c8171d99f9f768fa7dc10fc60d07716",
58
58
  "powershell/llcsharp/schema/boolean.ts": "342b75a0ea304e577ed6985ca417ac2de6773d56",
59
59
  "powershell/llcsharp/schema/byte-array.ts": "0fb8759938651529372ddff1787a2d1ed3113ef4",
@@ -63,11 +63,12 @@
63
63
  "powershell/llcsharp/schema/duration.ts": "711398f9a55a29f9ce01aaf6595e0b87bcdc2663",
64
64
  "powershell/llcsharp/schema/enum.ts": "798329dbbe050786e44bf039bcabdbdca12e3e85",
65
65
  "powershell/llcsharp/schema/extended-type-declaration.ts": "b08fd1ab2c7c5f2e6585c45ffcd5f4623290e8a7",
66
+ "powershell/llcsharp/schema/fixed-array.ts": "b923785946e40cf8ff741bd61962a39a67a46049",
66
67
  "powershell/llcsharp/schema/integer.ts": "0d39024b0971ae0dff8e05ee35255af88ccba690",
67
68
  "powershell/llcsharp/schema/object.ts": "fb6c5e461dd9395f08dafa11c8781190584a1c6c",
68
69
  "powershell/llcsharp/schema/password.ts": "2da4f9d7bb775e7dfca0aedc5306788c46ea749e",
69
70
  "powershell/llcsharp/schema/primitive.ts": "60ce81387d40d16adfe132315d45b8f86ad6212b",
70
- "powershell/llcsharp/schema/schema-resolver.ts": "f2ed68487754736332338a40213ec0ecb4bac384",
71
+ "powershell/llcsharp/schema/schema-resolver.ts": "3badb4711f8ca330e284caa13147ad8605e367da",
71
72
  "powershell/llcsharp/schema/string.ts": "0bb2229d97633e9cc02725964f367b3f5621441a",
72
73
  "powershell/llcsharp/schema/uri.ts": "58d8f8a09fc34a4567374ecfbb05c0dd9b8422f4",
73
74
  "powershell/llcsharp/validations.ts": "0a86cb8934b4536461efbce10de737075c599866",
@@ -75,10 +76,10 @@
75
76
  "powershell/models/model-extensions.ts": "f8d9711d5020e593ae943ae6472b742554e6db59",
76
77
  "powershell/module/module-class.ts": "327af665b5d81e4cc1b8fa9da7382e9c73300de5",
77
78
  "powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
78
- "powershell/package.json": "54fcc8ef261591a871f835bcd2fead8bc6abcde6",
79
+ "powershell/package.json": "cfff472b3ff7fb13255d11f978fe33b044e396c5",
79
80
  "powershell/plugins/add-azure-completers-v2.ts": "557ce4326318c82f91445490a162f20fa029fed3",
80
81
  "powershell/plugins/create-commands-v2.ts": "2df96f89474fad884af03531b8028ef8e0a90ed3",
81
- "powershell/plugins/cs-namer-v2.ts": "76afdace88883c1544d50a9d7d3b1fe0f2534a42",
82
+ "powershell/plugins/cs-namer-v2.ts": "b1844bab421529bb6e5e341eef5a741c8c8ab35f",
82
83
  "powershell/plugins/llcsharp-v2.ts": "c90a8a2c61de26fdcef583565b26004de9ef85a0",
83
84
  "powershell/plugins/modifiers-v2.ts": "bca35cc62de33c1b60f3216011db4450d11361ad",
84
85
  "powershell/plugins/plugin-create-inline-properties.ts": "c0b9bfaba261d6c317014876dc33675430be6858",
@@ -87,24 +88,24 @@
87
88
  "powershell/plugins/plugin-tweak-model.ts": "7bd4acd1b43235f8d5d4670c97b509b86160e572",
88
89
  "powershell/plugins/powershell-v2.ts": "e9230f656d1df3eff65b54d82e264033fd418bc1",
89
90
  "powershell/plugins/ps-namer-v2.ts": "3a1e957a67ac97ce14869aa02a6772e27ee6ec86",
90
- "powershell/plugins/sdk-create-inline-properties.ts": "7c5a5db1fcca221450237154bbae9c6133a839ac",
91
- "powershell/plugins/sdk-cs-namer.ts": "053d2196c6240b2964f5205f23622f8a928224e6",
91
+ "powershell/plugins/sdk-create-inline-properties.ts": "724f73de6817a3be80fd95a06cab38ffcf469a54",
92
+ "powershell/plugins/sdk-cs-namer.ts": "b9784de3c95b166b1b33584e58ddd43ee0218533",
92
93
  "powershell/plugins/sdk-cs-simplifier.ts": "c99db6ac4f411fc6040448641006a8d05e0ab296",
93
94
  "powershell/plugins/sdk-generate.ts": "f7d2ecdd5bd70de7880fd8c1ac307922a3aa130a",
94
- "powershell/plugins/sdk-tweak-model.ts": "26bac91dab7cee29b7890c03445e93853e716026",
95
+ "powershell/plugins/sdk-tweak-model.ts": "16cf569c7b5c52d2250d57840c02828de65a4514",
95
96
  "powershell/readme.md": "eeb191589b240161a10502f6d21e35b23f9bc805",
96
- "powershell/resources/assets/build-module.ps1": "de5c82a670d822365beecd1c89c708dcc9dab841",
97
+ "powershell/resources/assets/build-module.ps1": "240ca42b9250638bc76c4af372f099ad156a0ba4",
97
98
  "powershell/resources/assets/check-dependencies.ps1": "fdbc4bc30bde12fcdefe905acc55614e9d570a67",
98
- "powershell/resources/assets/create-model-cmdlets.ps1": "17834f4e3d0a18380baeb4b7d529953e2008f165",
99
- "powershell/resources/assets/custom/README.md": "b802db3b38ec4c5db299a62b98509315208e7a5f",
100
- "powershell/resources/assets/docs/README.md": "63035d1e0c808d2ba3bed2f0a5ffe7fc48ecc377",
99
+ "powershell/resources/assets/create-model-cmdlets.ps1": "c0c981c16d15a454487df904aa877cd85b07ec6e",
100
+ "powershell/resources/assets/custom/README.md": "8f35d9de2dd67e37c4135b2d91dc194b33c9cd3f",
101
+ "powershell/resources/assets/docs/README.md": "7ea7065e913f5792b57d826f5cf12c603c87421d",
101
102
  "powershell/resources/assets/examples/README.md": "a0ad7c4631b6944a22edd0c2d23fe0bc66365ac7",
102
103
  "powershell/resources/assets/export-surface.ps1": "b97888449ac519ffe26d3f6dddef18b7be7c96d4",
103
- "powershell/resources/assets/exports/README.md": "18a2a233e6efa52daf13af5336bd7880ca3faeac",
104
+ "powershell/resources/assets/exports/README.md": "c8a90f9d2e9134c3366ae18eb6f2d5f169a8ee4b",
104
105
  "powershell/resources/assets/generate-help.ps1": "c89c2d32e94fe4a62612ecb7937983cafcf528f1",
105
106
  "powershell/resources/assets/generate-portal-ux.ps1": "78b89bd0e7e226e10471e16b379e027a9bda2d36",
106
- "powershell/resources/assets/how-to.md": "83256042bff1af1ebf54b31f8b13fbcb785677cc",
107
- "powershell/resources/assets/internal/README.md": "d28c195826e6da6ba8f81a23d9b32083435b40f3",
107
+ "powershell/resources/assets/how-to.md": "a2fc9c53d35275e0e4cd8423e4e194744d359afd",
108
+ "powershell/resources/assets/internal/README.md": "ec115a67f403df03f07892213b3b9e83867cdd41",
108
109
  "powershell/resources/assets/license.txt": "b9f3180fb9aff09aa7665db6b3226e492f670be6",
109
110
  "powershell/resources/assets/pack-module.ps1": "3a263c5fd58c6f124693c3004db4b960ed579f39",
110
111
  "powershell/resources/assets/resources/README.md": "c532566d4700f25121ebf7cd78071002f888d096",
@@ -115,10 +116,10 @@
115
116
  "powershell/resources/assets/tools/Resources/.gitattributes": "2125666142eb661091cc5f32af2ed2f3fc65571d",
116
117
  "powershell/resources/assets/tools/Resources/.gitignore": "8b93ac424812ec6872783420ed87e82d10f2242b",
117
118
  "powershell/resources/assets/tools/Resources/README.md": "31fed0aedd4e2624b00f92efafbaa285e52aaa4f",
118
- "powershell/resources/assets/tools/Resources/custom/New-AzDeployment.ps1": "4ece0d887e46d84e715e28def3d527a27863ad09",
119
- "powershell/resources/assets/tools/Resources/docs/README.md": "333641864791b8bfab55b065adcce854d0a4b730",
119
+ "powershell/resources/assets/tools/Resources/custom/New-AzDeployment.ps1": "7a006ed067230ba7634730294e54efb14dee4ef7",
120
+ "powershell/resources/assets/tools/Resources/docs/README.md": "3b56cb561c1faa09c38cd1cce8553110175f0400",
120
121
  "powershell/resources/assets/tools/Resources/examples/README.md": "ac871d71fc727e571a0eec3e0b02c21b045be88f",
121
- "powershell/resources/assets/tools/Resources/how-to.md": "4c79ea8c69ffd1cb606ce30ff926b15134234095",
122
+ "powershell/resources/assets/tools/Resources/how-to.md": "efb71319a7531784ca852ce89f62844df0f91f9a",
122
123
  "powershell/resources/assets/tools/Resources/license.txt": "3d3f8f90d5d7e06551310244241b745617e38f7e",
123
124
  "powershell/resources/assets/tools/Resources/resources/CmdletSurface-latest-2019-04-30.md": "278ea694e0fa5466621e0d5bdc65e1598bdf4721",
124
125
  "powershell/resources/assets/tools/Resources/resources/ModelSurface.md": "378e3ec418a83a22587012ffb6214f9335d0f2dc",
@@ -129,8 +130,8 @@
129
130
  "powershell/resources/modules/Az.Accounts/2.7.5/Accounts.format.ps1xml": "ae0c12dd4efa2db630f2340b8e0fb749d7dc4c8b",
130
131
  "powershell/resources/modules/Az.Accounts/2.7.5/Accounts.generated.format.ps1xml": "a81dae94b4db727c597996403a2065011cb39e5a",
131
132
  "powershell/resources/modules/Az.Accounts/2.7.5/Accounts.types.ps1xml": "e3b670a7daff32c7e2b4aed9afcee79666bf1c09",
132
- "powershell/resources/modules/Az.Accounts/2.7.5/Az.Accounts.nuspec": "f664d888f3b8f99aa2e2b02f21a42e4675955b94",
133
- "powershell/resources/modules/Az.Accounts/2.7.5/Az.Accounts.psd1": "5597a247fce7b582d084876534912e28f496114a",
133
+ "powershell/resources/modules/Az.Accounts/2.7.5/Az.Accounts.nuspec": "7516aaac75bf7983b9ef479fe9fea765315b3a53",
134
+ "powershell/resources/modules/Az.Accounts/2.7.5/Az.Accounts.psd1": "42bdacfe31b91ff7f958396c930e656135fa3195",
134
135
  "powershell/resources/modules/Az.Accounts/2.7.5/Az.Accounts.psm1": "67107181add7ce16dfe38f4e9f30f8ef87c7474b",
135
136
  "powershell/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/Azure.Core.dll": "32652d6de4d07df3cfb06b166d419796c0c144ae",
136
137
  "powershell/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/Azure.Identity.dll": "0d214db71cad80555ef4d6ed83272de795d4c5a9",
@@ -163,7 +164,7 @@
163
164
  "powershell/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Clients.Websites.dll": "4bf3ee9bd78d5020dd05c14ca19f72ff85f421ae",
164
165
  "powershell/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Cmdlets.Accounts.deps.json": "54274e52ee762d3770da3f0ceb5441eb58dd84b2",
165
166
  "powershell/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll": "2eff02a0138e8b7f4b1dd9ed2166bf818dffa7ce",
166
- "powershell/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml": "85f85750523bb0624c5aec973b6916ee859d5658",
167
+ "powershell/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml": "43d9895e237e0c6c9b89e15dbc2ca5edac75b6e1",
167
168
  "powershell/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Common.Share.dll": "e45ac91a1264184fd86bf3750d545a800176437c",
168
169
  "powershell/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Common.dll": "a705c3fd25a8824c3a6cffa9ae5fdb1098d658c4",
169
170
  "powershell/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Storage.dll": "f15127c61779d0641a9956f2ad7602b6ce202261",
@@ -203,15 +204,15 @@
203
204
  "powershell/resources/modules/Az.Accounts/2.7.5/StartupScripts/InitializeAssemblyResolver.ps1": "4e557723dc3338216a2a53357a6430f703e3b7fd",
204
205
  "powershell/resources/modules/Az.Accounts/2.7.5/[Content_Types].xml": "95d6227f2ef8c8662231396ad7053d17d81f941a",
205
206
  "powershell/resources/modules/Az.Accounts/2.7.5/_rels/.rels": "95479a0e6d24ba4462dbf820c23bd40e6a1706c1",
206
- "powershell/resources/modules/Az.Accounts/2.7.5/en-US/about_az.help.txt": "7e294d2728544e5f1935b88cff8aa8640a156a78",
207
- "powershell/resources/modules/Az.Accounts/2.7.5/package/services/metadata/core-properties/1aa0749a068a4238881858013f1a5b7f.psmdcp": "5c37526de859b7f3798908d2f181bd827eab0398",
207
+ "powershell/resources/modules/Az.Accounts/2.7.5/en-US/about_az.help.txt": "fb4a5e9becd17c1356a514b37d5f9826e2ff18ba",
208
+ "powershell/resources/modules/Az.Accounts/2.7.5/package/services/metadata/core-properties/1aa0749a068a4238881858013f1a5b7f.psmdcp": "73712c19344e0c83682ee37ec0d2a07e384c3ad8",
208
209
  "powershell/resources/psruntime/AsyncCommandRuntime.cs": "4f0053e097d11173ad7a8a11dc464de861305b99",
209
210
  "powershell/resources/psruntime/AsyncJob.cs": "a8ccf259bb62954fdae31a7fe5ed59b6bba574fb",
210
211
  "powershell/resources/psruntime/AsyncOperationResponse.cs": "858ae5bb8c53e738bcf577103f11a64de58ff780",
211
212
  "powershell/resources/psruntime/Attributes/ExternalDocsAttribute.cs": "351f0211537f9a38562884273f3ce1b0f59b423c",
212
213
  "powershell/resources/psruntime/BuildTime/Cmdlets/ExportCmdletSurface.cs": "2183825bf22f36d40118ea2e78b50c40c8775886",
213
214
  "powershell/resources/psruntime/BuildTime/Cmdlets/ExportExampleStub.cs": "29ffa8a0b71f535d7ec91a42cd40fa0f04bee0bb",
214
- "powershell/resources/psruntime/BuildTime/Cmdlets/ExportFormatPs1xml.cs": "b817c2d770de204e208fbbea3b45b5a819f4102c",
215
+ "powershell/resources/psruntime/BuildTime/Cmdlets/ExportFormatPs1xml.cs": "e974093cbafba7c6190c7c07219f84ed81bad063",
215
216
  "powershell/resources/psruntime/BuildTime/Cmdlets/ExportHelpMarkdown.cs": "c9d970b567a2c0adeaace72bc91d980684897d73",
216
217
  "powershell/resources/psruntime/BuildTime/Cmdlets/ExportModelSurface.cs": "e4af60bd7ad7b57a036474c5aed7c4cab4b1997d",
217
218
  "powershell/resources/psruntime/BuildTime/Cmdlets/ExportProxyCmdlet.cs": "f8be39851da065520712619534c2165a7066c3ed",
@@ -228,8 +229,8 @@
228
229
  "powershell/resources/psruntime/BuildTime/Models/PsMarkdownTypes.cs": "c2c068932d2e4ab31a46d566e7b24f357f68c6f8",
229
230
  "powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs": "6f80f840f4f51b3982d8ea15f0988d585c8c420f",
230
231
  "powershell/resources/psruntime/BuildTime/Models/PsProxyTypes.cs": "beba5f1aa6d9d9431dc180ccad5269df64522a36",
231
- "powershell/resources/psruntime/BuildTime/PsAttributes.cs": "6e9782492bcc53aec43e807ca6c24969771b772b",
232
- "powershell/resources/psruntime/BuildTime/PsExtensions.cs": "a816496e5ec66952ba2f8f3709f665b02e24020a",
232
+ "powershell/resources/psruntime/BuildTime/PsAttributes.cs": "7435d3a1d83bdb34759a1eebb21cf092684656ae",
233
+ "powershell/resources/psruntime/BuildTime/PsExtensions.cs": "52083232ddc161a0f41496cbdf979d709c490194",
233
234
  "powershell/resources/psruntime/BuildTime/PsHelpers.cs": "9958d6426383fc7325c13722d221554467b1fa93",
234
235
  "powershell/resources/psruntime/BuildTime/StringExtensions.cs": "83ef554ac7f477fa9cfdece0c83a9e176e2a8e4c",
235
236
  "powershell/resources/psruntime/BuildTime/XmlExtensions.cs": "abb7ed48b92fa656c204949f9c637def99fac991",
@@ -243,7 +244,7 @@
243
244
  "powershell/resources/psruntime/MessageAttributeHelper.cs": "441007933e8bb6f453475e1892e746e5f5ec4c1d",
244
245
  "powershell/resources/psruntime/Properties/Resources.Designer.cs": "464967e4e7976d7abcf35872c0863dddd360787b",
245
246
  "powershell/resources/psruntime/Properties/Resources.resx": "598cd53e958a816acb5c7aeac7ee15cb6f5916f2",
246
- "powershell/resources/psruntime/TypeConverterExtensions.cs": "e8554392c18cd96740bbef9c03af4089fd1cd176",
247
+ "powershell/resources/psruntime/TypeConverterExtensions.cs": "602599d518674ba4cba13cda445d7485f26a63bc",
247
248
  "powershell/resources/runtime/csharp/client/CmdInfoHandler.cs": "f6fcec8201c4e4d81a4f3af9ef07dfedf634f71d",
248
249
  "powershell/resources/runtime/csharp/client/Context.cs": "82ff28b553ab1f1472fee2c90558631ddce84969",
249
250
  "powershell/resources/runtime/csharp/client/Extensions.cs": "313c3f0f5cdc71a2734fb998165eaa7725dbbbc3",
@@ -302,7 +303,7 @@
302
303
  "powershell/resources/runtime/csharp/json/Nodes/Collections/JsonArray.cs": "eae62a7fcd363567429c8752f7a71d15415f80a2",
303
304
  "powershell/resources/runtime/csharp/json/Nodes/Collections/XImmutableArray.cs": "5097daf6b2492441d60aaa8cd28f2f6e8ef6bef9",
304
305
  "powershell/resources/runtime/csharp/json/Nodes/Collections/XList.cs": "9f83fc3a69efb9137168224b73387837daab05ae",
305
- "powershell/resources/runtime/csharp/json/Nodes/Collections/XNodeArray.cs": "89a63bcd38b846949223532d9acf9f17881088c0",
306
+ "powershell/resources/runtime/csharp/json/Nodes/Collections/XNodeArray.cs": "99c36d481fd06da1460c891af6a0661a477e2de4",
306
307
  "powershell/resources/runtime/csharp/json/Nodes/Collections/XSet.cs": "af0ef81e94f013771e5c1bebc1ad17c90fa91d5e",
307
308
  "powershell/resources/runtime/csharp/json/Nodes/JsonBoolean.cs": "31315381c5e71554c64fa652c53e5656aea40794",
308
309
  "powershell/resources/runtime/csharp/json/Nodes/JsonDate.cs": "81340f2c6d50c70ef8da53c3eaa4c4caad5bca1e",
@@ -341,7 +342,7 @@
341
342
  "powershell/resources/templates/extensions.ejs": "b4423a4a855d1ea936304b5c261e5bcb9527c356",
342
343
  "powershell/resources/templates/longRunningOperationMethod.ejs": "b3e490c5b22611f31319528c7b14592ee1a6f1b6",
343
344
  "powershell/resources/templates/method.ejs": "4682841c209ce4b132b6f35e0dd1099fe1bc8b1f",
344
- "powershell/resources/templates/methodBodyRestCall.ejs": "47f67fc7e802ea2ded8fcddb46a50f57d45cdc1c",
345
+ "powershell/resources/templates/methodBodyRestCall.ejs": "043805b4571e145286578e6261c9091106257e64",
345
346
  "powershell/resources/templates/methodGroupInterface.ejs": "c31b8b1e49af0c8562ea1e2a0a97be6ff8c782d4",
346
347
  "powershell/resources/templates/model.ejs": "daba385fa74b3588b2dda6881c2d5ef5581609ad",
347
348
  "powershell/resources/templates/page.ejs": "657e785359b8255e84e8d81d0cf33340578ff654",
@@ -34,7 +34,7 @@ pipeline-model: v3
34
34
  ``` yaml
35
35
  module-version: 0.1.0
36
36
  skip-model-cmdlets: false
37
- help-link-prefix: https://docs.microsoft.com/en-us/powershell/module/
37
+ help-link-prefix: https://learn.microsoft.com/powershell/module/
38
38
  metadata:
39
39
  authors: ''
40
40
  owners: ''
@@ -34,6 +34,9 @@ export declare class CmdletClass extends Class {
34
34
  constructor(namespace: Namespace, operation: CommandOperation, state: State, objectInitializer?: DeepPartial<CmdletClass>);
35
35
  init(): Promise<this>;
36
36
  get headerComment(): string;
37
+ private AddSwitchViewProperty;
38
+ private FlushResponse;
39
+ private WriteObjectWithViewControl;
37
40
  private addCommonStuff;
38
41
  private NewIsWritableCmdlet;
39
42
  private NewImplementProcessRecord;
@@ -1 +1 @@
1
- {"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../cmdlets/class.ts"],"names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9B"}
@@ -404,6 +404,77 @@ class CmdletClass extends codegen_csharp_1.Class {
404
404
  }
405
405
  return ops ? `${header}\n${codegen_1.docComment(codegen_csharp_1.xmlize('remarks', ops))}` : header;
406
406
  }
407
+ AddSwitchViewProperty(responseType = codegen_csharp_1.dotnet.Object) {
408
+ var fieldNames = this.fields.map(f => f.name);
409
+ if (!fieldNames.includes('_responseSize')) {
410
+ this.add(new codegen_csharp_1.Field('_responseSize', codegen_csharp_1.dotnet.Int, {
411
+ initialValue: '0', description: 'A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. Two means multiple returned objects in response.', access: codegen_csharp_1.Access.Private
412
+ }));
413
+ }
414
+ if (!fieldNames.includes('_firstResponse')) {
415
+ this.add(new codegen_csharp_1.Field('_firstResponse', responseType, {
416
+ initialValue: codegen_csharp_1.dotnet.Null, description: 'A buffer to record first returned object in response.', access: codegen_csharp_1.Access.Private
417
+ }));
418
+ }
419
+ }
420
+ FlushResponse(singleFlush = true) {
421
+ var fieldNames = this.fields.map(f => f.name);
422
+ return fieldNames.includes('_responseSize') ?
423
+ codegen_csharp_1.If(`1 ==_responseSize`, function* () {
424
+ yield '// Flush buffer';
425
+ if (singleFlush) {
426
+ yield 'WriteObject(_firstResponse);';
427
+ }
428
+ else {
429
+ yield 'WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());';
430
+ }
431
+ }) : '';
432
+ }
433
+ ;
434
+ WriteObjectWithViewControl(valueName, isEnumerable = false) {
435
+ const $this = this;
436
+ if ($this.state.project.autoSwitchView) {
437
+ if (isEnumerable) {
438
+ return function* () {
439
+ yield `var outputObjects = ${valueName};`;
440
+ yield codegen_csharp_1.If(`null != outputObjects`, function* () {
441
+ yield codegen_csharp_1.If(`0 == _responseSize && 1 == outputObjects.Count`, function* () {
442
+ yield `_firstResponse = outputObjects[0];`;
443
+ yield `_responseSize = 1;`;
444
+ });
445
+ yield codegen_csharp_1.Else(function* () {
446
+ yield $this.FlushResponse(false);
447
+ yield 'var values = new System.Collections.Generic.List<System.Management.Automation.PSObject>();';
448
+ yield codegen_csharp_1.ForEach(`value`, `outputObjects`, function* () {
449
+ yield `values.Add(value.AddMultipleTypeNameIntoPSObject());`;
450
+ });
451
+ yield 'WriteObject(values, true); ';
452
+ yield `_responseSize = 2;`;
453
+ });
454
+ });
455
+ };
456
+ }
457
+ else {
458
+ return function* () {
459
+ yield `var outputObject = ${valueName};`;
460
+ yield codegen_csharp_1.If(`null != outputObject`, function* () {
461
+ yield codegen_csharp_1.If(`0 == _responseSize`, function* () {
462
+ yield `_firstResponse = outputObject;`;
463
+ yield `_responseSize = 1;`;
464
+ });
465
+ yield codegen_csharp_1.Else(function* () {
466
+ yield $this.FlushResponse(false);
467
+ yield `WriteObject(outputObject.AddMultipleTypeNameIntoPSObject());`;
468
+ yield `_responseSize = 2;`;
469
+ });
470
+ });
471
+ };
472
+ }
473
+ }
474
+ else {
475
+ return `WriteObject(${valueName}, ${isEnumerable})`;
476
+ }
477
+ }
407
478
  addCommonStuff() {
408
479
  var _a, _b;
409
480
  // add a private copy of invocation information for our own uses.
@@ -416,6 +487,10 @@ class CmdletClass extends codegen_csharp_1.Class {
416
487
  this.correlationId = this.add(new codegen_csharp_1.Field('__correlationId', codegen_csharp_1.dotnet.String, { initialValue: 'System.Guid.NewGuid().ToString()', description: 'A unique id generatd for the this cmdlet when it is instantiated.', access: codegen_csharp_1.Access.Private }));
417
488
  this.processRecordId = this.add(new codegen_csharp_1.Field('__processRecordId', codegen_csharp_1.dotnet.String, { description: 'A unique id generatd for the this cmdlet when ProcessRecord() is called.', access: codegen_csharp_1.Access.Private }));
418
489
  }
490
+ // switch view property
491
+ if (this.state.project.autoSwitchView) {
492
+ this.AddSwitchViewProperty(codegen_csharp_1.dotnet.Object);
493
+ }
419
494
  // pipeline property
420
495
  this.add(new codegen_csharp_1.Property('Pipeline', exports_1.ClientRuntime.HttpPipeline, { getAccess: codegen_csharp_1.Access.Public, setAccess: codegen_csharp_1.Access.Public, description: `The instance of the <see cref="${exports_1.ClientRuntime.HttpPipeline}" /> that the remote call will use.` }));
421
496
  // client API property (gs01: fill this in correctly)
@@ -428,7 +503,9 @@ class CmdletClass extends codegen_csharp_1.Class {
428
503
  const $this = this;
429
504
  this.add(new codegen_csharp_1.Method('EndProcessing', codegen_csharp_1.dotnet.Void, { access: codegen_csharp_1.Access.Protected, override: codegen_csharp_1.Modifier.Override, description: 'Performs clean-up after the command execution' })).add(function* () {
430
505
  // gs01: remember what you were doing here to make it so these can be parallelized...
431
- yield '';
506
+ if ($this.state.project.autoSwitchView) {
507
+ yield $this.FlushResponse();
508
+ }
432
509
  });
433
510
  // debugging
434
511
  const brk = this.add(new codegen_csharp_1.Property('Break', powershell_declarations_1.SwitchParameter, { attributes: [], description: 'Wait for .NET debugger to attach' }));
@@ -763,13 +840,13 @@ class CmdletClass extends codegen_csharp_1.Class {
763
840
  yield codegen_csharp_1.Else(function* () {
764
841
  yield ('ulong toRead = Math.Min(this.PagingParameters.First, (ulong)result.Value.Length - this.PagingParameters.Skip);');
765
842
  yield ('var requiredResult = result.Value.SubArray((int)this.PagingParameters.Skip, (int)toRead);');
766
- yield ('WriteObject(requiredResult, true);');
843
+ yield $this.WriteObjectWithViewControl(`requiredResult`, true);
767
844
  yield ('this.PagingParameters.Skip = 0;');
768
845
  yield ('this.PagingParameters.First = this.PagingParameters.First <= toRead ? 0 : this.PagingParameters.First - toRead;');
769
846
  });
770
847
  }
771
848
  else {
772
- yield `WriteObject(${result.value}.${vp.name},true);`;
849
+ yield $this.WriteObjectWithViewControl(`${result.value}.${vp.name}`, true);
773
850
  }
774
851
  }
775
852
  const nl = schema_1.getVirtualPropertyFromPropertyName((_o = schema.language.csharp) === null || _o === void 0 ? void 0 : _o.virtualProperties, nextLinkProperty.serializedName);
@@ -802,7 +879,7 @@ class CmdletClass extends codegen_csharp_1.Class {
802
879
  // it's just a nested array
803
880
  const p = codemodel_v3_1.getVirtualPropertyFromPropertyName((_p = schema.language.csharp) === null || _p === void 0 ? void 0 : _p.virtualProperties, valueProperty.serializedName);
804
881
  if (p) {
805
- yield `WriteObject((await response).${p.name}, true);`;
882
+ yield $this.WriteObjectWithViewControl(`(await response).${p.name}`, true);
806
883
  }
807
884
  return;
808
885
  }
@@ -811,7 +888,7 @@ class CmdletClass extends codegen_csharp_1.Class {
811
888
  // it's just an array,
812
889
  case 'array':
813
890
  // just write-object(enumerate) with the output
814
- yield 'WriteObject(await response, true);';
891
+ yield $this.WriteObjectWithViewControl('(await response)', true);
815
892
  return;
816
893
  }
817
894
  // ok, let's see if the response type
@@ -848,7 +925,7 @@ class CmdletClass extends codegen_csharp_1.Class {
848
925
  return;
849
926
  }
850
927
  // let's just return the result object (or unwrapped result object)
851
- yield `WriteObject(${outValue});`;
928
+ yield $this.WriteObjectWithViewControl(`${outValue}`);
852
929
  return;
853
930
  }
854
931
  // in m4, there will be no schema deinfed for the binary response, instead, we will have a field called binary with value true.
@@ -862,8 +939,8 @@ class CmdletClass extends codegen_csharp_1.Class {
862
939
  yield paths.declarationStatement;
863
940
  yield codegen_csharp_1.Try(function* () {
864
941
  yield `${paths.value} = this.SessionState.Path.GetResolvedProviderPathFromPSPath(${outfile.value}, out ${provider.declarationExpression});`;
865
- yield codegen_csharp_1.If(`${provider.value}.Name != "FileSystem" || ${paths.value}.Count == 0`, `ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid output path."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ${outfile.value}) );`);
866
- yield codegen_csharp_1.If(`${paths.value}.Count > 1`, `ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple output paths not allowed."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ${outfile.value}) );`);
942
+ yield codegen_csharp_1.If(`${provider.value}.Name != "FileSystem" || ${paths.value}.Count == 0`, `ThrowTerminatingError(new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid output path."), string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ${outfile.value}));`);
943
+ yield codegen_csharp_1.If(`${paths.value}.Count > 1`, `ThrowTerminatingError(new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple output paths not allowed."), string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ${outfile.value}));`);
867
944
  });
868
945
  const notfound = new codegen_csharp_1.Parameter('', { declaration: 'global::System.Management.Automation.ItemNotFoundException' });
869
946
  yield codegen_csharp_1.Catch(notfound, function* () {
@@ -940,7 +1017,7 @@ class CmdletClass extends codegen_csharp_1.Class {
940
1017
  value: `InputObject.${codegen_1.pascalCase((_f = (_e = match.language.csharp) === null || _e === void 0 ? void 0 : _e.name) !== null && _f !== void 0 ? _f : '')} ?? ${defaultOfType}`
941
1018
  };
942
1019
  }
943
- console.error(`Unable to match idenity parameter '${each.name}' member to appropriate virtual parameter. (Guessing '${pascalName}')`);
1020
+ console.error(`Unable to match identity parameter '${each.name}' member to appropriate virtual parameter. (Guessing '${pascalName}')`);
944
1021
  return {
945
1022
  name: `InputObject.${pascalName}`,
946
1023
  value: `InputObject.${pascalName}`
@@ -948,7 +1025,7 @@ class CmdletClass extends codegen_csharp_1.Class {
948
1025
  });
949
1026
  for (const opParam of idOpParams) {
950
1027
  if (opParam.name) {
951
- yield codegen_csharp_1.If(codegen_csharp_1.IsNull(opParam.name), `ThrowTerminatingError( new ${powershell_declarations_1.ErrorRecord}(new global::System.Exception("InputObject has null value for ${opParam.name}"),string.Empty, ${powershell_declarations_1.ErrorCategory('InvalidArgument')}, InputObject) );`);
1028
+ yield codegen_csharp_1.If(codegen_csharp_1.IsNull(opParam.name), `ThrowTerminatingError(new ${powershell_declarations_1.ErrorRecord}(new global::System.Exception("InputObject has null value for ${opParam.name}"),string.Empty, ${powershell_declarations_1.ErrorCategory('InvalidArgument')}, InputObject));`);
952
1029
  }
953
1030
  }
954
1031
  yield `await this.${$this.$('Client').invokeMethod(`${(_b = apiCall.language.csharp) === null || _b === void 0 ? void 0 : _b.name}`, ...[...idOpParams.map(each => codegen_csharp_1.toExpression(each.value)), ...callbackMethods, codegen_csharp_1.dotnet.This, pipeline]).implementation}`;
@@ -985,7 +1062,7 @@ class CmdletClass extends codegen_csharp_1.Class {
985
1062
  });
986
1063
  const ure = new codegen_csharp_1.Parameter('urexception', { declaration: `${exports_1.ClientRuntime.fullName}.UndeclaredResponseException` });
987
1064
  yield codegen_csharp_1.Catch(ure, function* () {
988
- yield `WriteError(new global::System.Management.Automation.ErrorRecord(${ure.value}, ${ure.value}.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ${operationParameters.filter(e => codegen_csharp_1.valueOf(e.expression) !== 'null').map(each => `${each.name}=${each.expression}`).join(',')}})
1065
+ yield `WriteError(new global::System.Management.Automation.ErrorRecord(${ure.value}, ${ure.value}.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ${operationParameters.filter(e => codegen_csharp_1.valueOf(e.expression) !== 'null').map(each => `${each.name}=${each.expression}`).join(',')}})
989
1066
  {
990
1067
  ErrorDetails = new global::System.Management.Automation.ErrorDetails(${ure.value}.Message) { RecommendedAction = ${ure.value}.Action }
991
1068
  });`;
@@ -1029,7 +1106,7 @@ class CmdletClass extends codegen_csharp_1.Class {
1029
1106
  }
1030
1107
  implementConstructors() {
1031
1108
  // default constructor
1032
- this.add(new codegen_csharp_1.Constructor(this, { description: `Intializes a new instance of the <see cref="${this.name}" /> cmdlet class.` }));
1109
+ this.add(new codegen_csharp_1.Constructor(this, { description: `Initializes a new instance of the <see cref="${this.name}" /> cmdlet class.` }));
1033
1110
  }
1034
1111
  implementIContext() {
1035
1112
  const extensibleParameters = this.add(new codegen_csharp_1.Field('_extensibleParameters', codegen_csharp_1.System.Collections.Generic.Dictionary(codegen_csharp_1.System.String, codegen_csharp_1.System.Object), {
@@ -1162,12 +1239,12 @@ class CmdletClass extends codegen_csharp_1.Class {
1162
1239
  yield sw;
1163
1240
  if ($this.state.project.azure) {
1164
1241
  // in azure mode, we signal the AzAccount module with every event that makes it here.
1165
- yield `await ${$this.state.project.serviceNamespace.moduleClass.declaration}.Instance.Signal(${id.value}, ${token.value}, ${messageData.value}, (i,t,m) => ((${exports_1.ClientRuntime.IEventListener})this).Signal(i,t,()=> ${exports_1.ClientRuntime.EventDataConverter}.ConvertFrom( m() ) as ${exports_1.ClientRuntime.EventData} ), ${$this.invocationInfo.value}, this.ParameterSetName, ${$this.correlationId.value}, ${$this.processRecordId.value}, null );`;
1242
+ yield `await ${$this.state.project.serviceNamespace.moduleClass.declaration}.Instance.Signal(${id.value}, ${token.value}, ${messageData.value}, (i, t, m) => ((${exports_1.ClientRuntime.IEventListener})this).Signal(i, t, () => ${exports_1.ClientRuntime.EventDataConverter}.ConvertFrom(m()) as ${exports_1.ClientRuntime.EventData}), ${$this.invocationInfo.value}, this.ParameterSetName, ${$this.correlationId.value}, ${$this.processRecordId.value}, null );`;
1166
1243
  yield codegen_csharp_1.If(`${token.value}.IsCancellationRequested`, codegen_csharp_1.Return());
1167
1244
  }
1168
1245
  else {
1169
1246
  // In Non-Azure Modes, emit the Signal method without coorelation and processrecordid
1170
- yield `await ${$this.state.project.serviceNamespace.moduleClass.declaration}.Instance.Signal(${id.value}, ${token.value}, ${messageData.value}, (i,t,m) => ((${exports_1.ClientRuntime.IEventListener})this).Signal(i,t,()=> ${exports_1.ClientRuntime.EventDataConverter}.ConvertFrom( m() ) as ${exports_1.ClientRuntime.EventData} ), ${$this.invocationInfo.value}, this.ParameterSetName, null );`;
1247
+ yield `await ${$this.state.project.serviceNamespace.moduleClass.declaration}.Instance.Signal(${id.value}, ${token.value}, ${messageData.value}, (i, t, m) => ((${exports_1.ClientRuntime.IEventListener})this).Signal(i, t, () => ${exports_1.ClientRuntime.EventDataConverter}.ConvertFrom(m()) as ${exports_1.ClientRuntime.EventData}), ${$this.invocationInfo.value}, this.ParameterSetName, null ); `;
1171
1248
  yield codegen_csharp_1.If(`${token.value}.IsCancellationRequested`, codegen_csharp_1.Return());
1172
1249
  }
1173
1250
  yield `WriteDebug($"{id}: {(messageData().Message ?? ${codegen_csharp_1.System.String.Empty})}");`;
@@ -1238,12 +1315,23 @@ class CmdletClass extends codegen_csharp_1.Class {
1238
1315
  const propertyType = this.state.project.schemaDefinitionResolver.resolveTypeDeclaration(vSchema, true, this.state);
1239
1316
  // we need to know if the actual underlying property is actually nullable.
1240
1317
  const nullable = this.state.project.schemaDefinitionResolver.resolveTypeDeclaration(vSchema, !!vParam.origin.required, this.state).isNullable;
1241
- const cmdletParameter = new codegen_csharp_1.Property(vParam.name, propertyType, {
1242
- get: codegen_csharp_1.toExpression(`${expandedBodyParameter.value}.${model_class_1.getVirtualPropertyName(vParam.origin) || vParam.origin.name}${!nullable ? '' : ` ?? ${propertyType.defaultOfType}`}`),
1243
- // get: toExpression(`null == ${expandedBodyParameter.value}.${vParam.origin.name} ? ${propertyType.defaultOfType} : (${propertyType.declaration}) ${expandedBodyParameter.value}.${vParam.origin.name}`),
1244
- set: codegen_csharp_1.toExpression(`${expandedBodyParameter.value}.${model_class_1.getVirtualPropertyName(vParam.origin) || vParam.origin.name} = value`),
1245
- new: PropertiesRequiringNew.has(vParam.name) ? codegen_csharp_1.Modifier.New : codegen_csharp_1.Modifier.None
1246
- });
1318
+ let cmdletParameter;
1319
+ if (propertyType.schema.type !== codemodel_1.SchemaType.Array) {
1320
+ cmdletParameter = new codegen_csharp_1.Property(vParam.name, propertyType, {
1321
+ get: codegen_csharp_1.toExpression(`${expandedBodyParameter.value}.${model_class_1.getVirtualPropertyName(vParam.origin) || vParam.origin.name}${!nullable ? '' : ` ?? ${propertyType.defaultOfType}`}`),
1322
+ // get: toExpression(`null == ${expandedBodyParameter.value}.${vParam.origin.name} ? ${propertyType.defaultOfType} : (${propertyType.declaration}) ${expandedBodyParameter.value}.${vParam.origin.name}`),
1323
+ set: codegen_csharp_1.toExpression(`${expandedBodyParameter.value}.${model_class_1.getVirtualPropertyName(vParam.origin) || vParam.origin.name} = value`),
1324
+ new: PropertiesRequiringNew.has(vParam.name) ? codegen_csharp_1.Modifier.New : codegen_csharp_1.Modifier.None
1325
+ });
1326
+ }
1327
+ else {
1328
+ const fixedArrayPropertyType = this.state.project.schemaDefinitionResolver.resolveTypeDeclaration(vSchema, true, this.state, true);
1329
+ cmdletParameter = new codegen_csharp_1.Property(vParam.name, fixedArrayPropertyType, {
1330
+ get: codegen_csharp_1.toExpression(`${expandedBodyParameter.value}.${model_class_1.getVirtualPropertyName(vParam.origin) || vParam.origin.name}?.ToArray()${` ?? ${fixedArrayPropertyType.defaultOfType}`}`),
1331
+ set: codegen_csharp_1.toExpression(`${expandedBodyParameter.value}.${model_class_1.getVirtualPropertyName(vParam.origin) || vParam.origin.name} = (value != null ? new ${propertyType.declaration}(value) : null)`),
1332
+ new: PropertiesRequiringNew.has(vParam.name) ? codegen_csharp_1.Modifier.New : codegen_csharp_1.Modifier.None
1333
+ });
1334
+ }
1247
1335
  if ((_b = vParam.schema.language.csharp) === null || _b === void 0 ? void 0 : _b.byReference) {
1248
1336
  // this parameter's schema is marked as 'by-reference' which means we should
1249
1337
  // tag it with an ExportAs attribute for the I*Reference type.
@@ -1582,9 +1670,9 @@ class CmdletClass extends codegen_csharp_1.Class {
1582
1670
  parameters.push(`"${breakingChange.cmdlet.changeInEfectByDate}"`);
1583
1671
  }
1584
1672
  if (breakingChange.cmdlet.replacement)
1585
- parameters.push(`ReplacementCmdletName="${breakingChange.cmdlet.replacement}"`);
1673
+ parameters.push(`ReplacementCmdletName = "${breakingChange.cmdlet.replacement}"`);
1586
1674
  if (breakingChange.cmdlet.changeDescription)
1587
- parameters.push(`ChangeDescription="${breakingChange.cmdlet.changeDescription}"`);
1675
+ parameters.push(`ChangeDescription = "${breakingChange.cmdlet.changeDescription}"`);
1588
1676
  this.add(new codegen_csharp_1.Attribute(exports_1.ClientRuntime.CmdletBreakingChangeAttribute, { parameters: parameters }));
1589
1677
  }
1590
1678
  if (breakingChange.variant) {
@@ -1596,7 +1684,7 @@ class CmdletClass extends codegen_csharp_1.Class {
1596
1684
  parameters.push(`"${breakingChange.variant.changeInEfectByDate}"`);
1597
1685
  }
1598
1686
  if (breakingChange.variant.changeDescription)
1599
- parameters.push(`ChangeDescription="${breakingChange.variant.changeDescription}"`);
1687
+ parameters.push(`ChangeDescription = "${breakingChange.variant.changeDescription}"`);
1600
1688
  this.add(new codegen_csharp_1.Attribute(exports_1.ClientRuntime.ParameterSetBreakingChangeAttribute, { parameters: parameters }));
1601
1689
  }
1602
1690
  if (breakingChange.output) {
@@ -1614,19 +1702,19 @@ class CmdletClass extends codegen_csharp_1.Class {
1614
1702
  parameters.push(`"${breakingChange.output.changeInEfectByDate}"`);
1615
1703
  }
1616
1704
  if (breakingChange.output.replacement)
1617
- parameters.push(`ReplacementCmdletOutputType="${breakingChange.output.replacement}"`);
1705
+ parameters.push(`ReplacementCmdletOutputType = "${breakingChange.output.replacement}"`);
1618
1706
  if (breakingChange.output.deprecatedOutputProperties) {
1619
1707
  const properties = Object.assign([], breakingChange.output.deprecatedOutputProperties);
1620
1708
  properties.forEach((element, index) => properties[index] = '"' + element + '"');
1621
- parameters.push(`DeprecatedOutputProperties=new string[] {${properties.join(',')}}`);
1709
+ parameters.push(`DeprecatedOutputProperties = new string[] {${properties.join(',')}}`);
1622
1710
  }
1623
1711
  if (breakingChange.output.newOutputProperties) {
1624
1712
  const properties = Object.assign([], breakingChange.output.newOutputProperties);
1625
1713
  properties.forEach((element, index) => properties[index] = '"' + element + '"');
1626
- parameters.push(`NewOutputProperties=new string[] {${properties.join(',')}}`);
1714
+ parameters.push(`NewOutputProperties = new string[] {${properties.join(',')} } `);
1627
1715
  }
1628
1716
  if (breakingChange.output.changeDescription)
1629
- parameters.push(`ChangeDescription="${breakingChange.output.changeDescription}"`);
1717
+ parameters.push(`ChangeDescription = "${breakingChange.output.changeDescription}"`);
1630
1718
  this.add(new codegen_csharp_1.Attribute(exports_1.ClientRuntime.OutputBreakingChangeAttribute, { parameters: parameters }));
1631
1719
  }
1632
1720
  }