Skip to content

Commit

Permalink
Add snapshot related new APIs and properties to AKS 2021-08-01 swagger (
Browse files Browse the repository at this point in the history
#15586)

* Add CreationData property to Agentpool level in 2021-08-01 API

* Add snapshot related APIs and properties to AKS 2021-08-01 swagger

* fix lint and spell checks

* fix lint and spell checks

* fix PrettierCheck

* Change some Nodepool to NodePool

* some changes according to ARM team's review comments

Co-authored-by: Charlie Li <charlili@microsoft.com>
  • Loading branch information
chengliangli0918 and charlili1234 authored Aug 12, 2021
1 parent c3d81be commit 5219b6b
Show file tree
Hide file tree
Showing 8 changed files with 561 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2259,3 +2259,4 @@ XLSM
DOCM
multislot
Tebibytes
NodePool
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"api-version": "2021-08-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "snapshot1",
"parameters": {
"location": "westus",
"tags": {
"key1": "val1",
"key2": "val2"
},
"properties": {
"creationData": {
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
}
}
}
},
"responses": {
"200": {
"body": {
"name": "snapshot1",
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
"type": "Microsoft.ContainerService/Snapshots",
"location": "westus",
"tags": {
"key1": "val1",
"key2": "val2"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2021-08-09T20:13:23.298420761Z"
},
"properties": {
"creationData": {
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
},
"snapshotType": "NodePool"
}
}
},
"201": {
"body": {
"name": "snapshot1",
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
"type": "Microsoft.ContainerService/Snapshots",
"location": "westus",
"tags": {
"key1": "val1",
"key2": "val2"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2021-08-09T20:13:23.298420761Z"
},
"properties": {
"creationData": {
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
},
"snapshotType": "NodePool"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2021-08-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "snapshot1"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2021-08-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "snapshot1"
},
"responses": {
"200": {
"body": {
"name": "snapshot1",
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
"type": "Microsoft.ContainerService/Snapshots",
"location": "westus",
"tags": {
"key1": "val1",
"key2": "val2"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2021-08-09T20:13:23.298420761Z"
},
"properties": {
"creationData": {
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
},
"snapshotType": "NodePool"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2021-08-01",
"subscriptionId": "subid1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "snapshot1",
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
"type": "Microsoft.ContainerService/Snapshots",
"location": "westus",
"tags": {
"key1": "val1",
"key2": "val2"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2021-08-09T20:13:23.298420761Z"
},
"properties": {
"creationData": {
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
},
"snapshotType": "NodePool"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2021-08-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "snapshot1",
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
"type": "Microsoft.ContainerService/Snapshots",
"location": "westus",
"tags": {
"key1": "val1",
"key2": "val2"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2021-08-09T20:13:23.298420761Z"
},
"properties": {
"creationData": {
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
},
"snapshotType": "NodePool"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2021-08-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "snapshot1",
"parameters": {
"tags": {
"key2": "new-val2",
"key3": "val3"
}
}
},
"responses": {
"200": {
"body": {
"name": "snapshot1",
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
"type": "Microsoft.ContainerService/Snapshots",
"location": "westus",
"tags": {
"key1": "val1",
"key2": "val2"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2021-08-09T20:13:23.298420761Z"
},
"properties": {
"creationData": {
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
},
"snapshotType": "NodePool"
}
}
}
}
}
Loading

0 comments on commit 5219b6b

Please sign in to comment.