Skip to content

Commit 180715f

Browse files
authored
Merge pull request #840 from Ptnan7/main
{CDN}add version compare
2 parents 29ddcf8 + e124739 commit 180715f

16 files changed

Lines changed: 2763 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _cdn profile deployment-version approve_
2+
3+
Approve the deployment of the version
4+
5+
## Versions
6+
7+
### [2025-05-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vZGVwbG95bWVudHZlcnNpb25zL3t9L2FwcHJvdmU=/2025-05-01-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/deploymentversions/{}/approve 2025-05-01-preview -->
10+
11+
#### examples
12+
13+
- DeploymentVersions_Approve
14+
```bash
15+
cdn profile deployment-version approve --resource-group RG --profile-name profile1 --version-name dv1
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _cdn profile deployment-version compare_
2+
3+
Compare the deployment version to another deployment version
4+
5+
## Versions
6+
7+
### [2025-05-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vZGVwbG95bWVudHZlcnNpb25zL3t9L2NvbXBhcmU=/2025-05-01-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/deploymentversions/{}/compare 2025-05-01-preview -->
10+
11+
#### examples
12+
13+
- DeploymentVersions_Compare
14+
```bash
15+
cdn profile deployment-version compare --resource-group RG --profile-name profile1 --version-name dv1 --compare-to VersionName2
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _cdn profile deployment-version list_
2+
3+
List existing deployment versions by profile
4+
5+
## Versions
6+
7+
### [2025-05-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vZGVwbG95bWVudHZlcnNpb25z/2025-05-01-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/deploymentversions 2025-05-01-preview -->
10+
11+
#### examples
12+
13+
- DeploymentVersions_ListByProfile
14+
```bash
15+
cdn profile deployment-version list --resource-group RG --profile-name profile1
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _cdn profile deployment-version show_
2+
3+
Get an existing DeploymentVersion with the specified version name under the specified subscription, resource group and profile.
4+
5+
## Versions
6+
7+
### [2025-05-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vZGVwbG95bWVudHZlcnNpb25zL3t9/2025-05-01-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/deploymentversions/{} 2025-05-01-preview -->
10+
11+
#### examples
12+
13+
- DeploymentVersions_Get
14+
```bash
15+
cdn profile deployment-version show --resource-group RG --profile-name profile1 --version-name dv1
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _cdn profile deployment-version update_
2+
3+
Update an existing DeploymentVersion within a profile.
4+
5+
## Versions
6+
7+
### [2025-05-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vZGVwbG95bWVudHZlcnNpb25zL3t9/2025-05-01-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/deploymentversions/{} 2025-05-01-preview -->
10+
11+
#### examples
12+
13+
- DeploymentVersions_Update
14+
```bash
15+
cdn profile deployment-version update --resource-group RG --profile-name profile1 --version-name dv1 --description "test deployment"
16+
```
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# [Group] _cdn profile deployment-version_
2+
3+
Manage Deployment Version
4+
5+
## Commands
6+
7+
- [approve](/Commands/cdn/profile/deployment-version/_approve.md)
8+
: Approve the deployment of the version
9+
10+
- [compare](/Commands/cdn/profile/deployment-version/_compare.md)
11+
: Compare the deployment version to another deployment version
12+
13+
- [list](/Commands/cdn/profile/deployment-version/_list.md)
14+
: List existing deployment versions by profile
15+
16+
- [show](/Commands/cdn/profile/deployment-version/_show.md)
17+
: Get an existing DeploymentVersion with the specified version name under the specified subscription, resource group and profile.
18+
19+
- [update](/Commands/cdn/profile/deployment-version/_update.md)
20+
: Update an existing DeploymentVersion within a profile.

Commands/cdn/profile/readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# [Group] _cdn profile_
2+
3+
Manage Profile
4+
5+
## Subgroups
6+
7+
- [deployment-version](/Commands/cdn/profile/deployment-version/readme.md)
8+
: Manage Deployment Version

Commands/cdn/readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Manage Azure Content Delivery Networks (CDNs).
1919
- [origin-group](/Commands/cdn/origin-group/readme.md)
2020
: Manage origin groups of an endpoint.
2121

