Skip to content

Commit bc19033

Browse files
committed
Update custom code
1 parent e25d43f commit bc19033

23 files changed

+566
-876
lines changed

src/LoadTesting/LoadTesting.Autorest/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@
2424
[assembly: System.Reflection.AssemblyVersionAttribute("1.1.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
27-

src/LoadTesting/LoadTesting.Autorest/README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ inlining-threshold: 200
4040

4141
directive:
4242
- where:
43-
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$
43+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
44+
remove: true
45+
46+
- where:
47+
variant: ^CreateViaIdentityExpanded$|^UpdateViaIdentityExpanded$|^GetViaIdentity$|^DeleteViaIdentity$
4448
remove: true
4549

4650
# https://stackoverflow.microsoft.com/questions/333196
@@ -73,7 +77,7 @@ directive:
7377
- where:
7478
parameter-name: IdentityUserAssignedIdentity
7579
set:
76-
parameter-name: IdentityUserAssigned
80+
parameter-name: UserAssignedIdentity
7781

7882
# Renaming encryption key parameter
7983
- where:
@@ -253,14 +257,4 @@ directive:
253257
subject: Load
254258
variant: ^UpdateExpanded$
255259
hide: true
256-
257-
- where:
258-
verb: Get
259-
subject: Load
260-
hide: true
261-
262-
- where:
263-
verb: Remove
264-
subject: Load
265-
hide: true
266260
```
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"resourceType": "loadTests",
3+
"apiVersion": "2022-12-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.loadtesting"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzLoad",
10+
"description": "Get a LoadTest resource.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.loadtesting/get-azload"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-Name <String>",
20+
"-ResourceGroupName <String>",
21+
"[-SubscriptionId <String[]>]"
22+
]
23+
}
24+
]
25+
},
26+
"examples": [
27+
{
28+
"description": "Get a LoadTest resource.",
29+
"parameters": [
30+
{
31+
"name": "-Name",
32+
"value": "[Path.loadTestName]"
33+
},
34+
{
35+
"name": "-ResourceGroupName",
36+
"value": "[Path.resourceGroupName]"
37+
},
38+
{
39+
"name": "-SubscriptionId",
40+
"value": "[Path.subscriptionId]"
41+
}
42+
]
43+
}
44+
]
45+
},
46+
{
47+
"name": "Remove-AzLoad",
48+
"description": "Delete a LoadTest resource.",
49+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
50+
"help": {
51+
"learnMore": {
52+
"url": "https://learn.microsoft.com/powershell/module/az.loadtesting/remove-azload"
53+
},
54+
"parameterSets": [
55+
{
56+
"parameters": [
57+
"-Name <String>",
58+
"-ResourceGroupName <String>",
59+
"[-SubscriptionId <String>]"
60+
]
61+
}
62+
]
63+
},
64+
"examples": [
65+
{
66+
"description": "Delete a LoadTest resource.",
67+
"parameters": [
68+
{
69+
"name": "-Name",
70+
"value": "[Path.loadTestName]"
71+
},
72+
{
73+
"name": "-ResourceGroupName",
74+
"value": "[Path.resourceGroupName]"
75+
},
76+
{
77+
"name": "-SubscriptionId",
78+
"value": "[Path.subscriptionId]"
79+
}
80+
]
81+
}
82+
]
83+
}
84+
]
85+
}

src/LoadTesting/LoadTesting.Autorest/custom/Get-AzLoad.ps1

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)