-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add MySQL Flex API Version 2021-12-01-preview #19217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3ec0d62
f07a732
a888027
f5f54d8
bae6d0b
6c98bf2
dde34da
0e98a82
d8cfc74
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,259 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "MySQLManagementClient", | ||
| "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules and configurations.", | ||
| "version": "2021-12-01-preview" | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "security": [ | ||
| { | ||
| "azure_auth": [ | ||
| "user_impersonation" | ||
| ] | ||
| } | ||
| ], | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| }, | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups/{backupName}": { | ||
| "put": { | ||
| "tags": [ | ||
| "Backups" | ||
| ], | ||
| "operationId": "Backups_Put", | ||
| "x-ms-examples": { | ||
| "Create backup for a server": { | ||
| "$ref": "./examples/BackupPut.json" | ||
| } | ||
| }, | ||
| "description": "Create backup for a given server with specified backup name.", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ServerNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/BackupNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServerBackup" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "get": { | ||
| "tags": [ | ||
| "Backups" | ||
| ], | ||
| "operationId": "Backups_Get", | ||
| "x-ms-examples": { | ||
| "Get a backup for a server": { | ||
| "$ref": "./examples/BackupGet.json" | ||
| } | ||
| }, | ||
| "description": "Get a backup file from a given server.", | ||
| "parameters": [ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a point GET so should only return one baackup
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed description |
||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ServerNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/BackupNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServerBackup" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups": { | ||
| "get": { | ||
| "tags": [ | ||
| "Backups" | ||
| ], | ||
| "operationId": "Backups_ListByServer", | ||
| "x-ms-examples": { | ||
| "List backups for a server": { | ||
| "$ref": "./examples/BackupsListByServer.json" | ||
| } | ||
| }, | ||
| "description": "List all the backups for a given server.", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ServerNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServerBackupListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "ServerBackupProperties": { | ||
| "type": "object", | ||
| "properties": { | ||
| "backupType": { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copied from previous API version. |
||
| "type": "string", | ||
| "description": "Backup type." | ||
| }, | ||
| "completedTime": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "Backup completed time (ISO8601 format)." | ||
| }, | ||
| "source": { | ||
| "type": "string", | ||
| "description": "Backup source" | ||
| } | ||
| }, | ||
| "description": "The properties of a server backup." | ||
| }, | ||
| "ServerBackup": { | ||
| "type": "object", | ||
| "properties": { | ||
| "properties": { | ||
| "$ref": "#/definitions/ServerBackupProperties", | ||
| "x-ms-client-flatten": true, | ||
| "description": "The properties of a server backup." | ||
| }, | ||
| "systemData": { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", | ||
| "readOnly": true, | ||
| "description": "The system metadata relating to this resource." | ||
| } | ||
| }, | ||
| "allOf": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" | ||
| } | ||
| ], | ||
| "description": "Server backup properties" | ||
| }, | ||
| "ServerBackupListResult": { | ||
| "type": "object", | ||
| "properties": { | ||
| "value": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/ServerBackup" | ||
| }, | ||
| "description": "The list of backups of a server." | ||
| }, | ||
| "nextLink": { | ||
| "description": "The link used to get the next page of operations.", | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "description": "A list of server backups." | ||
| }, | ||
| "CloudError": { | ||
| "type": "object", | ||
| "x-ms-external": true, | ||
| "properties": { | ||
| "error": { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", | ||
| "description": "The resource management error response." | ||
| } | ||
| }, | ||
| "description": "An error response from the Batch service." | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "ServerNameParameter": { | ||
| "name": "serverName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the server.", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "BackupNameParameter": { | ||
| "name": "backupName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the backup.", | ||
| "x-ms-parameter-location": "method" | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this not have a DELETE operation for the backup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copied from previous API version.
Yes, currently backups are managed by service and cannot be deleted by customer.