Skip to content

Commit

Permalink
Adding Untracked Public Maintenance Config Resource Type (Azure#10281)
Browse files Browse the repository at this point in the history
* Adding Untracked Public Maintenance Config Resource Type

* Fixing linter checks
  • Loading branch information
sotaneja authored Jul 31, 2020
1 parent b335ab2 commit 5699b02
Show file tree
Hide file tree
Showing 7 changed files with 193 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,96 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations": {
"get": {
"tags": [
"PublicMaintenanceConfigurations"
],
"summary": "Get Public Maintenance Configuration records",
"operationId": "PublicMaintenanceConfigurations_List",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ListMaintenanceConfigurationsResult"
}
},
"default": {
"description": "BadRequest",
"schema": {
"$ref": "#/definitions/MaintenanceError"
}
}
},
"x-ms-pageable": {
"nextLinkName": null
},
"x-ms-examples": {
"PublicMaintenanceConfigurations_List": {
"$ref": "./examples/PublicMaintenanceConfigurations_List.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/{resourceName}": {
"get": {
"tags": [
"PublicMaintenanceConfigurations"
],
"summary": "Get Public Maintenance Configuration record",
"operationId": "PublicMaintenanceConfigurations_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"name": "resourceName",
"in": "path",
"description": "Resource Identifier",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/MaintenanceConfiguration"
}
},
"default": {
"description": "BadRequest",
"schema": {
"$ref": "#/definitions/MaintenanceError"
}
}
},
"x-ms-examples": {
"PublicMaintenanceConfigurations_GetForResource": {
"$ref": "./examples/PublicMaintenanceConfigurations_GetForResource.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/{applyUpdateName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -1366,11 +1456,11 @@
"type": "object",
"properties": {
"startDateTime": {
"description": "Effective start date of the maintenance window in YYYY-MM-DD hh:mm:ss format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.",
"description": "Effective start date of the maintenance window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.",
"type": "string"
},
"expirationDateTime": {
"description": "Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm:ss format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.",
"description": "Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.",
"type": "string"
},
"duration": {
Expand Down Expand Up @@ -1411,7 +1501,9 @@
"InResource",
"OSImage",
"Extension",
"InGuestPatch"
"InGuestPatch",
"SQLDB",
"SQLManagedInstance"
],
"type": "string",
"x-ms-enum": {
Expand All @@ -1423,6 +1515,18 @@
"$ref": "#/definitions/MaintenanceWindow",
"description": "Definition of a MaintenanceWindow",
"x-ms-client-flatten": true
},
"visibility": {
"description": "Gets or sets the visibility of the configuration",
"enum": [
"Custom",
"Public"
],
"type": "string",
"x-ms-enum": {
"name": "Visibility",
"modelAsString": true
}
}
}
},
Expand Down Expand Up @@ -1574,7 +1678,9 @@
"InResource",
"OSImage",
"Extension",
"InGuestPatch"
"InGuestPatch",
"SQLDB",
"SQLManagedInstance"
],
"type": "string",
"x-ms-enum": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
"location": "westus2",
"properties": {
"namespace": "Microsoft.Maintenance",
"visibility": "Custom",
"maintenanceScope": "OSImage",
"maintenanceWindow": {
"startDateTime": "2020-04-30 08:00:00",
"expirationDateTime": "9999-12-31 00:00:00",
"duration": "05:00:00",
"startDateTime": "2020-04-30 08:00",
"expirationDateTime": "9999-12-31 00:00",
"duration": "05:00",
"timeZone": "Pacific Standard Time",
"recurEvery": "Day"
}
Expand All @@ -27,11 +28,12 @@
"location": "westus2",
"properties": {
"namespace": "Microsoft.Maintenance",
"visibility": "Custom",
"maintenanceScope": "OSImage",
"maintenanceWindow": {
"startDateTime": "2020-04-30 08:00:00",
"expirationDateTime": "9999-12-31 00:00:00",
"duration": "05:00:00",
"startDateTime": "2020-04-30 08:00",
"expirationDateTime": "9999-12-31 00:00",
"duration": "05:00",
"timeZone": "Pacific Standard Time",
"recurEvery": "Day"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
"properties": {
"namespace": "Microsoft.Maintenance",
"maintenanceScope": "OSImage",
"visibility": "Custom",
"maintenanceWindow": {
"startDateTime": "2020-04-30 08:00:00",
"expirationDateTime": "9999-12-31 00:00:00",
"duration": "05:00:00",
"startDateTime": "2020-04-30 08:00",
"expirationDateTime": "9999-12-31 00:00",
"duration": "05:00",
"timeZone": "Pacific Standard Time",
"recurEvery": "5Days"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
"properties": {
"namespace": "Microsoft.Maintenance",
"maintenanceScope": "OSImage",
"visibility": "Custom",
"maintenanceWindow": {
"startDateTime": "2020-04-30 08:00:00",
"expirationDateTime": "9999-12-31 00:00:00",
"duration": "05:00:00",
"startDateTime": "2020-04-30 08:00",
"expirationDateTime": "9999-12-31 00:00",
"duration": "05:00",
"timeZone": "Pacific Standard Time",
"recurEvery": "Week Saturday,Sunday"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
"location": "westus2",
"properties": {
"namespace": "Microsoft.Maintenance",
"visibility": "Custom",
"maintenanceScope": "OSImage",
"maintenanceWindow": {
"startDateTime": "2020-04-30 08:00:00",
"expirationDateTime": "9999-12-31 00:00:00",
"duration": "05:00:00",
"startDateTime": "2020-04-30 08:00",
"expirationDateTime": "9999-12-31 00:00",
"duration": "05:00",
"timeZone": "Pacific Standard Time",
"recurEvery": "Month Third Sunday"
}
Expand All @@ -28,10 +29,11 @@
"properties": {
"namespace": "Microsoft.Maintenance",
"maintenanceScope": "OSImage",
"visibility": "Custom",
"maintenanceWindow": {
"startDateTime": "2020-04-30 08:00:00",
"expirationDateTime": "9999-12-31 00:00:00",
"duration": "05:00:00",
"startDateTime": "2020-04-30 08:00",
"expirationDateTime": "9999-12-31 00:00",
"duration": "05:00",
"timeZone": "Pacific Standard Time",
"recurEvery": "Month Third Sunday"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"resourceName": "configuration1",
"api-version": "2020-07-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/configuration1",
"name": "configuration1",
"location": "westus2",
"properties": {
"namespace": "Microsoft.Maintenance",
"maintenanceScope": "SQLDB",
"visibility": "Public",
"maintenanceWindow": {
"startDateTime": "2020-04-30 08:00",
"expirationDateTime": "9999-12-31 00:00",
"duration": "05:00",
"timeZone": "Pacific Standard Time",
"recurEvery": "2Weeks"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"api-version": "2020-07-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/configuration1",
"name": "configuration1",
"location": "westus2",
"properties": {
"namespace": "Microsoft.Maintenance",
"maintenanceScope": "SQLDB",
"visibility": "Public",
"maintenanceWindow": {
"startDateTime": "2020-04-30 08:00:00",
"expirationDateTime": "9999-12-31 00:00:00",
"duration": "05:00:00",
"timeZone": "Pacific Standard Time",
"recurEvery": "Week Saturday,Sunday"
}
}
}
]
}
}
}
}

0 comments on commit 5699b02

Please sign in to comment.