-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Create new version 2022-09-30-preview for MySQL #23276
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
Merged
Merged
Changes from 19 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 c79b477
update version and add new file backupandexport.json
xiaoxuqi-ms 95b6ff8
update readme
xiaoxuqi-ms bca41cd
add common-types
xiaoxuqi-ms 09866bf
fix readme
xiaoxuqi-ms 532cf6c
copy 2021-12-01-preview folder to init 2022-09-30-preview
xiaoxuqi-ms c19664f
update version, readme and add new api in FlexibleServers.json
xiaoxuqi-ms a4734cc
fix spell check
xiaoxuqi-ms 5715a50
fix linter
xiaoxuqi-ms 5f5d447
fix linter
xiaoxuqi-ms c41b86a
fix linter for flexible server
xiaoxuqi-ms b395571
add location in header to fix linter
xiaoxuqi-ms 2a95036
Merge branch 'main' into mysql20220930preview
xiaoxuqi-ms 6bc355a
add base for serviceoperation
xiaoxuqi-ms 1e78130
update api version
xiaoxuqi-ms d95d8d4
add new api for service operation
xiaoxuqi-ms c587e22
update readme
xiaoxuqi-ms 6989fc8
fix model validation
xiaoxuqi-ms 613dfce
fix prettier
xiaoxuqi-ms 8873a09
update to v5 for apiVersionParameter and resourceGroupName
xiaoxuqi-ms 9ebd6e0
fix linter
xiaoxuqi-ms 91dff24
fix lro errorResponse
xiaoxuqi-ms 3b8becb
enableScaling and revert configuration
xiaoxuqi-ms fa0c806
fix enableStatusEnum
xiaoxuqi-ms 472c7f6
sync backupExport
xiaoxuqi-ms a1f33cc
update readme
xiaoxuqi-ms 7374a17
remove service operation
xiaoxuqi-ms e37e141
update backups
xiaoxuqi-ms a34745c
Merge branch 'main' into mysql20220930preview
xiaoxuqi-ms 185f45f
udpate backup name
xiaoxuqi-ms 8fb8a1f
Merge branch 'mysql20220930preview' of https://github.com/Azure/azure…
xiaoxuqi-ms 3dff5b3
fix final-state-via
xiaoxuqi-ms d77bb5e
fix lro option
xiaoxuqi-ms 1a5bc8f
revert replication role
xiaoxuqi-ms f223a83
use cloudError
xiaoxuqi-ms 55bf692
Merge branch 'main' into mysql20220930preview
xiaoxuqi-ms ae11def
Update readme.python.md
msyyc 646370c
fix customer word
xiaoxuqi-ms d39a392
Merge branch 'mysql20220930preview' of https://github.com/Azure/azure…
xiaoxuqi-ms 9d4e194
add default value for EnableStatusEnum
xiaoxuqi-ms ac0cbb9
add logondisk
xiaoxuqi-ms 54f2153
fix description
xiaoxuqi-ms 01e3f23
Merge branch 'main' into mysql20220930preview
xiaoxuqi-ms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -2778,3 +2778,6 @@ Unpreparing | |
| typespec | ||
| DSPM | ||
| Dspm | ||
| Gtid | ||
| GTID | ||
| gtid | ||
374 changes: 374 additions & 0 deletions
374
...urce-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/BackupAndExport.json
This file contains hidden or 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,374 @@ | ||
| { | ||
| "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": { | ||
| "type": "string", | ||
| "description": "Backup Name for the current backup" | ||
| }, | ||
| "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, | ||
xiaoxuqi-ms marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "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" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.