Skip to content

Commit

Permalink
Swagger Changes for MaintenanceConfiguration (#12116)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhan authored Dec 16, 2020
1 parent 1eca31c commit d99f6ad
Show file tree
Hide file tree
Showing 5 changed files with 521 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"parameters": {
"api-version": "2020-12-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"configName": "default",
"parameters": {
"properties": {
"timeInWeek": [
{
"day": "Monday",
"hourSlots": [
1,
2
]
}
],
"notAllowedTime": [
{
"start": "2020-11-26T03:00:00Z",
"end": "2020-11-30T12:00:00Z"
}
]
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/maintenanceConfigurations/default",
"type": "Microsoft.ContainerService/managedClusters/maintenanceConfigurations",
"name": "default",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
},
"properties": {
"timeInWeek": [
{
"day": "Monday",
"hourSlots": [
1,
2
]
}
],
"notAllowedTime": [
{
"start": "2020-11-26T03:00:00Z",
"end": "2020-11-30T12:00:00Z"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2020-12-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"configName": "default"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2020-12-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"configName": "default"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/maintenanceConfigurations/default",
"name": "default",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
},
"properties": {
"timeInWeek": [
{
"day": "Monday",
"hourSlots": [
1,
2
]
}
],
"notAllowedTime": [
{
"start": "2020-11-26T03:00:00Z",
"end": "2020-11-30T12:00:00Z"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"api-version": "2020-12-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/maintenanceConfigurations/default",
"name": "default",
"properties": {
"timeInWeek": [
{
"day": "Monday",
"hourSlots": [
1,
2
]
}
],
"notAllowedTime": [
{
"start": "2020-11-26T03:00:00Z",
"end": "2020-11-30T12:00:00Z"
}
]
}
}
]
}
}
}
}
Loading

0 comments on commit d99f6ad

Please sign in to comment.