Skip to content

Commit 396a6ec

Browse files
Refresh autorest-selected modules from StackHCIVM to WindowsIotServices (#24690)
* Refresh autorest-selected modules from wyunchi/generation/pipeline-refresh-autorest to main * Skip static analysis for example issues --------- Co-authored-by: Vincent Dai <[email protected]>
1 parent 20c9408 commit 396a6ec

File tree

2,355 files changed

+89521
-19557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,355 files changed

+89521
-19557
lines changed

src/StackHCIVM/StackHCIVM.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -792,9 +792,9 @@ end {
792792

793793
<#
794794
.Synopsis
795-
The operation to update a logical network.
795+
The operation to Update a logical network.
796796
.Description
797-
The operation to update a logical network.
797+
The operation to Update a logical network.
798798
.Example
799799
Update-AzStackHCIVMLogicalNetwork -Name "testLnet" -ResourceGroupName "test-rg" -Tag @{"tagname" = "tagvalue"}
800800
@@ -1053,9 +1053,9 @@ end {
10531053

10541054
<#
10551055
.Synopsis
1056-
The operation to update a network interface.
1056+
The operation to Update a network interface.
10571057
.Description
1058-
The operation to update a network interface.
1058+
The operation to Update a network interface.
10591059
.Example
10601060
Update-AzStackHCIVMNetworkInterface -Name "testNic" -ResourceGroupName "test-rg" -Tag @{"tagname" = "tagvalue"}
10611061
@@ -1314,9 +1314,9 @@ end {
13141314

13151315
<#
13161316
.Synopsis
1317-
The operation to update a storage container.
1317+
The operation to Update a storage container.
13181318
.Description
1319-
The operation to update a storage container.
1319+
The operation to Update a storage container.
13201320
.Example
13211321
Update-AzStackHCIVMStoragePath -Name "testVhd" -ResourceGroupName "test-rg" -Tag @{"tagname" = "tagvalue"}
13221322
@@ -1575,9 +1575,9 @@ end {
15751575

15761576
<#
15771577
.Synopsis
1578-
The operation to update a virtual hard disk.
1578+
The operation to Update a virtual hard disk.
15791579
.Description
1580-
The operation to update a virtual hard disk.
1580+
The operation to Update a virtual hard disk.
15811581
.Example
15821582
Update-AzStackHCIVMVirtualHardDisk -Name "testVhd" -ResourceGroupName "test-rg" -Tag @{"tagname" = "tagvalue"}
15831583

src/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMLogicalNetwork.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
The operation to update a logical network.
19+
The operation to Update a logical network.
2020
.Description
21-
The operation to update a logical network.
21+
The operation to Update a logical network.
2222
.Example
2323
Update-AzStackHCIVMLogicalNetwork -Name "testLnet" -ResourceGroupName "test-rg" -Tag @{"tagname" = "tagvalue"}
2424

src/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMNetworkInterface.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
The operation to update a network interface.
19+
The operation to Update a network interface.
2020
.Description
21-
The operation to update a network interface.
21+
The operation to Update a network interface.
2222
.Example
2323
Update-AzStackHCIVMNetworkInterface -Name "testNic" -ResourceGroupName "test-rg" -Tag @{"tagname" = "tagvalue"}
2424

src/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMStoragePath.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
The operation to update a storage container.
19+
The operation to Update a storage container.
2020
.Description
21-
The operation to update a storage container.
21+
The operation to Update a storage container.
2222
.Example
2323
Update-AzStackHCIVMStoragePath -Name "testVhd" -ResourceGroupName "test-rg" -Tag @{"tagname" = "tagvalue"}
2424

src/StackHCIVM/StackHCIVM.Autorest/exports/Update-AzStackHCIVMVirtualHardDisk.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
The operation to update a virtual hard disk.
19+
The operation to Update a virtual hard disk.
2020
.Description
21-
The operation to update a virtual hard disk.
21+
The operation to Update a virtual hard disk.
2222
.Example
2323
Update-AzStackHCIVMVirtualHardDisk -Name "testVhd" -ResourceGroupName "test-rg" -Tag @{"tagname" = "tagvalue"}
2424

src/StackHCIVM/StackHCIVM.Autorest/generated/api/StackHcivm.cs

Lines changed: 102 additions & 102 deletions
Large diffs are not rendered by default.

src/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/GetAzStackHCIVMAgentVersion_Get.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,19 @@ protected override void EndProcessing()
201201
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
202202
if (telemetryInfo != null)
203203
{
204+
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
204205
telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties);
205206
telemetryInfo.TryGetValue("InvocationName", out var invocationName);
206-
if (!string.IsNullOrEmpty(sanitizedProperties))
207+
if (showSecretsWarning == "true")
207208
{
208-
WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
209+
if (string.IsNullOrEmpty(sanitizedProperties))
210+
{
211+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
212+
}
213+
else
214+
{
215+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
216+
}
209217
}
210218
}
211219
}

src/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/GetAzStackHCIVMAgentVersion_GetViaIdentityOSType.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,19 @@ protected override void EndProcessing()
195195
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
196196
if (telemetryInfo != null)
197197
{
198+
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
198199
telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties);
199200
telemetryInfo.TryGetValue("InvocationName", out var invocationName);
200-
if (!string.IsNullOrEmpty(sanitizedProperties))
201+
if (showSecretsWarning == "true")
201202
{
202-
WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
203+
if (string.IsNullOrEmpty(sanitizedProperties))
204+
{
205+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
206+
}
207+
else
208+
{
209+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
210+
}
203211
}
204212
}
205213
}

src/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/GetAzStackHCIVMAgentVersion_List.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,19 @@ protected override void EndProcessing()
191191
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
192192
if (telemetryInfo != null)
193193
{
194+
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
194195
telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties);
195196
telemetryInfo.TryGetValue("InvocationName", out var invocationName);
196-
if (!string.IsNullOrEmpty(sanitizedProperties))
197+
if (showSecretsWarning == "true")
197198
{
198-
WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
199+
if (string.IsNullOrEmpty(sanitizedProperties))
200+
{
201+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
202+
}
203+
else
204+
{
205+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
206+
}
199207
}
200208
}
201209
}

src/StackHCIVM/StackHCIVM.Autorest/generated/cmdlets/GetAzStackHCIVMExtensionMetadata_Get.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,19 @@ protected override void EndProcessing()
248248
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
249249
if (telemetryInfo != null)
250250
{
251+
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
251252
telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties);
252253
telemetryInfo.TryGetValue("InvocationName", out var invocationName);
253-
if (!string.IsNullOrEmpty(sanitizedProperties))
254+
if (showSecretsWarning == "true")
254255
{
255-
WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
256+
if (string.IsNullOrEmpty(sanitizedProperties))
257+
{
258+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
259+
}
260+
else
261+
{
262+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
263+
}
256264
}
257265
}
258266
}

0 commit comments

Comments
 (0)