Skip to content

Commit 58eb658

Browse files
Ptnan7Jingnan Xu
andauthored
{CDN}Add Edge action support (#28720)
Co-authored-by: Jingnan Xu <[email protected]>
1 parent 8d5727f commit 58eb658

File tree

164 files changed

+27125
-11615
lines changed

Some content is hidden

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

164 files changed

+27125
-11615
lines changed

src/Cdn/Cdn.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Cdn")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("5.0.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("5.0.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("5.0.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("5.0.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/Cdn/Cdn.Autorest/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ input-file:
3434
# You need to specify your swagger files here.
3535
- $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/stable/2025-04-15/afdx.json
3636
- $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/stable/2025-04-15/cdn.json
37+
- $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/preview/2024-07-22-preview/edgeaction.json
3738
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
3839
# - (this-folder)/relative-path-to-your-swagger
3940

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "edgeActions/executionFilters",
3+
"apiVersion": "2024-07-22-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzCdnEdgeActionExecutionFilter",
10+
"description": "Get EdgeActionExecutionFilter resource",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.cdn/get-azcdnedgeactionexecutionfilter"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-EdgeActionName <String>",
20+
"-ExecutionFilter <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Get EdgeActionExecutionFilter resource",
30+
"parameters": [
31+
{
32+
"name": "-EdgeActionName",
33+
"value": "[Path.edgeActionName]"
34+
},
35+
{
36+
"name": "-ExecutionFilter",
37+
"value": "[Path.executionFilter]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Remove-AzCdnEdgeActionExecutionFilter",
53+
"description": "Delete EdgeActionExecutionFilter resource",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.cdn/remove-azcdnedgeactionexecutionfilter"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-EdgeActionName <String>",
63+
"-ExecutionFilter <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Delete EdgeActionExecutionFilter resource",
73+
"parameters": [
74+
{
75+
"name": "-EdgeActionName",
76+
"value": "[Path.edgeActionName]"
77+
},
78+
{
79+
"name": "-ExecutionFilter",
80+
"value": "[Path.executionFilter]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
]
95+
}
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
{
2+
"resourceType": "edgeActions/versions",
3+
"apiVersion": "2024-07-22-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzCdnEdgeActionVersionCode",
10+
"description": "A long-running operation to get versioncode deployed to EdgeActionVersion resource.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}/getVersionCode",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.cdn/get-azcdnedgeactionversioncode"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-EdgeActionName <String>",
20+
"-ResourceGroupName <String>",
21+
"[-SubscriptionId <String[]>]",
22+
"-Version <String>"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "A long-running operation to get versioncode deployed to EdgeActionVersion resource.",
30+
"parameters": [
31+
{
32+
"name": "-EdgeActionName",
33+
"value": "[Path.edgeActionName]"
34+
},
35+
{
36+
"name": "-ResourceGroupName",
37+
"value": "[Path.resourceGroupName]"
38+
},
39+
{
40+
"name": "-SubscriptionId",
41+
"value": "[Path.subscriptionId]"
42+
},
43+
{
44+
"name": "-Version",
45+
"value": "[Path.version]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Get-AzCdnEdgeActionVersion",
53+
"description": "Get EdgeActionVersion resource",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.cdn/get-azcdnedgeactionversion"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-EdgeActionName <String>",
63+
"-ResourceGroupName <String>",
64+
"[-SubscriptionId <String[]>]",
65+
"-Version <String>"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Get EdgeActionVersion resource",
73+
"parameters": [
74+
{
75+
"name": "-EdgeActionName",
76+
"value": "[Path.edgeActionName]"
77+
},
78+
{
79+
"name": "-ResourceGroupName",
80+
"value": "[Path.resourceGroupName]"
81+
},
82+
{
83+
"name": "-SubscriptionId",
84+
"value": "[Path.subscriptionId]"
85+
},
86+
{
87+
"name": "-Version",
88+
"value": "[Path.version]"
89+
}
90+
]
91+
}
92+
]
93+
},
94+
{
95+
"name": "Remove-AzCdnEdgeActionVersion",
96+
"description": "Delete EdgeActionVersion resource",
97+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}",
98+
"help": {
99+
"learnMore": {
100+
"url": "https://learn.microsoft.com/powershell/module/az.cdn/remove-azcdnedgeactionversion"
101+
},
102+
"parameterSets": [
103+
{
104+
"parameters": [
105+
"-EdgeActionName <String>",
106+
"-ResourceGroupName <String>",
107+
"[-SubscriptionId <String>]",
108+
"-Version <String>"
109+
]
110+
}
111+
]
112+
},
113+
"examples": [
114+
{
115+
"description": "Delete EdgeActionVersion resource",
116+
"parameters": [
117+
{
118+
"name": "-EdgeActionName",
119+
"value": "[Path.edgeActionName]"
120+
},
121+
{
122+
"name": "-ResourceGroupName",
123+
"value": "[Path.resourceGroupName]"
124+
},
125+
{
126+
"name": "-SubscriptionId",
127+
"value": "[Path.subscriptionId]"
128+
},
129+
{
130+
"name": "-Version",
131+
"value": "[Path.version]"
132+
}
133+
]
134+
}
135+
]
136+
}
137+
]
138+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"resourceType": "edgeActions",
3+
"apiVersion": "2024-07-22-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzCdnEdgeAction",
10+
"description": "Get EdgeAction resource",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.cdn/get-azcdnedgeaction"
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 EdgeAction resource",
29+
"parameters": [
30+
{
31+
"name": "-Name",
32+
"value": "[Path.edgeActionName]"
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-AzCdnEdgeAction",
48+
"description": "Delete EdgeAction resource",
49+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}",
50+
"help": {
51+
"learnMore": {
52+
"url": "https://learn.microsoft.com/powershell/module/az.cdn/remove-azcdnedgeaction"
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 EdgeAction resource",
67+
"parameters": [
68+
{
69+
"name": "-Name",
70+
"value": "[Path.edgeActionName]"
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+
}

0 commit comments

Comments
 (0)