Skip to content

Commit 20c9408

Browse files
Refresh autorest-selected modules from wyunchi/generation/pipeline-refresh-autorest to main (#24684)
1 parent 3474865 commit 20c9408

File tree

1,731 files changed

+74247
-9891
lines changed

Some content is hidden

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

1,731 files changed

+74247
-9891
lines changed

src/CustomLocation/CustomLocation.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,9 +1592,9 @@ end {
15921592

15931593
<#
15941594
.Synopsis
1595-
Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
1595+
Update a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
15961596
.Description
1597-
Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
1597+
Update a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
15981598
.Example
15991599
$MatchExpressions = New-AzCustomLocationMatchExpressionsObject -Key "key4" -Operator "In" -Value "value4"
16001600
Update-AzCustomLocationResourceSyncRule -Name azps-resourcesyncrule -ResourceGroupName azps_test_cluster -CustomLocationName azps-customlocation -Priority 999 -SelectorMatchExpression $MatchExpressions -SelectorMatchLabel @{"Key1"="Value1"} -TargetResourceGroup "/subscriptions/{subId}/resourceGroups/azps_test_cluster" -Tag @{"abc"="123"}

src/CustomLocation/CustomLocation.Autorest/exports/Update-AzCustomLocationResourceSyncRule.ps1

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

1717
<#
1818
.Synopsis
19-
Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
19+
Update a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
2020
.Description
21-
Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
21+
Update a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
2222
.Example
2323
$MatchExpressions = New-AzCustomLocationMatchExpressionsObject -Key "key4" -Operator "In" -Value "value4"
2424
Update-AzCustomLocationResourceSyncRule -Name azps-resourcesyncrule -ResourceGroupName azps_test_cluster -CustomLocationName azps-customlocation -Priority 999 -SelectorMatchExpression $MatchExpressions -SelectorMatchLabel @{"Key1"="Value1"} -TargetResourceGroup "/subscriptions/{subId}/resourceGroups/azps_test_cluster" -Tag @{"abc"="123"}

src/CustomLocation/CustomLocation.Autorest/generated/api/CustomLocation.cs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CustomLocation
1414
public partial class CustomLocation
1515
{
1616

17-
/// <summary>Create a Custom Location in the specified Subscription and Resource Group</summary>
17+
/// <summary>Update a Custom Location in the specified Subscription and Resource Group</summary>
1818
/// <param name="subscriptionId">The ID of the target subscription.</param>
1919
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
2020
/// <param name="resourceName">Custom Locations name.</param>
@@ -63,7 +63,7 @@ public partial class CustomLocation
6363
}
6464
}
6565

66-
/// <summary>Create a Custom Location in the specified Subscription and Resource Group</summary>
66+
/// <summary>Update a Custom Location in the specified Subscription and Resource Group</summary>
6767
/// <param name="viaIdentity"></param>
6868
/// <param name="body">Parameters supplied to create or update a Custom Location.</param>
6969
/// <param name="onOk">a delegate that is called when the remote service returns 200 (OK).</param>
@@ -122,7 +122,7 @@ public partial class CustomLocation
122122
}
123123
}
124124

125-
/// <summary>Create a Custom Location in the specified Subscription and Resource Group</summary>
125+
/// <summary>Update a Custom Location in the specified Subscription and Resource Group</summary>
126126
/// <param name="viaIdentity"></param>
127127
/// <param name="body">Parameters supplied to create or update a Custom Location.</param>
128128
/// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.IEventListener" /> instance that will receive events.</param>
@@ -179,7 +179,7 @@ public partial class CustomLocation
179179
}
180180
}
181181

182-
/// <summary>Create a Custom Location in the specified Subscription and Resource Group</summary>
182+
/// <summary>Update a Custom Location in the specified Subscription and Resource Group</summary>
183183
/// <param name="subscriptionId">The ID of the target subscription.</param>
184184
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
185185
/// <param name="resourceName">Custom Locations name.</param>
@@ -227,7 +227,7 @@ public partial class CustomLocation
227227
}
228228
}
229229

230-
/// <summary>Create a Custom Location in the specified Subscription and Resource Group</summary>
230+
/// <summary>Update a Custom Location in the specified Subscription and Resource Group</summary>
231231
/// <param name="subscriptionId">The ID of the target subscription.</param>
232232
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
233233
/// <param name="resourceName">Custom Locations name.</param>
@@ -273,7 +273,7 @@ public partial class CustomLocation
273273
}
274274
}
275275