22+
- [profile](/Commands/cdn/profile/readme.md)
23+
: Manage Profile
24+
2225
- [profile-migration](/Commands/cdn/profile-migration/readme.md)
2326
: Classic cdn profile migration operations
2427

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/deploymentversions", "version": "2025-05-01-preview", "swagger": "mgmt-plane/cdn/ResourceProviders/Microsoft.Cdn/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2RuL3Byb2ZpbGVzL3twcm9maWxlTmFtZX0vZGVwbG95bWVudFZlcnNpb25z/V/MjAyNS0wNS0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "cdn profile deployment-version", "commands": [{"name": "list", "version": "2025-05-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/deploymentversions", "version": "2025-05-01-preview", "swagger": "mgmt-plane/cdn/ResourceProviders/Microsoft.Cdn/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2RuL3Byb2ZpbGVzL3twcm9maWxlTmFtZX0vZGVwbG95bWVudFZlcnNpb25z/V/MjAyNS0wNS0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.profileName", "options": ["profile-name"], "required": true, "idPart": "name", "help": {"short": "Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group."}, "format": {"pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", "maxLength": 260, "minLength": 1}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "DeploymentVersions_ListByProfile", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/deploymentVersions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "profileName", "arg": "$Path.profileName", "required": true, "format": {"pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", "maxLength": 260, "minLength": 1}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-05-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"readOnly": true, "type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Cdn/profiles/{}/deploymentVersions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "string", "name": "approvalStatus", "enum": {"items": [{"value": "Approved"}, {"value": "NotApproved"}]}}, {"readOnly": true, "type": "dateTime", "name": "approvedAt"}, {"readOnly": true, "type": "dateTime", "name": "createdAt"}, {"readOnly": true, "type": "string", "name": "deploymentStatus", "enum": {"items": [{"value": "Failed"}, {"value": "InProgress"}, {"value": "NotStarted"}, {"value": "Succeeded"}]}}, {"type": "string", "name": "description"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"readOnly": true, "type": "object", "name": "stages", "props": [{"readOnly": true, "type": "string", "name": "preview", "enum": {"items": [{"value": "Failed"}, {"value": "InProgress"}, {"value": "NotStarted"}, {"value": "Succeeded"}]}}, {"readOnly": true, "type": "string", "name": "production", "enum": {"items": [{"value": "Failed"}, {"value": "InProgress"}, {"value": "NotStarted"}, {"value": "Succeeded"}]}}]}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<CodeGen plane="mgmt-plane">
3+
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/deploymentversions" version="2025-05-01-preview" swagger="mgmt-plane/cdn/ResourceProviders/Microsoft.Cdn/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2RuL3Byb2ZpbGVzL3twcm9maWxlTmFtZX0vZGVwbG95bWVudFZlcnNpb25z/V/MjAyNS0wNS0wMS1wcmV2aWV3"/>
4+
<commandGroup name="cdn profile deployment-version">
5+
<command name="list" version="2025-05-01-preview">
6+
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/deploymentversions" version="2025-05-01-preview" swagger="mgmt-plane/cdn/ResourceProviders/Microsoft.Cdn/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2RuL3Byb2ZpbGVzL3twcm9maWxlTmFtZX0vZGVwbG95bWVudFZlcnNpb25z/V/MjAyNS0wNS0wMS1wcmV2aWV3"/>
7+
<argGroup name="">
8+
<arg type="string" var="$Path.profileName" options="profile-name" required="True" idPart="name">
9+
<help short="Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group."/>
10+
<format pattern="^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$" maxLength="260" minLength="1"/>
11+
</arg>
12+
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
13+
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
14+
</argGroup>
15+
<operation operationId="DeploymentVersions_ListByProfile">
16+
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/deploymentVersions">
17+
<request method="get">
18+
<path>
19+
<param type="string" name="profileName" arg="$Path.profileName" required="True">
20+
<format pattern="^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$" maxLength="260" minLength="1"/>
21+
</param>
22+
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
23+
<format maxLength="90" minLength="1"/>
24+
</param>
25+
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
26+
</path>
27+
<query>
28+
<const readOnly="True" const="True" type="string" name="api-version" required="True">
29+
<default value="&quot;2025-05-01-preview&quot;"/>
30+
<format minLength="1"/>
31+
</const>
32+
</query>
33+
</request>
34+
<response statusCode="200">
35+
<body>
36+
<json var="$Instance">
37+
<schema type="object">
38+
<prop type="string" name="nextLink"/>
39+
<prop readOnly="True" type="array<object>" name="value">
40+
<item type="object">
41+
<prop readOnly="True" type="ResourceId" name="id">
42+
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Cdn/profiles/{}/deploymentVersions/{}"/>
43+
</prop>
44+
<prop readOnly="True" type="string" name="name"/>
45+
<prop type="object" name="properties" clientFlatten="True">
46+
<prop readOnly="True" type="string" name="approvalStatus">
47+
<enum>
48+
<item value="&quot;Approved&quot;"/>
49+
<item value="&quot;NotApproved&quot;"/>
50+
</enum>
51+
</prop>
52+
<prop readOnly="True" type="dateTime" name="approvedAt"/>
53+
<prop readOnly="True" type="dateTime" name="createdAt"/>
54+
<prop readOnly="True" type="string" name="deploymentStatus">
55+
<enum>
56+
<item value="&quot;Failed&quot;"/>
57+
<item value="&quot;InProgress&quot;"/>
58+
<item value="&quot;NotStarted&quot;"/>
59+
<item value="&quot;Succeeded&quot;"/>
60+
</enum>
61+
</prop>
62+
<prop type="string" name="description"/>
63+
<prop readOnly="True" type="string" name="provisioningState">
64+
<enum>
65+
<item value="&quot;Creating&quot;"/>
66+
<item value="&quot;Deleting&quot;"/>
67+
<item value="&quot;Failed&quot;"/>
68+
<item value="&quot;Succeeded&quot;"/>
69+
<item value="&quot;Updating&quot;"/>
70+
</enum>
71+
</prop>
72+
<prop readOnly="True" type="object" name="stages">
73+
<prop readOnly="True" type="string" name="preview">
74+
<enum>
75+
<item value="&quot;Failed&quot;"/>
76+
<item value="&quot;InProgress&quot;"/>
77+
<item value="&quot;NotStarted&quot;"/>
78+
<item value="&quot;Succeeded&quot;"/>
79+
</enum>
80+
</prop>
81+
<prop readOnly="True" type="string" name="production">
82+
<enum>
83+
<item value="&quot;Failed&quot;"/>
84+
<item value="&quot;InProgress&quot;"/>
85+
<item value="&quot;NotStarted&quot;"/>
86+
<item value="&quot;Succeeded&quot;"/>
87+
</enum>
88+
</prop>
89+
</prop>
90+
</prop>
91+
<prop readOnly="True" type="object" name="systemData">
92+
<prop type="dateTime" name="createdAt"/>
93+
<prop type="string" name="createdBy"/>
94+
<prop type="string" name="createdByType">
95+
<enum>
96+
<item value="&quot;Application&quot;"/>
97+
<item value="&quot;Key&quot;"/>
98+
<item value="&quot;ManagedIdentity&quot;"/>
99+
<item value="&quot;User&quot;"/>
100+
</enum>
101+
</prop>
102+
<prop type="dateTime" name="lastModifiedAt"/>
103+
<prop type="string" name="lastModifiedBy"/>
104+
<prop type="string" name="lastModifiedByType">
105+
<enum>
106+
<item value="&quot;Application&quot;"/>
107+
<item value="&quot;Key&quot;"/>
108+
<item value="&quot;ManagedIdentity&quot;"/>
109+
<item value="&quot;User&quot;"/>
110+
</enum>
111+
</prop>
112+
</prop>
113+
<prop readOnly="True" type="string" name="type"/>
114+
</item>
115+
</prop>
116+
</schema>
117+
</json>
118+
</body>
119+
</response>
120+
<response isError="True">
121+
<body>
122+
<json>
123+
<schema type="@MgmtErrorFormat"/>
124+
</json>
125+
</body>
126+
</response>
127+
</http>
128+
</operation>
129+
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
130+
</command>
131+
</commandGroup>
132+
</CodeGen>

0 commit comments

Comments
 (0)