@autorest/powershell 4.0.636 → 4.0.639

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "nonCachedDurationMs": 12072.04720999999
2
+ "nonCachedDurationMs": 11730.844645000005
3
3
  }
@@ -4,10 +4,10 @@
4
4
  "powershell/.eslintrc.yaml": "7fee80e080ad3c75ef9ebc99625635eb47f6c345",
5
5
  "powershell/.npmignore": "33986ae1f99f00e14a6a7872e41f0860a44bf33f",
6
6
  "powershell/LICENSE": "21071075c24599ee98254f702bcfc504cdc275a6",
7
- "powershell/autorest-configuration-for-sdk.md": "77a6639e47fd822d67ed1a15b5381c91dafab89e",
7
+ "powershell/autorest-configuration-for-sdk.md": "d6bd98068a88d8f9cb41b8a731cfea21d0787e4e",
8
8
  "powershell/autorest-configuration.md": "3a47bf36e4b80be07ddfd20d77fabf82aacfd77f",
9
9
  "powershell/changelog.md": "438e32cc7c4d86e08e32c2fd4085928c0e70b1b9",
10
- "powershell/cmdlets/class.ts": "2d45f70309d2b59b5728efdcf31372b806408797",
10
+ "powershell/cmdlets/class.ts": "fe6a2f9c3ce1030f4b5f5b22a7e079ec6a078265",
11
11
  "powershell/cmdlets/namespace.ts": "70f1260b97aa3fcb92db47d7d75b70b74bdfc197",
12
12
  "powershell/cmdlets/parameter.ts": "7c67fea43eded2c358ad802306dde505c8d0e30f",
13
13
  "powershell/enums/namespace.ts": "1206b2c779837a0660b314059e312a472a145c87",
@@ -71,16 +71,16 @@
71
71
  "powershell/llcsharp/schema/string.ts": "d8508369f8bc1e0748c0737d254f105f9495a655",
72
72
  "powershell/llcsharp/schema/uri.ts": "29680c6bf8db7bcdc8ce2e389ae2c7f9efaed2ac",
73
73
  "powershell/llcsharp/validations.ts": "0a86cb8934b4536461efbce10de737075c599866",
74
- "powershell/main.ts": "bdfeff2ca5946156a8c308e0e541d69f5d67811c",
74
+ "powershell/main.ts": "0eacdbffe3e1179a7e66ce79e9e3882855b42f0a",
75
75
  "powershell/models/model-extensions.ts": "f0c617b9bfb04b4424a853e1b1eecba9059ba788",
76
76
  "powershell/module/module-class.ts": "327af665b5d81e4cc1b8fa9da7382e9c73300de5",
77
77
  "powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
78
- "powershell/package.json": "28029361132896a47ba1e750f9f9939e3656b1e7",
78
+ "powershell/package.json": "091ddc8ce1bf7013e9c9182d5faec1d48a7d0c48",
79
79
  "powershell/plugins/add-azure-completers-v2.ts": "3b1ddf7a067dbac2f07561fb3f6cbf1b66e555aa",
80
80
  "powershell/plugins/create-commands-v2.ts": "915b737aad5f455a9cd0aa4e08034349a2de8ea0",
81
81
  "powershell/plugins/cs-namer-v2.ts": "1b64031416f18b604950012b5683758adefce535",
82
82
  "powershell/plugins/llcsharp-v2.ts": "eab78c2dc3927bdc0af22e11c3a267d2acb1b857",
83
- "powershell/plugins/modifiers-v2.ts": "53b5366cc5626d043db2ba540d8a05dee98e9364",
83
+ "powershell/plugins/modifiers-v2.ts": "8423baf0e2c28b049a4c4c2ae99bff0df70c2b5f",
84
84
  "powershell/plugins/plugin-create-inline-properties.ts": "2a0d903935eddd8c45f41aec3f0631de5e772d26",
85
85
  "powershell/plugins/plugin-tweak-m4-model.ts": "9a36e7ca4708e2c2ec2ea204aa16b48beab6d9c4",
86
86
  "powershell/plugins/plugin-tweak-model-azure-v2.ts": "1c639a94942e0a64d7f8c2a1700a7b32f8743eae",
@@ -91,7 +91,7 @@
91
91
  "powershell/plugins/sdk-cs-namer.ts": "a0673dfc433b4ef5300a6085bee16de94be18912",
92
92
  "powershell/plugins/sdk-cs-simplifier.ts": "fcd053343a163f715b20c1271671b17f97babfe1",