276-
/// <summary>Create a Custom Location in the specified Subscription and Resource Group</summary>
276+
/// <summary>Update a Custom Location in the specified Subscription and Resource Group</summary>
277277
/// <param name="subscriptionId">The ID of the target subscription.</param>
278278
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
279279
/// <param name="resourceName">Custom Locations name.</param>
@@ -2985,7 +2985,7 @@ public partial class CustomLocation
29852985
}
29862986

29872987
/// <summary>
2988-
/// Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
2988+
/// Update a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
29892989
/// </summary>
29902990
/// <param name="subscriptionId">The ID of the target subscription.</param>
29912991
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -3036,7 +3036,7 @@ public partial class CustomLocation
30363036
}
30373037

30383038
/// <summary>
3039-
/// Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
3039+
/// Update a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
30403040
/// </summary>
30413041
/// <param name="viaIdentity"></param>
30423042
/// <param name="body">The updatable fields of an existing Custom Location.</param>
@@ -3097,7 +3097,7 @@ public partial class CustomLocation
30973097
}
30983098

30993099
/// <summary>
3100-
/// Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
3100+
/// Update a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
31013101
/// </summary>
31023102
/// <param name="viaIdentity"></param>
31033103
/// <param name="body">The updatable fields of an existing Custom Location.</param>
@@ -3156,7 +3156,7 @@ public partial class CustomLocation
31563156
}
31573157

31583158
/// <summary>
3159-
/// Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
3159+
/// Update a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
31603160
/// </summary>
31613161
/// <param name="subscriptionId">The ID of the target subscription.</param>
31623162
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -3206,7 +3206,7 @@ public partial class CustomLocation
32063206
}
32073207

32083208
/// <summary>
3209-
/// Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
3209+
/// Update a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
32103210
/// </summary>
32113211
/// <param name="subscriptionId">The ID of the target subscription.</param>
32123212
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -3254,7 +3254,7 @@ public partial class CustomLocation
32543254
}
32553255

32563256
/// <summary>
3257-
/// Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
3257+
/// Update a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
32583258
/// </summary>
32593259
/// <param name="subscriptionId">The ID of the target subscription.</param>
32603260
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -3443,7 +3443,7 @@ public partial class CustomLocation
34433443
}
34443444

34453445
/// <summary>
3446-
/// Create a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
3446+
/// Update a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
34473447
/// </summary>
34483448
/// <param name="subscriptionId">The ID of the target subscription.</param>
34493449
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -3497,7 +3497,7 @@ public partial class CustomLocation
34973497
}
34983498

34993499
/// <summary>
3500-
/// Create a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
3500+
/// Update a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
35013501
/// </summary>
35023502
/// <param name="viaIdentity"></param>
35033503
/// <param name="body">Parameters supplied to create or update a Resource Sync Rule.</param>
@@ -3561,7 +3561,7 @@ public partial class CustomLocation
35613561
}
35623562

35633563
/// <summary>
3564-
/// Create a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
3564+
/// Update a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
35653565
/// </summary>
35663566
/// <param name="viaIdentity"></param>
35673567
/// <param name="body">Parameters supplied to create or update a Resource Sync Rule.</param>
@@ -3623,7 +3623,7 @@ public partial class CustomLocation
36233623
}
36243624

36253625
/// <summary>
3626-
/// Create a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
3626+
/// Update a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
36273627
/// </summary>
36283628
/// <param name="subscriptionId">The ID of the target subscription.</param>
36293629
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -3676,7 +3676,7 @@ public partial class CustomLocation
36763676
}
36773677

36783678
/// <summary>
3679-
/// Create a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
3679+
/// Update a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
36803680
/// </summary>
36813681
/// <param name="subscriptionId">The ID of the target subscription.</param>
36823682
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -3727,7 +3727,7 @@ public partial class CustomLocation
37273727
}
37283728

37293729
/// <summary>
3730-
/// Create a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
3730+
/// Update a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group
37313731
/// </summary>
37323732
/// <param name="subscriptionId">The ID of the target subscription.</param>
37333733
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -5000,8 +5000,8 @@ public partial class CustomLocation
50005000
}
50015001

