-
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.
- Loading branch information
1 parent
f7f8f5b
commit dad3b90
Showing
104 changed files
with
16,571 additions
and
0 deletions.
There are no files selected for viewing
1,899 changes: 1,899 additions & 0 deletions
1,899
...on/resource-manager/Microsoft.DataMigration/preview/2022-03-30-preview/datamigration.json
Large diffs are not rendered by default.
Oops, something went wrong.
179 changes: 179 additions & 0 deletions
179
...urce-manager/Microsoft.DataMigration/preview/2022-03-30-preview/definitions/Commands.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,179 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Azure Database Migration Service Resource Provider", | ||
"version": "2022-01-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": {}, | ||
"definitions": { | ||
"CommandProperties": { | ||
"type": "object", | ||
"description": "Base class for all types of DMS command properties. If command is not supported by current client, this object is returned.", | ||
"properties": { | ||
"commandType": { | ||
"enum": [ | ||
"Migrate.Sync.Complete.Database", | ||
"Migrate.SqlServer.AzureDbSqlMi.Complete", | ||
"cancel", | ||
"finish", | ||
"restart" | ||
], | ||
"x-ms-enum": { | ||
"name": "CommandType", | ||
"modelAsString": true | ||
}, | ||
"description": "Command type.", | ||
"type": "string" | ||
}, | ||
"errors": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "./Common.json#/definitions/ODataError" | ||
}, | ||
"description": "Array of errors. This is ignored if submitted.", | ||
"readOnly": true | ||
}, | ||
"state": { | ||
"type": "string", | ||
"description": "The state of the command. This is ignored if submitted.", | ||
"enum": [ | ||
"Unknown", | ||
"Accepted", | ||
"Running", | ||
"Succeeded", | ||
"Failed" | ||
], | ||
"x-ms-enum": { | ||
"name": "CommandState", | ||
"modelAsString": true | ||
}, | ||
"readOnly": true | ||
} | ||
}, | ||
"required": [ | ||
"commandType" | ||
], | ||
"discriminator": "commandType" | ||
}, | ||
"MigrateSyncCompleteCommandProperties": { | ||
"x-ms-discriminator-value": "Migrate.Sync.Complete.Database", | ||
"type": "object", | ||
"description": "Properties for the command that completes sync migration for a database.", | ||
"properties": { | ||
"input": { | ||
"description": "Command input", | ||
"$ref": "#/definitions/MigrateSyncCompleteCommandInput" | ||
}, | ||
"output": { | ||
"description": "Command output. This is ignored if submitted.", | ||
"$ref": "#/definitions/MigrateSyncCompleteCommandOutput", | ||
"readOnly": true | ||
}, | ||
"commandId": { | ||
"type": "string", | ||
"description": "Command id" | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/CommandProperties" | ||
} | ||
] | ||
}, | ||
"MigrateSyncCompleteCommandInput": { | ||
"type": "object", | ||
"description": "Input for command that completes sync migration for a database.", | ||
"properties": { | ||
"databaseName": { | ||
"description": "Name of database", | ||
"type": "string" | ||
}, | ||
"commitTimeStamp": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "Time stamp to complete" | ||
} | ||
}, | ||
"required": [ | ||
"databaseName" | ||
] | ||
}, | ||
"MigrateSyncCompleteCommandOutput": { | ||
"type": "object", | ||
"description": "Output for command that completes sync migration for a database.", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "Result identifier", | ||
"readOnly": true | ||
}, | ||
"errors": { | ||
"description": "List of errors that happened during the command execution", | ||
"type": "array", | ||
"items": { | ||
"$ref": "./Common.json#/definitions/ReportableException" | ||
}, | ||
"readOnly": true | ||
} | ||
} | ||
}, | ||
"MigrateMISyncCompleteCommandProperties": { | ||
"x-ms-discriminator-value": "Migrate.SqlServer.AzureDbSqlMi.Complete", | ||
"type": "object", | ||
"description": "Properties for the command that completes online migration for an Azure SQL Database Managed Instance.", | ||
"properties": { | ||
"input": { | ||
"description": "Command input", | ||
"$ref": "#/definitions/MigrateMISyncCompleteCommandInput" | ||
}, | ||
"output": { | ||
"description": "Command output. This is ignored if submitted.", | ||
"$ref": "#/definitions/MigrateMISyncCompleteCommandOutput", | ||
"readOnly": true | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/CommandProperties" | ||
} | ||
] | ||
}, | ||
"MigrateMISyncCompleteCommandInput": { | ||
"type": "object", | ||
"description": "Input for command that completes online migration for an Azure SQL Database Managed Instance.", | ||
"properties": { | ||
"sourceDatabaseName": { | ||
"description": "Name of managed instance database", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"sourceDatabaseName" | ||
] | ||
}, | ||
"MigrateMISyncCompleteCommandOutput": { | ||
"type": "object", | ||
"description": "Output for command that completes online migration for an Azure SQL Database Managed Instance.", | ||
"properties": { | ||
"errors": { | ||
"description": "List of errors that happened during the command execution", | ||
"type": "array", | ||
"items": { | ||
"$ref": "./Common.json#/definitions/ReportableException" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.