93
93
  "powershell/plugins/sdk-generate.ts": "496507224d55354e17d71a29d63f01dfd4b03ce2",
94
- "powershell/plugins/sdk-modifiers.ts": "0b87e6591f02733d15b97912adde206ddfbbdd37",
94
+ "powershell/plugins/sdk-modifiers.ts": "e64c3cd68efff29b63a0c00502b8efab4868c6b7",
95
95
  "powershell/plugins/sdk-tweak-model.ts": "d1af92a9fc52899af5b3a5c1bf2a80408d7d5f1a",
96
96
  "powershell/readme.md": "eeb191589b240161a10502f6d21e35b23f9bc805",
97
97
  "powershell/resources/assets/build-module.ps1": "c26357176385948d5bc05d821bedcce28ae38d8c",
@@ -228,7 +228,7 @@
228
228
  "powershell/resources/psruntime/BuildTime/Models/PsHelpMarkdownOutputs.cs": "056be554968d76667c0659d169f674ef5dbb74ed",
229
229
  "powershell/resources/psruntime/BuildTime/Models/PsHelpTypes.cs": "34d832146757eab7d8e1bd3feba5d411577f388a",
230
230
  "powershell/resources/psruntime/BuildTime/Models/PsMarkdownTypes.cs": "c2c068932d2e4ab31a46d566e7b24f357f68c6f8",
231
- "powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs": "2d09fbfdb5905d117054ee3bcbfc932c2c6fd88f",
231
+ "powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs": "2fd840fa84d7849014ad1449c1d041fcdd60927c",
232
232
  "powershell/resources/psruntime/BuildTime/Models/PsProxyTypes.cs": "7dda8178ef7773527484483abd6a4e43bc4ff5a8",
233
233
  "powershell/resources/psruntime/BuildTime/PsAttributes.cs": "06d994f77ab1052048edccf0d2b6ba7e6021ce0a",
234
234
  "powershell/resources/psruntime/BuildTime/PsExtensions.cs": "52083232ddc161a0f41496cbdf979d709c490194",
@@ -241,10 +241,10 @@
241
241
  "powershell/resources/psruntime/EventsExtensions.cs": "5e48b435c0a6c99a65ad95d650ffde11f9efe35e",
242
242
  "powershell/resources/psruntime/HttpPipeline.cs": "4516bef63e05634d04b5f06bdfaa90f372781756",
243
243
  "powershell/resources/psruntime/HttpPipelineMocking.ps1": "52f55ab1356870378ebb305f2e517cfd394b2156",
244
- "powershell/resources/psruntime/MessageAttribute.cs": "2a7baf097b676615896342eb0339484eb7be73cc",
245
- "powershell/resources/psruntime/MessageAttributeHelper.cs": "3040aa9b37ae5d4dbbed55706ac88eb167325545",
246
- "powershell/resources/psruntime/Properties/Resources.Designer.cs": "b9e73259e34ad75149253882d56ba51e72c1761f",
247
- "powershell/resources/psruntime/Properties/Resources.resx": "613700a3a41836510dcec3b9140dd94ab45559e9",
244
+ "powershell/resources/psruntime/MessageAttribute.cs": "16a5ffafe7ad5c0c613caf799ec58ad5572622b6",
245
+ "powershell/resources/psruntime/MessageAttributeHelper.cs": "2efbd0e1a8a9a3b95030b307ac2879c0fd35fe29",
246
+ "powershell/resources/psruntime/Properties/Resources.Designer.cs": "ac7efe778055c411b87b0d633841491d9e350140",
247
+ "powershell/resources/psruntime/Properties/Resources.resx": "a08a2e50172b2515e33f003f7981b55bd46ff74d",
248
248
  "powershell/resources/psruntime/TypeConverterExtensions.cs": "602599d518674ba4cba13cda445d7485f26a63bc",
249
249
  "powershell/resources/runtime/csharp/client/CmdInfoHandler.cs": "f6fcec8201c4e4d81a4f3af9ef07dfedf634f71d",
250
250
  "powershell/resources/runtime/csharp/client/Context.cs": "82ff28b553ab1f1472fee2c90558631ddce84969",
@@ -343,7 +343,7 @@
343
343
  "powershell/resources/templates/extensions.ejs": "b4423a4a855d1ea936304b5c261e5bcb9527c356",
344
344
  "powershell/resources/templates/longRunningOperationMethod.ejs": "0855dbf8175dfc3e7ece0e9a0fe11af003b9d56c",
345
345
  "powershell/resources/templates/method.ejs": "69f517f288a762dde1e2f618daa40f624e03ae9a",