50025002
/// <summary>
5003-
/// Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription
5004-
/// and Custom Location name.
5003+
/// Update a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and
5004+
/// Custom Location name.
50055005
/// </summary>
50065006
/// <param name="subscriptionId">The ID of the target subscription.</param>
50075007
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -5055,8 +5055,8 @@ public partial class CustomLocation
50555055
}
50565056

50575057
/// <summary>
5058-
/// Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription
5059-
/// and Custom Location name.
5058+
/// Update a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and
5059+
/// Custom Location name.
50605060
/// </summary>
50615061
/// <param name="viaIdentity"></param>
50625062
/// <param name="body">The updatable fields of an existing Resource Sync Rule.</param>
@@ -5120,8 +5120,8 @@ public partial class CustomLocation
51205120
}
51215121

51225122
/// <summary>
5123-
/// Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription
5124-
/// and Custom Location name.
5123+
/// Update a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and
5124+
/// Custom Location name.
51255125
/// </summary>
51265126
/// <param name="viaIdentity"></param>
51275127
/// <param name="body">The updatable fields of an existing Resource Sync Rule.</param>
@@ -5183,8 +5183,8 @@ public partial class CustomLocation
51835183
}
51845184

51855185
/// <summary>
5186-
/// Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription
5187-
/// and Custom Location name.
5186+
/// Update a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and
5187+
/// Custom Location name.
51885188
/// </summary>
51895189
/// <param name="subscriptionId">The ID of the target subscription.</param>
51905190
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -5237,8 +5237,8 @@ public partial class CustomLocation
52375237
}
52385238

52395239
/// <summary>
5240-
/// Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription
5241-
/// and Custom Location name.
5240+
/// Update a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and
5241+
/// Custom Location name.
52425242
/// </summary>
52435243
/// <param name="subscriptionId">The ID of the target subscription.</param>
52445244
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
@@ -5289,8 +5289,8 @@ public partial class CustomLocation
52895289
}
52905290

52915291
/// <summary>
5292-
/// Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription
5293-
/// and Custom Location name.
5292+
/// Update a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and
5293+
/// Custom Location name.
52945294
/// </summary>
52955295
/// <param name="subscriptionId">The ID of the target subscription.</param>
52965296
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>

src/CustomLocation/CustomLocation.Autorest/generated/cmdlets/FindAzCustomLocationTargetResourceGroup_FindExpanded.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,19 @@ protected override void EndProcessing()
252252
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
253253
if (telemetryInfo != null)
254254
{
255+
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
255256
telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties);
256257
telemetryInfo.TryGetValue("InvocationName", out var invocationName);
257-
if (!string.IsNullOrEmpty(sanitizedProperties))
258+
if (showSecretsWarning == "true")
258259
{
259-
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");
260+
if (string.IsNullOrEmpty(sanitizedProperties))
261+
{
262+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
263+
}
264+
else
265+
{
266+
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");
267+
}
260268
}
261269
}
262270
}

src/CustomLocation/CustomLocation.Autorest/generated/cmdlets/FindAzCustomLocationTargetResourceGroup_FindViaIdentityExpanded.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,19 @@ protected override void EndProcessing()
213213
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
214214
if (telemetryInfo != null)
215215
{
216+
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
216217
telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties);
217218
telemetryInfo.TryGetValue("InvocationName", out var invocationName);
218-
if (!string.IsNullOrEmpty(sanitizedProperties))
219+
if (showSecretsWarning == "true")
219220
{
220-
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");
221+
if (string.IsNullOrEmpty(sanitizedProperties))
222+
{
223+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
224+
}
225+
else
226+
{
227+
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");
228+
}
221229
}
222230
}
223231
}

src/CustomLocation/CustomLocation.Autorest/generated/cmdlets/FindAzCustomLocationTargetResourceGroup_FindViaJsonFilePath.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,19 @@ protected override void EndProcessing()
253253
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
254254
if (telemetryInfo != null)
255255
{
256+
telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning);
256257
telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties);
257258
telemetryInfo.TryGetValue("InvocationName", out var invocationName);
258-
if (!string.IsNullOrEmpty(sanitizedProperties))
259+
if (showSecretsWarning == "true")
259260
{
260-
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");
261+
if (string.IsNullOrEmpty(sanitizedProperties))
262+
{
263+
WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844");
264+
}
265+
else
266+
{
267+
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");
268+
}
261269
}
262270
}
263271
}

0 commit comments

Comments
 (0)