-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Publish private branch 'dev-maintenance-Microsoft.Mai…
…ntenance-2023-04-01' (#23832) * Adds base for updating Microsoft.Maintenance from version preview/2022-07-01-preview to version 2023-04-01 * Updates readme * Updates API version in new specs and examples * Updated schema to support confiuration assignment to resource group and subscription. Removed pre/post task schema. * Added 201 response code for Maintenance Configuration, Configuration Assignment and apply update put call. * Added osTypes Filter in configuration assignment. * Updated description for osType property. * Added 202 status for delete operation. Corrected path for resource group get operation. * Fixed linter issue. * Added x-ms-long-running-operation and removed supression * Added x-ms-long-running-operation for delete api. * Added locations. * Suppressed LroErrorContent * Added suporession for 202 status --------- Co-authored-by: Kalpesh Chavan <[email protected]>
- Loading branch information
1 parent
da459cd
commit 3ce676c
Showing
39 changed files
with
4,545 additions
and
1 deletion.
There are no files selected for viewing
3,040 changes: 3,040 additions & 0 deletions
3,040
...ion/maintenance/resource-manager/Microsoft.Maintenance/stable/2023-04-01/Maintenance.json
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...ager/Microsoft.Maintenance/stable/2023-04-01/examples/ApplyUpdatesResourceGroup_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"providerName": "Microsoft.Maintenance", | ||
"api-version": "2023-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"type": "Microsoft.Maintenance/applyUpdates", | ||
"properties": { | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1", | ||
"status": "Completed" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...manager/Microsoft.Maintenance/stable/2023-04-01/examples/ApplyUpdates_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"providerName": "Microsoft.Compute", | ||
"resourceType": "virtualMachineScaleSets", | ||
"resourceName": "smdtest1", | ||
"api-version": "2023-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"type": "Microsoft.Maintenance/applyUpdates", | ||
"properties": { | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1", | ||
"status": "Pending" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"type": "Microsoft.Maintenance/applyUpdates", | ||
"properties": { | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1", | ||
"status": "Pending" | ||
} | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...r/Microsoft.Maintenance/stable/2023-04-01/examples/ApplyUpdates_CreateOrUpdateParent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"providerName": "Microsoft.Compute", | ||
"resourceParentType": "virtualMachineScaleSets", | ||
"resourceParentName": "smdtest1", | ||
"resourceType": "virtualMachines", | ||
"resourceName": "smdvm1", | ||
"api-version": "2023-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"type": "Microsoft.Maintenance/applyUpdates", | ||
"properties": { | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1", | ||
"status": "Pending" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"type": "Microsoft.Maintenance/applyUpdates", | ||
"properties": { | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1", | ||
"status": "Pending" | ||
} | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...e/resource-manager/Microsoft.Maintenance/stable/2023-04-01/examples/ApplyUpdates_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"providerName": "Microsoft.Compute", | ||
"resourceType": "virtualMachineScaleSets", | ||
"resourceName": "smdtest1", | ||
"applyUpdateName": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"api-version": "2023-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"type": "Microsoft.Maintenance/applyUpdates", | ||
"properties": { | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1", | ||
"status": "Completed" | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...urce-manager/Microsoft.Maintenance/stable/2023-04-01/examples/ApplyUpdates_GetParent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"providerName": "Microsoft.Compute", | ||
"resourceParentType": "virtualMachineScaleSets", | ||
"resourceParentName": "smdtest1", | ||
"resourceType": "virtualMachines", | ||
"resourceName": "smdvm1", | ||
"applyUpdateName": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"api-version": "2023-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"type": "Microsoft.Maintenance/applyUpdates", | ||
"properties": { | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1", | ||
"status": "Completed" | ||
} | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
.../resource-manager/Microsoft.Maintenance/stable/2023-04-01/examples/ApplyUpdates_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"providerName": "Microsoft.Maintenance", | ||
"api-version": "2023-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", | ||
"type": "Microsoft.Maintenance/applyUpdates", | ||
"properties": { | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1", | ||
"status": "Completed" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
116 changes: 116 additions & 0 deletions
116
...e/stable/2023-04-01/examples/ConfigurationAssignmentsForResourceGroup_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"configurationAssignmentName": "workervmConfiguration", | ||
"api-version": "2023-04-01", | ||
"configurationAssignment": { | ||
"properties": { | ||
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", | ||
"filter": { | ||
"resourceTypes": [ | ||
"Microsoft.HybridCompute/machines", | ||
"Microsoft.Compute/virtualMachines" | ||
], | ||
"tagSettings": { | ||
"tags": { | ||
"tag1": [ | ||
"tag1Value1", | ||
"tag1Value2", | ||
"tag1Value3" | ||
], | ||
"tag2": [ | ||
"tag2Value1", | ||
"tag2Value2", | ||
"tag2Value3" | ||
] | ||
}, | ||
"filterOperator": "Any" | ||
}, | ||
"locations": [ | ||
"Japan East", | ||
"UK South" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration", | ||
"name": "workervmConfiguration", | ||
"type": "Microsoft.Maintenance/configurationAssignments", | ||
"properties": { | ||
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg", | ||
"filter": { | ||
"resourceTypes": [ | ||
"Microsoft.HybridCompute/machines", | ||
"Microsoft.Compute/virtualMachines" | ||
], | ||
"osTypes": [ | ||
"Windows", | ||
"Linux" | ||
], | ||
"tagSettings": { | ||
"tags": { | ||
"tag1": [ | ||
"tag1Value1", | ||
"tag1Value2", | ||
"tag1Value3" | ||
], | ||
"tag2": [ | ||
"tag2Value1", | ||
"tag2Value2", | ||
"tag2Value3" | ||
] | ||
}, | ||
"filterOperator": "Any" | ||
}, | ||
"locations": [ | ||
"Japan East", | ||
"UK South" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration", | ||
"name": "workervmConfiguration", | ||
"type": "Microsoft.Maintenance/configurationAssignments", | ||
"properties": { | ||
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg", | ||
"filter": { | ||
"resourceTypes": [ | ||
"Microsoft.HybridCompute/machines", | ||
"Microsoft.Compute/virtualMachines" | ||
], | ||
"tagSettings": { | ||
"tags": { | ||
"tag1": [ | ||
"tag1Value1", | ||
"tag1Value2", | ||
"tag1Value3" | ||
], | ||
"tag2": [ | ||
"tag2Value1", | ||
"tag2Value2", | ||
"tag2Value3" | ||
] | ||
}, | ||
"filterOperator": "Any" | ||
}, | ||
"locations": [ | ||
"Japan East", | ||
"UK South" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...intenance/stable/2023-04-01/examples/ConfigurationAssignmentsForResourceGroup_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"configurationAssignmentName": "workervmConfiguration", | ||
"api-version": "2023-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration", | ||
"name": "workervmConfiguration", | ||
"type": "Microsoft.Maintenance/configurationAssignments" | ||
} | ||
}, | ||
"204": {}, | ||
"202": {} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
....Maintenance/stable/2023-04-01/examples/ConfigurationAssignmentsForResourceGroup_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"configurationAssignmentName": "workervmConfiguration", | ||
"api-version": "2023-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration", | ||
"name": "workervmConfiguration", | ||
"type": "Microsoft.Maintenance/configurationAssignments", | ||
"properties": { | ||
"filter": { | ||
"resourceTypes": [ | ||
"Microsoft.HybridCompute/machines", | ||
"Microsoft.Compute/virtualMachines" | ||
], | ||
"tagSettings": { | ||
"tags": { | ||
"tag1": [ | ||
"tag1Value1", | ||
"tag1Value2", | ||
"tag1Value3" | ||
], | ||
"tag2": [ | ||
"tag2Value1", | ||
"tag2Value2", | ||
"tag2Value3" | ||
] | ||
}, | ||
"filterOperator": "All" | ||
}, | ||
"locations": [ | ||
"Japan East", | ||
"UK South" | ||
] | ||
}, | ||
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", | ||
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.