Skip to content
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
9105f75
add base folder 2022-09-30-preview from 2021-12-01-preview
xiaoxuqi-ms Mar 24, 2023
c79b477
update version and add new file backupandexport.json
xiaoxuqi-ms Mar 24, 2023
95b6ff8
update readme
xiaoxuqi-ms Mar 24, 2023
bca41cd
add common-types
xiaoxuqi-ms Mar 24, 2023
09866bf
fix readme
xiaoxuqi-ms Mar 24, 2023
532cf6c
copy 2021-12-01-preview folder to init 2022-09-30-preview
xiaoxuqi-ms Mar 29, 2023
c19664f
update version, readme and add new api in FlexibleServers.json
xiaoxuqi-ms Mar 29, 2023
a4734cc
fix spell check
xiaoxuqi-ms Mar 29, 2023
5715a50
fix linter
xiaoxuqi-ms Mar 30, 2023
5f5d447
fix linter
xiaoxuqi-ms Mar 30, 2023
c41b86a
fix linter for flexible server
xiaoxuqi-ms Mar 30, 2023
b395571
add location in header to fix linter
xiaoxuqi-ms Apr 6, 2023
2a95036
Merge branch 'main' into mysql20220930preview
xiaoxuqi-ms Apr 6, 2023
6bc355a
add base for serviceoperation
xiaoxuqi-ms Apr 7, 2023
1e78130
update api version
xiaoxuqi-ms Apr 7, 2023
d95d8d4
add new api for service operation
xiaoxuqi-ms Apr 7, 2023
c587e22
update readme
xiaoxuqi-ms Apr 7, 2023
6989fc8
fix model validation
xiaoxuqi-ms Apr 7, 2023
613dfce
fix prettier
xiaoxuqi-ms Apr 7, 2023
8873a09
update to v5 for apiVersionParameter and resourceGroupName
xiaoxuqi-ms Apr 10, 2023
9ebd6e0
fix linter
xiaoxuqi-ms Apr 10, 2023
91dff24
fix lro errorResponse
xiaoxuqi-ms Apr 10, 2023
3b8becb
enableScaling and revert configuration
xiaoxuqi-ms Apr 10, 2023
fa0c806
fix enableStatusEnum
xiaoxuqi-ms Apr 11, 2023
472c7f6
sync backupExport
xiaoxuqi-ms Apr 11, 2023
a1f33cc
update readme
xiaoxuqi-ms Apr 11, 2023
7374a17
remove service operation
xiaoxuqi-ms Apr 12, 2023
e37e141
update backups
xiaoxuqi-ms Apr 12, 2023
a34745c
Merge branch 'main' into mysql20220930preview
xiaoxuqi-ms Apr 13, 2023
185f45f
udpate backup name
xiaoxuqi-ms Apr 13, 2023
8fb8a1f
Merge branch 'mysql20220930preview' of https://github.com/Azure/azure…
xiaoxuqi-ms Apr 13, 2023
3dff5b3
fix final-state-via
xiaoxuqi-ms Apr 13, 2023
d77bb5e
fix lro option
xiaoxuqi-ms Apr 13, 2023
1a5bc8f
revert replication role
xiaoxuqi-ms Apr 13, 2023
f223a83
use cloudError
xiaoxuqi-ms Apr 13, 2023
55bf692
Merge branch 'main' into mysql20220930preview
xiaoxuqi-ms Apr 14, 2023
ae11def
Update readme.python.md
msyyc Apr 14, 2023
646370c
fix customer word
xiaoxuqi-ms Apr 14, 2023
d39a392
Merge branch 'mysql20220930preview' of https://github.com/Azure/azure…
xiaoxuqi-ms Apr 14, 2023
9d4e194
add default value for EnableStatusEnum
xiaoxuqi-ms Apr 14, 2023
ac0cbb9
add logondisk
xiaoxuqi-ms Apr 14, 2023
54f2153
fix description
xiaoxuqi-ms Apr 17, 2023
01e3f23
Merge branch 'main' into mysql20220930preview
xiaoxuqi-ms Apr 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2785,4 +2785,8 @@ Unprepares
Unpreparing
typespec
DSPM
Dspm
Dspm
Gtid
GTID
gtid
Dspm
Original file line number Diff line number Diff line change
@@ -0,0 +1,373 @@
{
"swagger": "2.0",
"consumes": [
"application/json"
],
"host": "management.azure.com",
"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": "2022-09-30-preview"
},
"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}/backupAndExport": {
"post": {
"tags": [
"BackupAndExport"
],
"operationId": "BackupAndExport_Create",
"x-ms-examples": {
"Create and Export Backup": {
"$ref": "./examples/BackupAndExport.json"
}
},
"description": "Exports the backup of the given server by creating a backup if not existing.",
"parameters": [
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/BackupAndExportRequest"
},
"description": "The required parameters for creating and exporting backup of the given server."
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BackupAndExportResponse"
}
},
"202": {
"description": "Accepted",
"headers": {
"Location": {
"description": "URL to retrieve the final result after operation completes.",
"type": "string"
},
"Azure-AsyncOperation": {
"description": "URL to query for status of the operation.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/validateBackup": {
"post": {
"tags": [
"BackupAndExport"
],
"operationId": "BackupAndExport_ValidateBackup",
"x-ms-examples": {
"Validate Backup": {
"$ref": "./examples/ValidateBackup.json"
}
},
"description": "Validates if backup can be performed for given server.",
"parameters": [
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ValidateBackupResponse"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
"BackupRequestBase": {
"description": "BackupRequestBase is the base for all backup request.",
"required": [
"backupSettings"
],
"type": "object",
"properties": {
"backupSettings": {
"$ref": "#/definitions/BackupSettings",
"description": "Backup Settings"
}
}
},
"BackupAndExportRequest": {
"description": "BackupAndExport API Request",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/BackupRequestBase"
}
],
"required": [
"backupSettings",
"targetDetails"
],
"properties": {
"targetDetails": {
"$ref": "#/definitions/BackupStoreDetails",
"description": "Backup Target Store Details"
}
}
},
"BackupStoreDetails": {
"description": "Details about the target where the backup content will be stored.",
"required": [
"objectType"
],
"type": "object",
"properties": {
"objectType": {
"description": "Type of the specific object - used for deserializing",
"type": "string"
}
},
"discriminator": "objectType"
},
"FullBackupStoreDetails": {
"description": "FullBackupStoreDetails is used for scenarios where backup data is streamed/copied over to a storage destination.",
"type": "object",
"required": [
"sasUriList"
],
"allOf": [
{
"$ref": "#/definitions/BackupStoreDetails"
}
],
"properties": {
"sasUriList": {
"description": "SASUriList of storage containers where backup data is to be streamed/copied.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"BackupSettings": {
"description": "Backup Settings",
"type": "object",
"required": [
"backupName"
],
"properties": {
"backupName": {
"$ref": "../../../common-types/v1/common-types.json#/definitions/BackupName"
},
"backupFormat": {
"description": "Backup Format for the current backup. (CollatedFormat is INTERNAL – DO NOT USE)",
"enum": [
"None",
"CollatedFormat"
],
"type": "string",
"x-ms-enum": {
"name": "BackupFormat",
"modelAsString": true
}
}
}
},
"ValidateBackupResponseProperties": {
"description": "ValidateBackup Response Properties",
"type": "object",
"properties": {
"numberOfContainers": {
"format": "int32",
"description": "Estimated no of storage containers required for resource data to be backed up.",
"type": "integer"
}
}
},
"BackupAndExportResponseProperties": {
"description": "BackupAndExport Response Properties",
"type": "object",
"properties": {
"datasourceSizeInBytes": {
"format": "int64",
"description": "Size of datasource in bytes",
"type": "integer"
},
"dataTransferredInBytes": {
"format": "int64",
"description": "Data transferred in bytes",
"type": "integer"
},
"backupMetadata": {
"description": "Metadata related to backup to be stored for restoring resource in key-value pairs.",
"type": "string"
}
}
},
"BackupAndExportResponse": {
"type": "object",
"properties": {
"status": {
"description": "The operation status",
"type": "string",
"enum": [
"Pending",
"InProgress",
"Succeeded",
"Failed",
"CancelInProgress",
"Canceled"
],
"x-ms-enum": {
"name": "OperationStatus",
"modelAsString": false,
"values": [
{
"value": "Pending",
"description": "The operation has been accepted but hasn't started."
},
{
"value": "InProgress",
"description": "The operation is running"
},
{
"value": "Succeeded",
"description": "The operation Succeeded"
},
{
"value": "Failed",
"description": "The operation Failed"
},
{
"value": "CancelInProgress",
"description": "The cancellation in progress"
},
{
"value": "Canceled",
"description": "The operation has been Canceled"
}
]
}
},
"startTime": {
"description": "Start time",
"type": "string",
"format": "date-time"
},
"endTime": {
"description": "End time",
"type": "string",
"format": "date-time"
},
"percentComplete": {
"description": "Operation progress (0-100).",
"type": "number",
"format": "double",
"minimum": 0,
"maximum": 100
},
"properties": {
"$ref": "#/definitions/BackupAndExportResponseProperties",
"x-ms-client-flatten": true,
"description": "The response properties of a backup and export operation."
},
"error": {
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
"description": "The BackupAndExport operation error response."
}
},
"allOf": [
{
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
}
],
"description": "Represents BackupAndExport API Response"
},
"ValidateBackupResponse": {
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/ValidateBackupResponseProperties",
"x-ms-client-flatten": true,
"description": "The response properties of a pre backup operation."
}
},
"description": "Represents ValidateBackup API Response"
},
"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."
}
},
"produces": [
"application/json"
],
"schemes": [
"https"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
]
}
Loading