346
- "powershell/resources/templates/methodBodyRestCall.ejs": "6303633686451fdc9a2c37a66300c65acff63f63",
346
+ "powershell/resources/templates/methodBodyRestCall.ejs": "f70d9dd000ef6cd33ce4c05b370fecf11b54159b",
347
347
  "powershell/resources/templates/methodGroupInterface.ejs": "62bfa9b452c6cce5b23bde3ca46a4df65c1a3753",
348
348
  "powershell/resources/templates/model.ejs": "2ebf9803e8576bf59b9787984456c3a73a00475e",
349
349
  "powershell/resources/templates/page.ejs": "657e785359b8255e84e8d81d0cf33340578ff654",
@@ -63,9 +63,12 @@ pipeline:
63
63
  createSdkInlinedPropertiesPlugin:
64
64
  input: modelerfour/identity
65
65
 
66
- csnamerSdk:
66
+ applyModelNameModifiersSdk:
67
67
  input: createSdkInlinedPropertiesPlugin
68
68
 
69
+ csnamerSdk:
70
+ input: applyModelNameModifiersSdk
71
+
69
72
  applyModifiersSdk:
70
73
  input: csnamerSdk
71
74
 
@@ -10,7 +10,7 @@ export declare function NewAddCompleterInfo(targetProperty: Property, parameter:
10
10
  export declare function isEnumImplementation(schema: NewSchema | undefined): boolean;
11
11
  export declare function addPSArgumentCompleterAttribute(targetProperty: Property, parameterSchema: any): void;
12
12
  export declare function addParameterBreakingChange(targetProperty: Property, parameter: any): void;
13
- export declare function addPreviewMessage(targetProperty: Property, parameter: any): void;
13
+ export declare function addParameterPreviewMessage(targetProperty: Property, parameter: any): void;
14
14
  export declare function addDefaultInfo(targetProperty: Property, parameter: any): void;
15
15
  export declare function addInfoAttribute(targetProperty: Property, pType: TypeDeclaration, isRequired: boolean, isReadOnly: boolean, description: string, serializedName: string): void;
16
16
  export declare function NewAddInfoAttribute(targetProperty: Property, pType: TypeDeclaration, isRequired: boolean, isReadOnly: boolean, description: string, serializedName: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../cmdlets/class.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAiK,MAAM,qBAAqB,CAAC;AACzN,OAAO,EAA4J,gBAAgB,EAAmB,MAAM,2BAA2B,CAAC;AACxO,OAAO,EAAE,gBAAgB,EAAmC,gBAAgB,IAAI,mBAAmB,EAAe,MAAM,4BAA4B,CAAC;AAErJ,OAAO,EAAmD,WAAW,EAAa,MAAM,sBAAsB,CAAC;AAE/G,OAAO,EACqC,KAAK,EAAwC,UAAU,EAA4F,SAAS,EAAkC,QAAQ,EAC/K,KAAK,EAAgE,eAAe,EACtJ,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,KAAK,EAAE,MAA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E,gBAAgB,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC;IA8BnH,IAAI;IAsGV,IAAW,aAAa,IAAI,MAAM,CA4BjC;IAED,OAAO,CAAC,qBAAqB;IAc7B,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,0BAA0B;IA0ClC,OAAO,CAAC,cAAc;IAiFtB,OAAO,CAAC,yBAAyB;IAoFjC,OAAO,CAAC,8BAA8B;IA4GtC,OAAO,CAAG,aAAa;IAmLvB,OAAO,CAAC,gBAAgB;IA+BxB,OAAO,CAAC,0BAA0B;IAwRlC,OAAO,CAAC,yBAAyB;IAoCjC,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,uBAAuB;IAiJ/B,OAAO,CAAC,0BAA0B;IAiVlC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,qBAAqB;CA0M9B"}
@@ -4,7 +4,7 @@
4
4
  * Licensed under the MIT License. See License.txt in the project root for license information.
5
5
  *--------------------------------------------------------------------------------------------*/
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.CmdletClass = exports.NewAddInfoAttribute = exports.addInfoAttribute = exports.addDefaultInfo = exports.addPreviewMessage = exports.addParameterBreakingChange = exports.addPSArgumentCompleterAttribute = exports.isEnumImplementation = exports.NewAddCompleterInfo = exports.addCompleterInfo = exports.createStepper = void 0;
7
+ exports.CmdletClass = exports.NewAddInfoAttribute = exports.addInfoAttribute = exports.addDefaultInfo = exports.addParameterPreviewMessage = exports.addParameterBreakingChange = exports.addPSArgumentCompleterAttribute = exports.isEnumImplementation = exports.NewAddCompleterInfo = exports.addCompleterInfo = exports.createStepper = void 0;
8
8
  const ejs = require('ejs');
9
9
  const codemodel_1 = require("@autorest/codemodel");
10
10
  const codemodel_v3_1 = require("@azure-tools/codemodel-v3");
@@ -205,12 +205,16 @@ function addParameterBreakingChange(targetProperty, parameter) {
205
205
  }
206
206
  }
207
207
  exports.addParameterBreakingChange = addParameterBreakingChange;
208
- function addPreviewMessage(targetProperty, parameter) {
209
- if (parameter.previewMessage) {
210
- targetProperty.add(new codegen_csharp_1.Attribute(exports_1.ClientRuntime.PreviewMessageAttribute, { parameters: [`"${parameter.previewMessage}"`] }));
208
+ function addParameterPreviewMessage(targetProperty, parameter) {
209
+ if (parameter.previewAnnouncement) {
210
+ const parameters = [];
211
+ parameters.push(`"${parameter.previewAnnouncement.previewMessage}"`);
212
+ if (parameter.previewAnnouncement.estimatedGaDate)
213
+ parameters.push(`"${parameter.previewAnnouncement.estimatedGaDate}"`);
214
+ targetProperty.add(new codegen_csharp_1.Attribute(exports_1.ClientRuntime.PreviewMessageAttribute, { parameters: parameters }));
211
215
  }
212
216
  }
213
- exports.addPreviewMessage = addPreviewMessage;
217
+ exports.addParameterPreviewMessage = addParameterPreviewMessage;
214
218
  function addDefaultInfo(targetProperty, parameter) {
215
219
  if (parameter.defaultInfo && parameter.defaultInfo.script) {
216
220
  targetProperty.add(new codegen_csharp_1.Attribute(exports_1.ClientRuntime.DefaultInfoAttribute, {
@@ -1555,7 +1559,7 @@ class CmdletClass extends codegen_csharp_1.Class {
1555
1559
  NewAddInfoAttribute(cmdletParameter, propertyType, !!vParam.required, false, desc, vParam.origin.property.serializedName);
1556
1560
  NewAddCompleterInfo(cmdletParameter, vParam);
1557
1561
  addParameterBreakingChange(cmdletParameter, vParam);
1558
- addPreviewMessage(cmdletParameter, vParam);
1562
+ addParameterPreviewMessage(cmdletParameter, vParam);
1559
1563
  addDefaultInfo(cmdletParameter, vParam);
1560
1564
  this.addDoNotExport(cmdletParameter, vParam);
1561
1565
  }
@@ -1679,7 +1683,7 @@ class CmdletClass extends codegen_csharp_1.Class {
1679
1683
  }
1680
1684
  NewAddCompleterInfo(regularCmdletParameter, vParam);
1681
1685
  addParameterBreakingChange(regularCmdletParameter, vParam);
1682
- addPreviewMessage(regularCmdletParameter, vParam);
1686
+ addParameterPreviewMessage(regularCmdletParameter, vParam);
1683
1687
  addDefaultInfo(regularCmdletParameter, vParam);
1684
1688
  this.addDoNotExport(regularCmdletParameter, vParam);
1685
1689
  // add aliases if there is any
@@ -1885,8 +1889,12 @@ class CmdletClass extends codegen_csharp_1.Class {
1885
1889
  }
1886
1890
  }
1887
1891
  //add preview message attribute for cmdlet
1888
- if (operation.details.csharp.previewMessage) {
1889
- this.add(new codegen_csharp_1.Attribute(exports_1.ClientRuntime.PreviewMessageAttribute, { parameters: [`"${operation.details.csharp.previewMessage}"`] }));
1892
+ if (operation.details.csharp.previewAnnouncement) {
1893
+ const parameters = [];
1894
+ parameters.push(`"${operation.details.csharp.previewAnnouncement.previewMessage}"`);
1895
+ if (operation.details.csharp.previewAnnouncement.estimatedGaDate)
1896
+ parameters.push(`"${operation.details.csharp.previewAnnouncement.estimatedGaDate}"`);
1897
+ this.add(new codegen_csharp_1.Attribute(exports_1.ClientRuntime.PreviewMessageAttribute, { parameters: parameters }));
1890
1898
  }
1891
1899
  this.add(new codegen_csharp_1.Attribute(powershell_declarations_1.OutputTypeAttribute, { parameters: [...outputTypes] }));
1892
1900
  if (shouldAddPassThru) {