@autorest/powershell 4.0.641 → 4.0.643

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": 9234.216124000028
2
+ "nonCachedDurationMs": 9609.074495000008
3
3
  }
@@ -75,7 +75,7 @@
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": "361434689be76d3c8bac52985284580a999f1f4d",
78
+ "powershell/package.json": "fbb372ad174894a2dbdc58a6264d07094939263f",
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",
@@ -336,7 +336,7 @@
336
336
  "powershell/resources/signing/MSSharedLibKey.snk": "695f1b38774e839e5b90059bfb7f32df1dff4223",
337
337
  "powershell/resources/templates/azureMethod.ejs": "0775d58b9a22a4df8fc3591d886608dfd1118340",
338
338
  "powershell/resources/templates/azureMethodGroup.ejs": "513b65001fb860185a3a185361ae535355a7b1b3",
339
- "powershell/resources/templates/azureServiceClient.ejs": "a0a6fbb12d56da7e98fe1417111ff75f893cce3d",
339
+ "powershell/resources/templates/azureServiceClient.ejs": "bf2a7e99eae741c57069b156160798b08458ed09",
340
340
  "powershell/resources/templates/enum.ejs": "cf3d2020750fcef6092f2f8e572e4dda12e967ef",
341
341
  "powershell/resources/templates/exception.ejs": "beadbc77e1d586aa3400c00f245f11bf60f7a204",
342
342
  "powershell/resources/templates/extensionMethod.ejs": "e8a69bb4892a2c020150b92afe0d8631ffe6a81d",
@@ -348,8 +348,8 @@
348
348
  "powershell/resources/templates/methodGroupInterfaceBody.ejs": "73ad0b0fe8544cc2f9766cbc26c212aca0876a88",
349
349
  "powershell/resources/templates/model.ejs": "2ebf9803e8576bf59b9787984456c3a73a00475e",
350
350
  "powershell/resources/templates/page.ejs": "657e785359b8255e84e8d81d0cf33340578ff654",
351
- "powershell/resources/templates/serviceClientBody.ejs": "dc74fc9e1c5566861ffd35638e8e59ed3792fcdd",
352
- "powershell/resources/templates/serviceClientInterface.ejs": "29dc411a0bbe82bc8b1a787d757eceb7ada8a1e6",
351
+ "powershell/resources/templates/serviceClientBody.ejs": "8f62e7726f7bf10a62d849a2841eb44552a432ba",
352
+ "powershell/resources/templates/serviceClientInterface.ejs": "5f3fa02ca39ad8553305b970ff22d95a2790aaaf",
353
353
  "powershell/resources/utils/Unprotect-SecureString.ps1": "cb05b51a6220840d617a439a947a359f8685a05d",
354
354
  "powershell/sdk/project.ts": "063b21d84e9acf5fd5da69f710cb7f0c9ce18b1a",
355
355
  "powershell/sdk/state.ts": "841874bde0a6b674660f812e68b68c7e2b13a47f",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/powershell",
3
- "version": "4.0.641",
3
+ "version": "4.0.643",
4
4
  "description": "AutoRest PowerShell Cmdlet Generator",
5
5
  "main": "dist/exports.js",
6
6
  "typings": "dist/exports.d.ts",
@@ -28,7 +28,7 @@ namespace <%- project.namespace %>
28
28
  /// </summary>
29
29
  private void Initialize()
30
30
  {
31
- <% project.model.operationGroups.forEach(function(methodGroup){ -%>
31
+ <% project.model.operationGroups.filter(methodGroup => methodGroup.$key != '').forEach(function(methodGroup){ -%>
32
32
  <% var key = methodGroup.$key == 'Operations' ? '' : methodGroup.$key-%>
33
33
  this.<%- project.helper.PascalCase(methodGroup.$key) %> = new <%- project.helper.PascalCase(key) %>Operations(this);
34
34
  <% }); -%>
@@ -74,6 +74,7 @@ namespace <%- project.namespace %>
74
74
  DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter());
75
75
  <% } -%>
76
76
  DeserializationSettings.Converters.Add(new Microsoft.Rest.Azure.CloudErrorJsonConverter());
77
+ }
77
78
  <%# ToDo: Add method whose group is empty, and need to check in which case the group is empty.-%>
78
79
  <% var methodGroupWithoutKey = (project.state.model.operationGroups || []).filter(op => op.$key == '')
79
80
  if (methodGroupWithoutKey.length > 0) {
@@ -82,6 +83,5 @@ if (methodGroupWithoutKey.length > 0) {
82
83
  -%>
83
84
  <%- include('azureMethod', {method: method, clientPrefix: ''}) -%>
84
85
  <% });} -%>
85
- }
86
86
  }
87
87
  }
@@ -23,7 +23,7 @@
23
23
  public <%- type %> <%- parameter.language.default.name%> { get; set;}
24
24
  <% }%>
25
25
  <%});-%>
26
- <% project.model.operationGroups.forEach(function(methodGroup){ -%>
26
+ <% project.model.operationGroups.filter(methodGroup => methodGroup.$key != '').forEach(function(methodGroup){ -%>
27
27
  <% var key = methodGroup.$key == 'Operations' ? '' : methodGroup.$key-%>
28
28
  /// <summary>
29
29
  /// Gets the I<%- project.helper.PascalCase(key) %>Operations
@@ -42,7 +42,7 @@ namespace <%- project.namespace %>
42
42
  <% }%>
43
43
 
44
44
  <% }); -%>
45
- <% project.model.operationGroups.forEach(function(methodGroup){ -%>
45
+ <% project.model.operationGroups.filter(methodGroup => methodGroup.$key != '').forEach(function(methodGroup){ -%>
46
46
  <% var key = methodGroup.$key == 'Operations' ? '' : methodGroup.$key-%>
47
47
  /// <summary>
48
48
  /// Gets the I<%- project.helper.PascalCase(key) %>Operations