@autorest/powershell 4.0.740 → 4.0.742

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.
@@ -77,7 +77,7 @@
77
77
  "powershell/models/model-extensions.ts": "2b3c129d070b0a30b01d32eb8998043c30b1bd7d",
78
78
  "powershell/module/module-class.ts": "ffef6105f5566125c72dc525dd33ed0ddd05b910",
79
79
  "powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
80
- "powershell/package.json": "76c84072612b2ba2a6abe190b023e359b0484b1a",
80
+ "powershell/package.json": "a17b4c592e528ba8c074842f3497fa45afcd813b",
81
81
  "powershell/plugins/add-azure-completers-v2.ts": "46e91eb274a6a863315be8c0d5c9d84597654bce",
82
82
  "powershell/plugins/create-commands-v2.ts": "b4788ac66e3c21959b38f69a78d275991f90b660",
83
83
  "powershell/plugins/cs-namer-v2.ts": "f16981643ae24355e937ea717e33508e46dd2da2",
@@ -117,7 +117,7 @@
117
117
  "powershell/resources/assets/test/loadEnv.ps1": "079c89ae2f53e8f9be1489838594b6bc0c555602",
118
118
  "powershell/resources/assets/tools/Resources/.gitattributes": "2125666142eb661091cc5f32af2ed2f3fc65571d",
119
119
  "powershell/resources/assets/tools/Resources/.gitignore": "8b93ac424812ec6872783420ed87e82d10f2242b",
120
- "powershell/resources/assets/tools/Resources/README.md": "cdaf3a995a725177a11845056d23cfd14e2bb5c2",
120
+ "powershell/resources/assets/tools/Resources/README.md": "d28996846ef07de91f99c6dce964c8399422101c",
121
121
  "powershell/resources/assets/tools/Resources/custom/New-AzDeployment.ps1": "84228dd80a19b772f314d51d88fa53a409b753d3",
122
122
  "powershell/resources/assets/tools/Resources/docs/README.md": "3b56cb561c1faa09c38cd1cce8553110175f0400",
123
123
  "powershell/resources/assets/tools/Resources/examples/README.md": "ac871d71fc727e571a0eec3e0b02c21b045be88f",
@@ -242,10 +242,10 @@
242
242
  "powershell/resources/psruntime/EventsExtensions.cs": "5e48b435c0a6c99a65ad95d650ffde11f9efe35e",
243
243
  "powershell/resources/psruntime/HttpPipeline.cs": "4516bef63e05634d04b5f06bdfaa90f372781756",
244
244
  "powershell/resources/psruntime/HttpPipelineMocking.ps1": "52f55ab1356870378ebb305f2e517cfd394b2156",
245
- "powershell/resources/psruntime/MessageAttribute.cs": "16a5ffafe7ad5c0c613caf799ec58ad5572622b6",
245
+ "powershell/resources/psruntime/MessageAttribute.cs": "e48d2538e92a0f002ef126f677b3108ec2f571ad",
246
246
  "powershell/resources/psruntime/MessageAttributeHelper.cs": "2efbd0e1a8a9a3b95030b307ac2879c0fd35fe29",
247
247
  "powershell/resources/psruntime/Properties/Resources.Designer.cs": "ac7efe778055c411b87b0d633841491d9e350140",
248
- "powershell/resources/psruntime/Properties/Resources.resx": "a08a2e50172b2515e33f003f7981b55bd46ff74d",
248
+ "powershell/resources/psruntime/Properties/Resources.resx": "4ef90b70573def55db4edb67adc7e68640723674",
249
249
  "powershell/resources/psruntime/TypeConverterExtensions.cs": "602599d518674ba4cba13cda445d7485f26a63bc",
250
250
  "powershell/resources/runtime/csharp/client/CmdInfoHandler.cs": "f6fcec8201c4e4d81a4f3af9ef07dfedf634f71d",
251
251
  "powershell/resources/runtime/csharp/client/Context.cs": "82ff28b553ab1f1472fee2c90558631ddce84969",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/powershell",
3
- "version": "4.0.740",
3
+ "version": "4.0.742",
4
4
  "description": "AutoRest PowerShell Cmdlet Generator",
5
5
  "main": "dist/exports.js",
6
6
  "typings": "dist/exports.d.ts",
@@ -71,7 +71,7 @@ clear-output-folder: true
71
71
 
72
72
  ``` yaml
73
73
  input-file:
74
- - $(repo)/specification/resources/resource-manager/Microsoft.Resources/stable/2018-05-01/resources.json
74
+ - https://github.com/Azure/azure-rest-api-specs/blob/d55f30f41f04e712de101fc9c17a591ca410bfed/specification/resources/resource-manager/Microsoft.Resources/stable/2018-05-01/resources.json
75
75
  module-name: Az.Resources.TestSupport
76
76
  namespace: Microsoft.Azure.PowerShell.Cmdlets.Resources
77
77
 
@@ -16,9 +16,12 @@ namespace Microsoft.Message.ClientRuntime
16
16
  public class GenericBreakingChangeAttribute : Attribute
17
17
  {
18
18
  private string _message;
19
- //A dexcription of what the change is about, non mandatory
19
+ //A description of what the change is about, non mandatory
20
20
  public string ChangeDescription { get; set; } = null;
21
21
 
22
+ //Name of the module that is being deprecated
23
+ public string moduleName { get; set; } = String.IsNullOrEmpty(@"${$project.rootModuleName}") ? @"${$project.moduleName}" : @"${$project.rootModuleName}";
24
+
22
25
  //The version the change is effective from, non mandatory
23
26
  public string DeprecateByVersion { get; }
24
27
  public string DeprecateByAzVersion { get; }
@@ -82,7 +85,7 @@ namespace Microsoft.Message.ClientRuntime
82
85
  }
83
86
 
84
87
  writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion));
85
- writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion));
88
+ writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion));
86
89
 
87
90
  if (OldWay != null && NewWay != null)
88
91
  {
@@ -191,11 +194,11 @@ namespace Microsoft.Message.ClientRuntime
191
194
  this.IsEstimatedGaDateSet = true;
192
195
  }
193
196
  }
194
-
197
+
195
198
  public void PrintCustomAttributeInfo(Action<string> writeOutput)
196
199
  {
197
200
  writeOutput(this._message);
198
-
201
+
199
202
  if (IsEstimatedGaDateSet)
200
203
  {
201
204
  writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString()));
@@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can
1705
1705
  </data>
1706
1706
  <data name="BreakingChangesAttributesInEffectByVersion" xml:space="preserve">
1707
1707
  <value>
1708
- - The change is expected to take effect from version : '{0}'</value>
1708
+ - The change is expected to take effect in '{0}' from version : '{1}'</value>
1709
1709
  </data>
1710
1710
  <data name="BreakingChangesAttributesUsageChangeMessage" xml:space="preserve">
1711
1711
  <value>```powershell