-
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.
* add v5 sdk * change recommendedAction. * update a min sdk * replace RecommendedAction defs with common type * remove redundant defs in the 2014-04-01 legacy files. * add RestorableDroppedDatabase json file. * update RecommendedAction * update update swagger to use 2020-11-01 preview spec * revert int format change
- Loading branch information
Showing
13 changed files
with
1,367 additions
and
74 deletions.
There are no files selected for viewing
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
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
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
4 changes: 2 additions & 2 deletions
4
...ion/sql/resource-manager/Microsoft.Sql/preview/2020-08-01-preview/DatabaseOperations.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ication/sql/resource-manager/Microsoft.Sql/preview/2020-08-01-preview/DatabaseUsages.json
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
...sql/resource-manager/Microsoft.Sql/preview/2020-08-01-preview/InstanceFailoverGroups.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
189 changes: 189 additions & 0 deletions
189
specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backups_legacy.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,189 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Azure SQL Database Backup", | ||
"description": "Provides read functionality for Azure SQL Database Backups", | ||
"version": "2014-04-01" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName}": { | ||
"get": { | ||
"tags": [ | ||
"RecoverableDatabases" | ||
], | ||
"operationId": "RecoverableDatabases_Get", | ||
"description": "Gets a recoverable database, which is a resource representing a database's geo backup", | ||
"x-ms-examples": { | ||
"Get a recoverable database": { | ||
"$ref": "./examples/RecoverableDatabaseGet.json" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/ServerNameParameter" | ||
}, | ||
{ | ||
"name": "databaseName", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "The name of the database" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/RecoverableDatabase" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases": { | ||
"get": { | ||
"tags": [ | ||
"RecoverableDatabases" | ||
], | ||
"operationId": "RecoverableDatabases_ListByServer", | ||
"description": "Gets a list of recoverable databases", | ||
"x-ms-examples": { | ||
"Get list of restorable dropped databases": { | ||
"$ref": "./examples/RecoverableDatabaseList.json" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/ServerNameParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/RecoverableDatabaseListResult" | ||
} | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": null | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"RecoverableDatabaseProperties": { | ||
"properties": { | ||
"edition": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The edition of the database" | ||
}, | ||
"serviceLevelObjective": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The service level objective name of the database" | ||
}, | ||
"elasticPoolName": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The elastic pool name of the database" | ||
}, | ||
"lastAvailableBackupDate": { | ||
"readOnly": true, | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "The last available backup date of the database (ISO8601 format)" | ||
} | ||
}, | ||
"description": "The properties of a recoverable database" | ||
}, | ||
"RecoverableDatabase": { | ||
"properties": { | ||
"properties": { | ||
"$ref": "#/definitions/RecoverableDatabaseProperties", | ||
"description": "The properties of a recoverable database", | ||
"x-ms-client-flatten": true | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "../../../common/v1/types.json#/definitions/ProxyResource" | ||
} | ||
], | ||
"description": "A recoverable database" | ||
}, | ||
"RecoverableDatabaseListResult": { | ||
"properties": { | ||
"value": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/RecoverableDatabase" | ||
}, | ||
"description": "A list of recoverable databases" | ||
} | ||
}, | ||
"required": [ | ||
"value" | ||
], | ||
"description": "The response to a list recoverable databases request" | ||
} | ||
}, | ||
"parameters": { | ||
"ServerNameParameter": { | ||
"name": "serverName", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "The name of the server.", | ||
"x-ms-parameter-location": "method" | ||
}, | ||
"DatabaseExpandParameter": { | ||
"name": "$expand", | ||
"in": "query", | ||
"required": false, | ||
"type": "string", | ||
"description": "A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.", | ||
"x-ms-parameter-location": "method" | ||
} | ||
}, | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"flow": "implicit", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.