From 6b1ced767d0b015f93d79681ca214c453ec2e19c Mon Sep 17 00:00:00 2001 From: peetlotla Date: Thu, 25 Oct 2018 20:38:44 +0530 Subject: [PATCH 01/35] Swagger coverage for Azure Migrate Hub operations --- .../preview/2018-09-01-preview/migrate.json | 2437 +++++++++++++++++ .../resource-manager/readme.md | 99 + .../resource-manager/readme.nodejs.md | 15 + 3 files changed, 2551 insertions(+) create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json create mode 100644 specification/migrateprojects/resource-manager/readme.md create mode 100644 specification/migrateprojects/resource-manager/readme.nodejs.md diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json new file mode 100644 index 000000000000..0f99b6594c35 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -0,0 +1,2437 @@ +{ + "swagger":"2.0", + "info":{ + "version":"2018-09-01-preview", + "title":"Azure Migrate Hub", + "description":"Migrate your workloads to Azure.", + "contact":{ + "name":"Microsoft", + "email":"azuremigrate@microsoft.com" + } + }, + "host":"management.azure.com", + "schemes":[ + "https" + ], + "paths":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateErrors":{ + "get":{ + "tags":[ + "Errors" + ], + "summary":"Gets a list of errors in the migrate project.", + "operationId":"Errors_EnumerateErrors", + "consumes":[ + + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"The subscription id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"The resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"The name of the migrate project.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + }, + { + "name":"continuationToken", + "in":"query", + "description":"Continuation token from the previous call.", + "required":false, + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/ErrorCollection" + } + } + }, + "deprecated":false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateErrors/{errorName}":{ + "get":{ + "tags":[ + "Errors" + ], + "summary":"Gets an error in the migrate project.", + "operationId":"Errors_GetError", + "consumes":[ + + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"The subscription id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"The resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"The migrate project name.", + "required":true, + "type":"string" + }, + { + "name":"errorName", + "in":"path", + "description":"The ARM name of the error to be fetched.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Error" + } + } + }, + "deprecated":false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines":{ + "get":{ + "tags":[ + "Machines" + ], + "summary":"Gets a list of machines in the migrate project.", + "operationId":"Machines_EnumerateMachines", + "consumes":[ + + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"The subscription id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"The resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"The name of the migrate project.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + }, + { + "name":"continuationToken", + "in":"query", + "description":"Continuation token from the previous call.", + "required":false, + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/MachineCollection" + } + } + }, + "deprecated":false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines/{machineName}":{ + "get":{ + "tags":[ + "Machines" + ], + "summary":"Gets a machine in the migrate project.", + "operationId":"Machines_GetMachine", + "consumes":[ + + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"The subscription id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"The resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"The migrate project name.", + "required":true, + "type":"string" + }, + { + "name":"machineName", + "in":"path", + "description":"The ARM name of the machine to be fetched.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Machine" + } + } + }, + "deprecated":false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}":{ + "get":{ + "tags":[ + "MigrateProjects" + ], + "summary":"Method to get a migrate project.", + "operationId":"MigrateProjects_GetMigrateProject", + "consumes":[ + + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"Subscription Id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"Resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"Migrate Project name.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/MigrateProject" + } + } + }, + "deprecated":false + }, + "put":{ + "tags":[ + "MigrateProjects" + ], + "summary":"Method to create or update a migrate project.", + "operationId":"MigrateProjects_PutMigrateProject", + "consumes":[ + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"Subscription Id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"Resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"Migrate Project name.", + "required":true, + "type":"string" + }, + { + "name":"body", + "in":"body", + "description":"Body with migrate project details.", + "required":true, + "schema":{ + "$ref":"#/definitions/MigrateProject" + } + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/MigrateProject" + } + }, + "201":{ + "description":"Created", + "schema":{ + "$ref":"#/definitions/MigrateProject" + } + } + }, + "deprecated":false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/registerTool":{ + "post":{ + "tags":[ + "MigrateProjects" + ], + "summary":"Registers a tool with the migrate project.", + "operationId":"MigrateProjects_RegisterTool", + "consumes":[ + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"The subscription id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"The resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"The migrate project name.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + }, + { + "name":"input", + "in":"body", + "description":"Input containing the name of the tool to be registered.", + "required":true, + "schema":{ + "$ref":"#/definitions/RegisterToolInput" + } + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/RegistrationResult" + } + } + }, + "deprecated":false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/refreshSummary":{ + "post":{ + "tags":[ + "MigrateProjects" + ], + "summary":"Refresh the summary of the migrate project.", + "operationId":"MigrateProjects_RefreshMigrateProjectSummary", + "consumes":[ + + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"The subscription id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"The resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"The migrate project name.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/RefreshSummaryResult" + } + } + }, + "deprecated":false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}":{ + "get":{ + "tags":[ + "Solutions" + ], + "summary":"Gets a solution in the migrate project.", + "operationId":"Solutions_GetSolution", + "consumes":[ + + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"The subscription id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"The resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"The migrate project name.", + "required":true, + "type":"string" + }, + { + "name":"solutionName", + "in":"path", + "description":"The name of the solution to be fetched.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Solution" + } + } + }, + "deprecated":false + }, + "put":{ + "tags":[ + "Solutions" + ], + "summary":"Creates a solution in the migrate project.", + "operationId":"Solutions_PutSolution", + "consumes":[ + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"The subscription id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"The resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"The migrate project name.", + "required":true, + "type":"string" + }, + { + "name":"solutionName", + "in":"path", + "description":"The name of the solution to be created.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + }, + { + "name":"solutionInput", + "in":"body", + "description":"The input for the solution.", + "required":true, + "schema":{ + "$ref":"#/definitions/Solution" + } + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Solution" + } + } + }, + "deprecated":false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions":{ + "get":{ + "tags":[ + "Solutions" + ], + "summary":"Gets the list of solutions in the migrate project.", + "operationId":"Solutions_EnumerateSolutions", + "consumes":[ + + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"The subscription id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"The resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"The name of the migrate project.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/SolutionsCollection" + } + } + }, + "deprecated":false + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}/getConfig":{ + "post":{ + "tags":[ + "Solutions" + ], + "summary":"Gets the config for the solution in the migrate project.", + "operationId":"Solutions_GetConfig", + "consumes":[ + + ], + "produces":[ + "application/json", + "text/json", + "application/xml", + "text/xml" + ], + "parameters":[ + { + "name":"subscriptionId", + "in":"path", + "description":"The subscription id.", + "required":true, + "type":"string" + }, + { + "name":"resourceGroupName", + "in":"path", + "description":"The resource group name.", + "required":true, + "type":"string" + }, + { + "name":"migrateProjectName", + "in":"path", + "description":"The migrate project name.", + "required":true, + "type":"string" + }, + { + "name":"solutionName", + "in":"path", + "description":"The name of the solution for which config is being fetched.", + "required":true, + "type":"string" + }, + { + "name":"api-version", + "in":"query", + "required":true, + "type":"string" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/SolutionConfig" + } + } + }, + "deprecated":false + } + } + }, + "/providers/Microsoft.Migrate/operations":{ + "get":{ + "summary":"Get list of operations supported in the API.", + "description":"Get a list of REST API supported by Microsoft.Migrate provider.", + "operationId":"Operations_List", + "responses":{ + "200":{ + "description":"OK. Returns list of operations.", + "schema":{ + "$ref":"#/definitions/OperationResultList" + } + } + }, + "x-ms-pageable":{ + "nextLinkName":null + }, + "x-ms-examples":{ + "Operations_List":{ + "$ref":"./examples/Operations_List.json" + } + } + } + }, + "definitions":{ + "Object":{ + "type":"object", + "properties":{ + + } + }, + "ErrorCollection":{ + "description":"Collection of errors.", + "type":"object", + "properties":{ + "value":{ + "description":"Gets or sets the machines.", + "type":"array", + "items":{ + "$ref":"#/definitions/Error" + } + }, + "nextLink":{ + "description":"Gets or sets the value of nextLink.", + "type":"string" + } + } + }, + "Error":{ + "description":"Error REST resource.", + "type":"object", + "properties":{ + "id":{ + "description":"Gets or sets the relative URL to get to this REST resource.", + "type":"string" + }, + "name":{ + "description":"Gets or sets the name of this REST resource.", + "type":"string" + }, + "type":{ + "description":"Gets the type of this REST resource.", + "type":"string", + "readOnly":true + }, + "properties":{ + "$ref":"#/definitions/ErrorProperties", + "description":"Gets or sets the properties of the error." + } + } + }, + "ErrorProperties":{ + "description":"Properties of the error resource.", + "type":"object", + "properties":{ + "errorCode":{ + "description":"Gets or sets the error code.", + "type":"string" + }, + "errorMessage":{ + "description":"Gets or sets the error message.", + "type":"string" + }, + "recommendation":{ + "description":"Gets or sets the recommendation for the error.", + "type":"string" + }, + "possibleCauses":{ + "description":"Gets or sets the possible causes for the error.", + "type":"string" + }, + "solution":{ + "description":"Gets or sets the solution for which the error is being reported.", + "type":"string" + }, + "machine":{ + "description":"Gets or sets the machine for which the error is being reported.", + "type":"string" + } + } + }, + "ODataQueryOptions`1":{ + "type":"object", + "properties":{ + "ifMatch":{ + "$ref":"#/definitions/Object", + "readOnly":true + }, + "ifNoneMatch":{ + "$ref":"#/definitions/Object", + "readOnly":true + }, + "request":{ + "$ref":"#/definitions/Object", + "readOnly":true + }, + "context":{ + "$ref":"#/definitions/ODataQueryContext", + "readOnly":true + }, + "rawValues":{ + "$ref":"#/definitions/ODataRawQueryOptions", + "readOnly":true + }, + "selectExpand":{ + "$ref":"#/definitions/SelectExpandQueryOption", + "readOnly":true + }, + "apply":{ + "$ref":"#/definitions/ApplyQueryOption", + "readOnly":true + }, + "filter":{ + "$ref":"#/definitions/FilterQueryOption", + "readOnly":true + }, + "orderBy":{ + "$ref":"#/definitions/OrderByQueryOption", + "readOnly":true + }, + "skip":{ + "$ref":"#/definitions/SkipQueryOption", + "readOnly":true + }, + "top":{ + "$ref":"#/definitions/TopQueryOption", + "readOnly":true + }, + "count":{ + "$ref":"#/definitions/CountQueryOption", + "readOnly":true + }, + "validator":{ + "$ref":"#/definitions/ODataQueryValidator" + } + } + }, + "ODataQueryContext":{ + "type":"object", + "properties":{ + "defaultQuerySettings":{ + "$ref":"#/definitions/DefaultQuerySettings", + "readOnly":true + }, + "model":{ + "$ref":"#/definitions/IEdmModel", + "readOnly":true + }, + "elementType":{ + "$ref":"#/definitions/IEdmType", + "readOnly":true + }, + "navigationSource":{ + "$ref":"#/definitions/IEdmNavigationSource", + "readOnly":true + }, + "elementClrType":{ + "type":"string", + "readOnly":true + }, + "path":{ + "$ref":"#/definitions/ODataPath", + "readOnly":true + }, + "requestContainer":{ + "$ref":"#/definitions/IServiceProvider", + "readOnly":true + } + } + }, + "ODataRawQueryOptions":{ + "type":"object", + "properties":{ + "filter":{ + "type":"string", + "readOnly":true + }, + "apply":{ + "type":"string", + "readOnly":true + }, + "orderBy":{ + "type":"string", + "readOnly":true + }, + "top":{ + "type":"string", + "readOnly":true + }, + "skip":{ + "type":"string", + "readOnly":true + }, + "select":{ + "type":"string", + "readOnly":true + }, + "expand":{ + "type":"string", + "readOnly":true + }, + "count":{ + "type":"string", + "readOnly":true + }, + "format":{ + "type":"string", + "readOnly":true + }, + "skipToken":{ + "type":"string", + "readOnly":true + }, + "deltaToken":{ + "type":"string", + "readOnly":true + } + } + }, + "SelectExpandQueryOption":{ + "type":"object", + "properties":{ + "context":{ + "$ref":"#/definitions/ODataQueryContext", + "readOnly":true + }, + "rawSelect":{ + "type":"string", + "readOnly":true + }, + "rawExpand":{ + "type":"string", + "readOnly":true + }, + "validator":{ + "$ref":"#/definitions/SelectExpandQueryValidator" + }, + "selectExpandClause":{ + "$ref":"#/definitions/SelectExpandClause", + "readOnly":true + }, + "levelsMaxLiteralExpansionDepth":{ + "format":"int32", + "type":"integer" + } + } + }, + "ApplyQueryOption":{ + "type":"object", + "properties":{ + "context":{ + "$ref":"#/definitions/ODataQueryContext", + "readOnly":true + }, + "resultClrType":{ + "type":"string", + "readOnly":true + }, + "applyClause":{ + "$ref":"#/definitions/ApplyClause", + "readOnly":true + }, + "rawValue":{ + "type":"string", + "readOnly":true + } + } + }, + "FilterQueryOption":{ + "type":"object", + "properties":{ + "context":{ + "$ref":"#/definitions/ODataQueryContext", + "readOnly":true + }, + "validator":{ + "$ref":"#/definitions/FilterQueryValidator" + }, + "filterClause":{ + "$ref":"#/definitions/FilterClause", + "readOnly":true + }, + "rawValue":{ + "type":"string", + "readOnly":true + } + } + }, + "OrderByQueryOption":{ + "type":"object", + "properties":{ + "context":{ + "$ref":"#/definitions/ODataQueryContext", + "readOnly":true + }, + "orderByNodes":{ + "type":"array", + "items":{ + "$ref":"#/definitions/OrderByNode" + }, + "readOnly":true + }, + "rawValue":{ + "type":"string", + "readOnly":true + }, + "validator":{ + "$ref":"#/definitions/OrderByQueryValidator" + }, + "orderByClause":{ + "$ref":"#/definitions/OrderByClause", + "readOnly":true + } + } + }, + "SkipQueryOption":{ + "type":"object", + "properties":{ + "context":{ + "$ref":"#/definitions/ODataQueryContext", + "readOnly":true + }, + "rawValue":{ + "type":"string", + "readOnly":true + }, + "value":{ + "format":"int32", + "type":"integer", + "readOnly":true + }, + "validator":{ + "$ref":"#/definitions/SkipQueryValidator" + } + } + }, + "TopQueryOption":{ + "type":"object", + "properties":{ + "context":{ + "$ref":"#/definitions/ODataQueryContext", + "readOnly":true + }, + "rawValue":{ + "type":"string", + "readOnly":true + }, + "value":{ + "format":"int32", + "type":"integer", + "readOnly":true + }, + "validator":{ + "$ref":"#/definitions/TopQueryValidator" + } + } + }, + "CountQueryOption":{ + "type":"object", + "properties":{ + "context":{ + "$ref":"#/definitions/ODataQueryContext", + "readOnly":true + }, + "rawValue":{ + "type":"string", + "readOnly":true + }, + "value":{ + "type":"boolean", + "readOnly":true + }, + "validator":{ + "$ref":"#/definitions/CountQueryValidator" + } + } + }, + "ODataQueryValidator":{ + "type":"object", + "properties":{ + + } + }, + "DefaultQuerySettings":{ + "type":"object", + "properties":{ + "enableExpand":{ + "type":"boolean" + }, + "enableSelect":{ + "type":"boolean" + }, + "enableCount":{ + "type":"boolean" + }, + "enableOrderBy":{ + "type":"boolean" + }, + "enableFilter":{ + "type":"boolean" + }, + "maxTop":{ + "format":"int32", + "type":"integer" + } + } + }, + "IEdmModel":{ + "type":"object", + "properties":{ + "schemaElements":{ + "type":"array", + "items":{ + "$ref":"#/definitions/IEdmSchemaElement" + }, + "readOnly":true + }, + "vocabularyAnnotations":{ + "type":"array", + "items":{ + "$ref":"#/definitions/IEdmVocabularyAnnotation" + }, + "readOnly":true + }, + "referencedModels":{ + "type":"array", + "items":{ + "$ref":"#/definitions/IEdmModel" + }, + "readOnly":true + }, + "declaredNamespaces":{ + "type":"array", + "items":{ + "type":"string" + }, + "readOnly":true + }, + "directValueAnnotationsManager":{ + "$ref":"#/definitions/IEdmDirectValueAnnotationsManager", + "readOnly":true + }, + "entityContainer":{ + "$ref":"#/definitions/IEdmEntityContainer", + "readOnly":true + } + } + }, + "IEdmType":{ + "type":"object", + "properties":{ + "typeKind":{ + "enum":[ + "None", + "Primitive", + "Entity", + "Complex", + "Collection", + "EntityReference", + "Enum", + "TypeDefinition", + "Untyped", + "Path" + ], + "type":"string", + "readOnly":true + } + } + }, + "IEdmNavigationSource":{ + "type":"object", + "properties":{ + "navigationPropertyBindings":{ + "type":"array", + "items":{ + "$ref":"#/definitions/IEdmNavigationPropertyBinding" + }, + "readOnly":true + }, + "path":{ + "$ref":"#/definitions/IEdmPathExpression", + "readOnly":true + }, + "type":{ + "$ref":"#/definitions/IEdmType", + "readOnly":true + }, + "name":{ + "type":"string", + "readOnly":true + } + } + }, + "ODataPath":{ + "type":"object", + "properties":{ + "edmType":{ + "$ref":"#/definitions/IEdmType", + "readOnly":true + }, + "navigationSource":{ + "$ref":"#/definitions/IEdmNavigationSource", + "readOnly":true + }, + "segments":{ + "type":"array", + "items":{ + "$ref":"#/definitions/ODataPathSegment" + }, + "readOnly":true + }, + "pathTemplate":{ + "type":"string", + "readOnly":true + }, + "path":{ + "type":"array", + "items":{ + "$ref":"#/definitions/ODataPathSegment" + }, + "readOnly":true + } + } + }, + "IServiceProvider":{ + "type":"object", + "properties":{ + + } + }, + "SelectExpandQueryValidator":{ + "type":"object", + "properties":{ + + } + }, + "SelectExpandClause":{ + "type":"object", + "properties":{ + "selectedItems":{ + "type":"array", + "items":{ + "$ref":"#/definitions/SelectItem" + }, + "readOnly":true + }, + "allSelected":{ + "type":"boolean", + "readOnly":true + } + } + }, + "ApplyClause":{ + "type":"object", + "properties":{ + "transformations":{ + "type":"array", + "items":{ + "$ref":"#/definitions/TransformationNode" + }, + "readOnly":true + } + } + }, + "FilterQueryValidator":{ + "type":"object", + "properties":{ + + } + }, + "FilterClause":{ + "type":"object", + "properties":{ + "expression":{ + "$ref":"#/definitions/SingleValueNode", + "readOnly":true + }, + "rangeVariable":{ + "$ref":"#/definitions/RangeVariable", + "readOnly":true + }, + "itemType":{ + "$ref":"#/definitions/IEdmTypeReference", + "readOnly":true + } + } + }, + "OrderByNode":{ + "type":"object", + "properties":{ + "direction":{ + "enum":[ + "Ascending", + "Descending" + ], + "type":"string", + "readOnly":true + } + } + }, + "OrderByQueryValidator":{ + "type":"object", + "properties":{ + + } + }, + "OrderByClause":{ + "type":"object", + "properties":{ + "thenBy":{ + "$ref":"#/definitions/OrderByClause", + "readOnly":true + }, + "expression":{ + "$ref":"#/definitions/SingleValueNode", + "readOnly":true + }, + "direction":{ + "enum":[ + "Ascending", + "Descending" + ], + "type":"string", + "readOnly":true + }, + "rangeVariable":{ + "$ref":"#/definitions/RangeVariable", + "readOnly":true + }, + "itemType":{ + "$ref":"#/definitions/IEdmTypeReference", + "readOnly":true + } + } + }, + "SkipQueryValidator":{ + "type":"object", + "properties":{ + + } + }, + "TopQueryValidator":{ + "type":"object", + "properties":{ + + } + }, + "CountQueryValidator":{ + "type":"object", + "properties":{ + + } + }, + "IEdmSchemaElement":{ + "type":"object", + "properties":{ + "schemaElementKind":{ + "enum":[ + "None", + "TypeDefinition", + "Term", + "Action", + "EntityContainer", + "Function" + ], + "type":"string", + "readOnly":true + }, + "namespace":{ + "type":"string", + "readOnly":true + }, + "name":{ + "type":"string", + "readOnly":true + } + } + }, + "IEdmVocabularyAnnotation":{ + "type":"object", + "properties":{ + "qualifier":{ + "type":"string", + "readOnly":true + }, + "term":{ + "$ref":"#/definitions/IEdmTerm", + "readOnly":true + }, + "target":{ + "$ref":"#/definitions/IEdmVocabularyAnnotatable", + "readOnly":true + }, + "value":{ + "$ref":"#/definitions/IEdmExpression", + "readOnly":true + } + } + }, + "IEdmDirectValueAnnotationsManager":{ + "type":"object", + "properties":{ + + } + }, + "IEdmEntityContainer":{ + "type":"object", + "properties":{ + "elements":{ + "type":"array", + "items":{ + "$ref":"#/definitions/IEdmEntityContainerElement" + }, + "readOnly":true + }, + "schemaElementKind":{ + "enum":[ + "None", + "TypeDefinition", + "Term", + "Action", + "EntityContainer", + "Function" + ], + "type":"string", + "readOnly":true + }, + "namespace":{ + "type":"string", + "readOnly":true + }, + "name":{ + "type":"string", + "readOnly":true + } + } + }, + "IEdmNavigationPropertyBinding":{ + "type":"object", + "properties":{ + "navigationProperty":{ + "$ref":"#/definitions/IEdmNavigationProperty", + "readOnly":true + }, + "target":{ + "$ref":"#/definitions/IEdmNavigationSource", + "readOnly":true + }, + "path":{ + "$ref":"#/definitions/IEdmPathExpression", + "readOnly":true + } + } + }, + "IEdmPathExpression":{ + "type":"object", + "properties":{ + "pathSegments":{ + "type":"array", + "items":{ + "type":"string" + }, + "readOnly":true + }, + "path":{ + "type":"string", + "readOnly":true + }, + "expressionKind":{ + "enum":[ + "None", + "BinaryConstant", + "BooleanConstant", + "DateTimeOffsetConstant", + "DecimalConstant", + "FloatingConstant", + "GuidConstant", + "IntegerConstant", + "StringConstant", + "DurationConstant", + "Null", + "Record", + "Collection", + "Path", + "If", + "Cast", + "IsType", + "FunctionApplication", + "LabeledExpressionReference", + "Labeled", + "PropertyPath", + "NavigationPropertyPath", + "DateConstant", + "TimeOfDayConstant", + "EnumMember", + "AnnotationPath" + ], + "type":"string", + "readOnly":true + } + } + }, + "ODataPathSegment":{ + "type":"object", + "properties":{ + "edmType":{ + "$ref":"#/definitions/IEdmType", + "readOnly":true + }, + "identifier":{ + "type":"string" + } + } + }, + "SelectItem":{ + "type":"object", + "properties":{ + + } + }, + "TransformationNode":{ + "type":"object", + "properties":{ + "kind":{ + "enum":[ + "Aggregate", + "GroupBy", + "Filter", + "Compute" + ], + "type":"string", + "readOnly":true + } + } + }, + "SingleValueNode":{ + "type":"object", + "properties":{ + "typeReference":{ + "$ref":"#/definitions/IEdmTypeReference", + "readOnly":true + }, + "kind":{ + "enum":[ + "None", + "Constant", + "Convert", + "NonResourceRangeVariableReference", + "BinaryOperator", + "UnaryOperator", + "SingleValuePropertyAccess", + "CollectionPropertyAccess", + "SingleValueFunctionCall", + "Any", + "CollectionNavigationNode", + "SingleNavigationNode", + "SingleValueOpenPropertyAccess", + "SingleResourceCast", + "All", + "CollectionResourceCast", + "ResourceRangeVariableReference", + "SingleResourceFunctionCall", + "CollectionFunctionCall", + "CollectionResourceFunctionCall", + "NamedFunctionParameter", + "ParameterAlias", + "EntitySet", + "KeyLookup", + "SearchTerm", + "CollectionOpenPropertyAccess", + "CollectionComplexNode", + "SingleComplexNode", + "Count", + "SingleValueCast", + "CollectionPropertyNode", + "AggregatedCollectionPropertyNode", + "In", + "CollectionConstant" + ], + "type":"string", + "readOnly":true + } + } + }, + "RangeVariable":{ + "type":"object", + "properties":{ + "name":{ + "type":"string", + "readOnly":true + }, + "typeReference":{ + "$ref":"#/definitions/IEdmTypeReference", + "readOnly":true + }, + "kind":{ + "format":"int32", + "type":"integer", + "readOnly":true + } + } + }, + "IEdmTypeReference":{ + "type":"object", + "properties":{ + "isNullable":{ + "type":"boolean", + "readOnly":true + }, + "definition":{ + "$ref":"#/definitions/IEdmType", + "readOnly":true + } + } + }, + "IEdmTerm":{ + "type":"object", + "properties":{ + "type":{ + "$ref":"#/definitions/IEdmTypeReference", + "readOnly":true + }, + "appliesTo":{ + "type":"string", + "readOnly":true + }, + "defaultValue":{ + "type":"string", + "readOnly":true + }, + "schemaElementKind":{ + "enum":[ + "None", + "TypeDefinition", + "Term", + "Action", + "EntityContainer", + "Function" + ], + "type":"string", + "readOnly":true + }, + "namespace":{ + "type":"string", + "readOnly":true + }, + "name":{ + "type":"string", + "readOnly":true + } + } + }, + "IEdmVocabularyAnnotatable":{ + "type":"object", + "properties":{ + + } + }, + "IEdmExpression":{ + "type":"object", + "properties":{ + "expressionKind":{ + "enum":[ + "None", + "BinaryConstant", + "BooleanConstant", + "DateTimeOffsetConstant", + "DecimalConstant", + "FloatingConstant", + "GuidConstant", + "IntegerConstant", + "StringConstant", + "DurationConstant", + "Null", + "Record", + "Collection", + "Path", + "If", + "Cast", + "IsType", + "FunctionApplication", + "LabeledExpressionReference", + "Labeled", + "PropertyPath", + "NavigationPropertyPath", + "DateConstant", + "TimeOfDayConstant", + "EnumMember", + "AnnotationPath" + ], + "type":"string", + "readOnly":true + } + } + }, + "IEdmEntityContainerElement":{ + "type":"object", + "properties":{ + "containerElementKind":{ + "enum":[ + "None", + "EntitySet", + "ActionImport", + "FunctionImport", + "Singleton" + ], + "type":"string", + "readOnly":true + }, + "container":{ + "$ref":"#/definitions/IEdmEntityContainer", + "readOnly":true + }, + "name":{ + "type":"string", + "readOnly":true + } + } + }, + "IEdmNavigationProperty":{ + "type":"object", + "properties":{ + "partner":{ + "$ref":"#/definitions/IEdmNavigationProperty", + "readOnly":true + }, + "onDelete":{ + "enum":[ + "None", + "Cascade" + ], + "type":"string", + "readOnly":true + }, + "containsTarget":{ + "type":"boolean", + "readOnly":true + }, + "referentialConstraint":{ + "$ref":"#/definitions/IEdmReferentialConstraint", + "readOnly":true + }, + "propertyKind":{ + "enum":[ + "None", + "Structural", + "Navigation" + ], + "type":"string", + "readOnly":true + }, + "type":{ + "$ref":"#/definitions/IEdmTypeReference", + "readOnly":true + }, + "declaringType":{ + "$ref":"#/definitions/IEdmStructuredType", + "readOnly":true + }, + "name":{ + "type":"string", + "readOnly":true + } + } + }, + "IEdmReferentialConstraint":{ + "type":"object", + "properties":{ + "propertyPairs":{ + "type":"array", + "items":{ + "$ref":"#/definitions/EdmReferentialConstraintPropertyPair" + }, + "readOnly":true + } + } + }, + "IEdmStructuredType":{ + "type":"object", + "properties":{ + "isAbstract":{ + "type":"boolean", + "readOnly":true + }, + "isOpen":{ + "type":"boolean", + "readOnly":true + }, + "baseType":{ + "$ref":"#/definitions/IEdmStructuredType", + "readOnly":true + }, + "declaredProperties":{ + "type":"array", + "items":{ + "$ref":"#/definitions/IEdmProperty" + }, + "readOnly":true + }, + "typeKind":{ + "enum":[ + "None", + "Primitive", + "Entity", + "Complex", + "Collection", + "EntityReference", + "Enum", + "TypeDefinition", + "Untyped", + "Path" + ], + "type":"string", + "readOnly":true + } + } + }, + "EdmReferentialConstraintPropertyPair":{ + "type":"object", + "properties":{ + "dependentProperty":{ + "$ref":"#/definitions/IEdmStructuralProperty", + "readOnly":true + }, + "principalProperty":{ + "$ref":"#/definitions/IEdmStructuralProperty", + "readOnly":true + } + } + }, + "IEdmProperty":{ + "type":"object", + "properties":{ + "propertyKind":{ + "enum":[ + "None", + "Structural", + "Navigation" + ], + "type":"string", + "readOnly":true + }, + "type":{ + "$ref":"#/definitions/IEdmTypeReference", + "readOnly":true + }, + "declaringType":{ + "$ref":"#/definitions/IEdmStructuredType", + "readOnly":true + }, + "name":{ + "type":"string", + "readOnly":true + } + } + }, + "IEdmStructuralProperty":{ + "type":"object", + "properties":{ + "defaultValueString":{ + "type":"string", + "readOnly":true + }, + "propertyKind":{ + "enum":[ + "None", + "Structural", + "Navigation" + ], + "type":"string", + "readOnly":true + }, + "type":{ + "$ref":"#/definitions/IEdmTypeReference", + "readOnly":true + }, + "declaringType":{ + "$ref":"#/definitions/IEdmStructuredType", + "readOnly":true + }, + "name":{ + "type":"string", + "readOnly":true + } + } + }, + "MachineCollection":{ + "description":"Collection of machines.", + "type":"object", + "properties":{ + "value":{ + "description":"Gets or sets the machines.", + "type":"array", + "items":{ + "$ref":"#/definitions/Machine" + } + }, + "nextLink":{ + "description":"Gets or sets the value of nextLink.", + "type":"string" + } + } + }, + "Machine":{ + "description":"Machine REST resource.", + "type":"object", + "properties":{ + "id":{ + "description":"Gets or sets the relative URL to get to this REST resource.", + "type":"string" + }, + "name":{ + "description":"Gets or sets the name of this REST resource.", + "type":"string" + }, + "type":{ + "description":"Gets the type of this REST resource.", + "type":"string", + "readOnly":true + }, + "properties":{ + "$ref":"#/definitions/MachineProperties", + "description":"Gets or sets the properties of the machine." + } + } + }, + "MachineProperties":{ + "description":"Properties of the machine resource.", + "type":"object", + "properties":{ + "discoveryData":{ + "description":"Gets or sets the discovery details of the machine published by various sources.", + "type":"array", + "items":{ + "$ref":"#/definitions/DiscoveryDetails" + } + }, + "assessmentData":{ + "description":"Gets or sets the assessment details of the machine published by various sources.", + "type":"array", + "items":{ + "$ref":"#/definitions/AssessmentDetails" + } + }, + "migrationData":{ + "description":"Gets or sets the migration details of the machine published by various sources.", + "type":"array", + "items":{ + "$ref":"#/definitions/MigrationDetails" + } + } + } + }, + "DiscoveryDetails":{ + "description":"Discovery properties that can be published by various ISVs.", + "type":"object", + "properties":{ + "osType":{ + "description":"Gets or sets the OS type.", + "type":"string" + }, + "osName":{ + "description":"Gets or sets the OS name.", + "type":"string" + }, + "osVersion":{ + "description":"Gets or sets the OS version.", + "type":"string" + }, + "enqueueTime":{ + "description":"Gets or sets the time the message was enqueued.", + "type":"string" + }, + "solutionName":{ + "description":"Gets or sets the name of the solution that sent the data.", + "type":"string" + }, + "machineId":{ + "description":"Gets or sets the unique identifier of the machine.", + "type":"string" + }, + "machineManagerId":{ + "description":"Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", + "type":"string" + }, + "machineName":{ + "description":"Gets or sets the name of the machine.", + "type":"string" + }, + "extendedInfo":{ + "description":"Gets or sets the ISV specific extended information.", + "type":"object", + "additionalProperties":{ + "type":"string" + } + } + } + }, + "AssessmentDetails":{ + "description":"Assessment properties that can be shared by various publishers.", + "type":"object", + "properties":{ + "assessmentId":{ + "description":"Gets or sets the id of the assessment done on the machine.", + "type":"string" + }, + "targetVMSize":{ + "description":"Gets or sets the target VM size.", + "type":"string" + }, + "targetVMLocation":{ + "description":"Gets or sets the target VM location.", + "type":"string" + }, + "targetStorageType":{ + "description":"Gets or sets the target storage type.", + "type":"object", + "additionalProperties":{ + "type":"string" + } + }, + "enqueueTime":{ + "description":"Gets or sets the time the message was enqueued.", + "type":"string" + }, + "solutionName":{ + "description":"Gets or sets the name of the solution that sent the data.", + "type":"string" + }, + "machineId":{ + "description":"Gets or sets the unique identifier of the machine.", + "type":"string" + }, + "machineManagerId":{ + "description":"Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", + "type":"string" + }, + "machineName":{ + "description":"Gets or sets the name of the machine.", + "type":"string" + }, + "extendedInfo":{ + "description":"Gets or sets the ISV specific extended information.", + "type":"object", + "additionalProperties":{ + "type":"string" + } + } + } + }, + "MigrationDetails":{ + "description":"Migration properties that can be shared by various publishers.", + "type":"object", + "properties":{ + "migrationPhase":{ + "description":"Gets or sets the phase of migration of the machine.", + "type":"string" + }, + "migrationTested":{ + "description":"Gets or sets a value indicating whether migration was tested on the machine.", + "type":"boolean" + }, + "replicationProgressPercentage":{ + "format":"int32", + "description":"Gets or sets the progress percentage of migration on the machine.", + "type":"integer" + }, + "targetVMArmId":{ + "description":"Gets or sets the ARM id the migrated VM.", + "type":"string" + }, + "enqueueTime":{ + "description":"Gets or sets the time the message was enqueued.", + "type":"string" + }, + "solutionName":{ + "description":"Gets or sets the name of the solution that sent the data.", + "type":"string" + }, + "machineId":{ + "description":"Gets or sets the unique identifier of the machine.", + "type":"string" + }, + "machineManagerId":{ + "description":"Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", + "type":"string" + }, + "machineName":{ + "description":"Gets or sets the name of the machine.", + "type":"string" + }, + "extendedInfo":{ + "description":"Gets or sets the ISV specific extended information.", + "type":"object", + "additionalProperties":{ + "type":"string" + } + } + } + }, + "MigrateProject":{ + "description":"Migrate Project REST Resource.", + "type":"object", + "properties":{ + "eTag":{ + "description":"Gets or sets the eTag for concurrency control.", + "type":"string" + }, + "location":{ + "description":"Gets or sets the Azure location in which migrate project is created.", + "type":"string" + }, + "properties":{ + "$ref":"#/definitions/MigrateProjectProperties", + "description":"Gets or sets the nested properties." + }, + "id":{ + "description":"Gets the relative URL to get this migrate project.", + "type":"string", + "readOnly":true + }, + "name":{ + "description":"Gets or sets the name of the migrate project.", + "type":"string" + }, + "type":{ + "description":"Handled by resource provider. Type = Microsoft.Migrate/MigrateProject.", + "type":"string", + "readOnly":true + } + } + }, + "MigrateProjectProperties":{ + "description":"Class for migrate project properties.", + "type":"object", + "properties":{ + "registeredTools":{ + "description":"Gets or sets the list of tools registered with the migrate project.", + "type":"array", + "items":{ + "type":"string" + } + }, + "summary":{ + "description":"Gets or sets the goals summary of the migrate Project. \r\n It maps the goal to its summary object.", + "type":"object", + "additionalProperties":{ + "$ref":"#/definitions/GoalSummary" + } + } + } + }, + "GoalSummary":{ + "description":"Class representing the summary object for goal.", + "type":"object", + "properties":{ + "discoveredCount":{ + "format":"int32", + "description":"Gets or sets the count of entities discovered.", + "type":"integer" + }, + "assessedCount":{ + "format":"int32", + "description":"Gets or sets the count of entities assessed.", + "type":"integer" + }, + "replicatingCount":{ + "format":"int32", + "description":"Gets or sets the count of entities being replicated.", + "type":"integer" + }, + "migratedCount":{ + "format":"int32", + "description":"Gets or sets the count of entities migrated.", + "type":"integer" + } + } + }, + "RegisterToolInput":{ + "description":"Class representing the register tool input.", + "type":"object", + "properties":{ + "tool":{ + "description":"Gets or sets the tool to be registered.", + "type":"string" + } + } + }, + "RegistrationResult":{ + "description":"Class representing the registration status of a tool with the migrate project.", + "type":"object", + "properties":{ + "isRegistered":{ + "description":"Gets or sets a value indicating whether the tool is registered or not.", + "type":"boolean" + } + } + }, + "RefreshSummaryResult":{ + "description":"Class representing the refresh summary status of the migrate project.", + "type":"object", + "properties":{ + "isRefreshed":{ + "description":"Gets or sets a value indicating whether the migrate project summary is refreshed.", + "type":"boolean" + } + } + }, + "Solution":{ + "description":"Solution REST Resource.", + "type":"object", + "properties":{ + "id":{ + "description":"Gets or sets the relative URL to get to this REST resource.", + "type":"string" + }, + "name":{ + "description":"Gets or sets the name of this REST resource.", + "type":"string" + }, + "type":{ + "description":"Gets the type of this REST resource.", + "type":"string", + "readOnly":true + }, + "properties":{ + "$ref":"#/definitions/SolutionProperties", + "description":"Gets or sets the properties of the solution." + } + } + }, + "SolutionProperties":{ + "description":"Class for solution properties.", + "type":"object", + "properties":{ + "tool":{ + "description":"Gets or sets the tool being used in the solution.", + "type":"string" + }, + "purpose":{ + "description":"Gets or sets the purpose of the solution.", + "type":"string" + }, + "goal":{ + "description":"Gets or sets the goal of the solution.", + "type":"string" + }, + "isInactive":{ + "description":"Gets or sets a value indicating whether the solution is active or not.", + "type":"boolean" + }, + "summary":{ + "$ref":"#/definitions/SolutionSummary", + "description":"Gets or sets the summary of the solution." + }, + "details":{ + "$ref":"#/definitions/SolutionDetails", + "description":"Gets or sets the details of the solution." + } + } + }, + "SolutionSummary":{ + "description":"Class representing the summary object for solution.", + "type":"object", + "properties":{ + "discoveredCount":{ + "format":"int32", + "description":"Gets or sets the count of entities discovered.", + "type":"integer" + }, + "assessedCount":{ + "format":"int32", + "description":"Gets or sets the count of entities assessed.", + "type":"integer" + }, + "replicatingCount":{ + "format":"int32", + "description":"Gets or sets the count of entities being replicated.", + "type":"integer" + }, + "migratedCount":{ + "format":"int32", + "description":"Gets or sets the count of entities migrated.", + "type":"integer" + } + } + }, + "SolutionDetails":{ + "description":"Class representing the details of the solution.", + "type":"object", + "properties":{ + "groupCount":{ + "format":"int32", + "description":"Gets or sets the count of groups reported by the solution.", + "type":"integer" + }, + "assessmentCount":{ + "format":"int32", + "description":"Gets or sets the count of assessments reported by the solution.", + "type":"integer" + }, + "extendedDetails":{ + "description":"Gets or sets the extended details reported by the solution.", + "type":"object", + "additionalProperties":{ + "type":"string" + } + } + } + }, + "SolutionsCollection":{ + "description":"Collection of solutions.", + "type":"object", + "properties":{ + "value":{ + "description":"Gets or sets the list of solutions.", + "type":"array", + "items":{ + "$ref":"#/definitions/Solution" + } + }, + "nextLink":{ + "description":"Gets or sets the value of next link.", + "type":"string" + } + } + }, + "SolutionConfig":{ + "description":"Class representing the config for the solution in the migrate project.", + "type":"object", + "properties":{ + "publisherSasUri":{ + "description":"Gets or sets the publisher sas uri for the solution.", + "type":"string" + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/readme.md b/specification/migrateprojects/resource-manager/readme.md new file mode 100644 index 000000000000..b02dc91ec9dc --- /dev/null +++ b/specification/migrateprojects/resource-manager/readme.md @@ -0,0 +1,99 @@ +# Azure Migrate + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Azure Migrate. + +--- + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-02 +``` + +### Tag: package-2018-02 and java + +These settings apply only when `--tag=package-2018-02 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-02' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.azuremigrate.v2018_02_02 + output-folder: $(azure-libraries-for-java-folder)/azuremigrate/resource-manager/v2018_02_02 +regenerate-manager: true +generate-interface: true +``` + + +## Getting Started +To build the SDK for Migrate, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + + + +### Basic Information +These are the global settings for the API. + +``` yaml +openapi-type: arm +tag: package-2018-02 +``` + + +### Tag: package-2018-02 + +These settings apply only when `--tag=package-2018-02` is specified on the command line. + +``` yaml $(tag) == 'package-2018-02' +input-file: +- Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +``` + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-go +``` + +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + clear-output-folder: true + namespace: migrate +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2018-02 +``` + +### Tag: package-2018-02 and go + +These settings apply only when `--tag=package-2018-02 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2018-02' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2018-02-02/$(namespace) +``` diff --git a/specification/migrateprojects/resource-manager/readme.nodejs.md b/specification/migrateprojects/resource-manager/readme.nodejs.md new file mode 100644 index 000000000000..637579730e84 --- /dev/null +++ b/specification/migrateprojects/resource-manager/readme.nodejs.md @@ -0,0 +1,15 @@ +## Node.js + +These settings apply only when `--nodejs` is specified on the command line. +Please also specify `--node-sdks-folder=`. + +``` yaml $(nodejs) +nodejs: + azure-arm: true + package-name: azure-arm-migrate + package-version: 1.0.0-preview + output-folder: $(node-sdks-folder)/lib/services/migrateprojects + generate-license-txt: true + generate-package-json: true + generate-readme-md: true +``` From 1244a355df0fc8d432edc5e4b2fb6f366ef2045e Mon Sep 17 00:00:00 2001 From: peetlotla Date: Fri, 26 Oct 2018 15:36:35 +0530 Subject: [PATCH 02/35] Adding Operation_List.json to examples --- .../examples/Operations_List.json | 95 +++++++++++++++++++ .../resource-manager/readme.nodejs.md | 4 +- 2 files changed, 97 insertions(+), 2 deletions(-) create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..479697fad4ea --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Migrate/MigrateProjects/read", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects", + "operation": "Read", + "description": "Reads a migrate project" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Write", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects", + "operation": "Write", + "description": "Creates or updates a migrate project" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/registerTool/action", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects", + "operation": "Register tool with migrate project", + "description": "Registers a tool with the migrate project" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Solutions/read", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Solutions", + "operation": "Read", + "description": "Reads a solution" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Solutions/write", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Solutions", + "operation": "Write", + "description": "Creates or updates a solution" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Solutions/getConfig/action", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Solutions", + "operation": "Gets solution config", + "description": "Gets configuration of a solution" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Machines/read", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Machines", + "operation": "Read", + "description": "Reads a machine" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/MigrateErrors/read", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/MigrateErrors", + "operation": "Read", + "description": "Reads a migrate error" + }, + "origin": "user,system" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/readme.nodejs.md b/specification/migrateprojects/resource-manager/readme.nodejs.md index 637579730e84..659dab26dfe8 100644 --- a/specification/migrateprojects/resource-manager/readme.nodejs.md +++ b/specification/migrateprojects/resource-manager/readme.nodejs.md @@ -6,9 +6,9 @@ Please also specify `--node-sdks-folder= Date: Mon, 29 Oct 2018 18:48:51 +0530 Subject: [PATCH 03/35] adding operation result definitions to migrate.json --- .../preview/2018-09-01-preview/migrate.json | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 0f99b6594c35..5385a86eac73 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -2432,6 +2432,66 @@ "type":"string" } } + }, + "OperationResultList":{ + "type":"object", + "description":"List of API operations.", + "properties":{ + "value":{ + "type":"array", + "description":"List of operations.", + "items":{ + "$ref":"#/definitions/Operation" + } + } + } + }, + "Operation":{ + "type":"object", + "description":"A REST API operation supported by the provider.", + "properties":{ + "name":{ + "type":"string", + "description":"Name of the operation.", + "readOnly":true + }, + "display":{ + "description":"Displayable properties of the operation.", + "$ref":"#/definitions/OperationDisplay" + }, + "origin":{ + "type":"string", + "description":"Origin of the operation.", + "readOnly":true + } + } + }, + "OperationDisplay":{ + "type":"object", + "description":"Displayable properties of the operation.", + "readOnly":true, + "properties":{ + "provider":{ + "type":"string", + "description":"Provider of the operation.", + "readOnly":true + }, + "resource":{ + "type":"string", + "description":"Resource operated on by the operation.", + "readOnly":true + }, + "operation":{ + "type":"string", + "description":"Operation Type.", + "readOnly":true + }, + "description":{ + "type":"string", + "description":"Description of the operation.", + "readOnly":true + } + } } } } \ No newline at end of file From eb38afec8c59374590f8db8131e048379c31d3a5 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Mon, 29 Oct 2018 23:53:46 +0530 Subject: [PATCH 04/35] Update specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json Fixing the JSON schema validation for migrate.json --- .../preview/2018-09-01-preview/migrate.json | 1280 ++++++++--------- 1 file changed, 640 insertions(+), 640 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 5385a86eac73..72e7e73155ef 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -1,64 +1,64 @@ -{ +{ "swagger":"2.0", - "info":{ + "info":{ "version":"2018-09-01-preview", "title":"Azure Migrate Hub", "description":"Migrate your workloads to Azure.", - "contact":{ + "contact":{ "name":"Microsoft", "email":"azuremigrate@microsoft.com" } }, "host":"management.azure.com", - "schemes":[ + "schemes":[ "https" ], - "paths":{ - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateErrors":{ - "get":{ - "tags":[ + "paths":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateErrors":{ + "get":{ + "tags":[ "Errors" ], "summary":"Gets a list of errors in the migrate project.", "operationId":"Errors_EnumerateErrors", - "consumes":[ + "consumes":[ ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"The subscription id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"The resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"The name of the migrate project.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" }, - { + { "name":"continuationToken", "in":"query", "description":"Continuation token from the previous call.", @@ -66,10 +66,10 @@ "type":"string" } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/ErrorCollection" } } @@ -77,62 +77,62 @@ "deprecated":false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateErrors/{errorName}":{ - "get":{ - "tags":[ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateErrors/{errorName}":{ + "get":{ + "tags":[ "Errors" ], "summary":"Gets an error in the migrate project.", "operationId":"Errors_GetError", - "consumes":[ + "consumes":[ ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"The subscription id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"The resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"The migrate project name.", "required":true, "type":"string" }, - { + { "name":"errorName", "in":"path", "description":"The ARM name of the error to be fetched.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/Error" } } @@ -140,51 +140,51 @@ "deprecated":false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines":{ - "get":{ - "tags":[ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines":{ + "get":{ + "tags":[ "Machines" ], "summary":"Gets a list of machines in the migrate project.", "operationId":"Machines_EnumerateMachines", - "consumes":[ + "consumes":[ ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"The subscription id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"The resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"The name of the migrate project.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" }, - { + { "name":"continuationToken", "in":"query", "description":"Continuation token from the previous call.", @@ -192,10 +192,10 @@ "type":"string" } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/MachineCollection" } } @@ -203,62 +203,62 @@ "deprecated":false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines/{machineName}":{ - "get":{ - "tags":[ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines/{machineName}":{ + "get":{ + "tags":[ "Machines" ], "summary":"Gets a machine in the migrate project.", "operationId":"Machines_GetMachine", - "consumes":[ + "consumes":[ ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"The subscription id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"The resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"The migrate project name.", "required":true, "type":"string" }, - { + { "name":"machineName", "in":"path", "description":"The ARM name of the machine to be fetched.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/Machine" } } @@ -266,128 +266,128 @@ "deprecated":false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}":{ - "get":{ - "tags":[ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}":{ + "get":{ + "tags":[ "MigrateProjects" ], "summary":"Method to get a migrate project.", "operationId":"MigrateProjects_GetMigrateProject", - "consumes":[ + "consumes":[ ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"Subscription Id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"Resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"Migrate Project name.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/MigrateProject" } } }, "deprecated":false }, - "put":{ - "tags":[ + "put":{ + "tags":[ "MigrateProjects" ], "summary":"Method to create or update a migrate project.", "operationId":"MigrateProjects_PutMigrateProject", - "consumes":[ + "consumes":[ "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"Subscription Id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"Resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"Migrate Project name.", "required":true, "type":"string" }, - { + { "name":"body", "in":"body", "description":"Body with migrate project details.", "required":true, - "schema":{ + "schema":{ "$ref":"#/definitions/MigrateProject" } }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/MigrateProject" } }, - "201":{ + "201":{ "description":"Created", - "schema":{ + "schema":{ "$ref":"#/definitions/MigrateProject" } } @@ -395,68 +395,68 @@ "deprecated":false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/registerTool":{ - "post":{ - "tags":[ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/registerTool":{ + "post":{ + "tags":[ "MigrateProjects" ], "summary":"Registers a tool with the migrate project.", "operationId":"MigrateProjects_RegisterTool", - "consumes":[ + "consumes":[ "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"The subscription id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"The resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"The migrate project name.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" }, - { + { "name":"input", "in":"body", "description":"Input containing the name of the tool to be registered.", "required":true, - "schema":{ + "schema":{ "$ref":"#/definitions/RegisterToolInput" } } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/RegistrationResult" } } @@ -464,55 +464,55 @@ "deprecated":false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/refreshSummary":{ - "post":{ - "tags":[ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/refreshSummary":{ + "post":{ + "tags":[ "MigrateProjects" ], "summary":"Refresh the summary of the migrate project.", "operationId":"MigrateProjects_RefreshMigrateProjectSummary", - "consumes":[ + "consumes":[ ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"The subscription id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"The resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"The migrate project name.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/RefreshSummaryResult" } } @@ -520,136 +520,136 @@ "deprecated":false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}":{ - "get":{ - "tags":[ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}":{ + "get":{ + "tags":[ "Solutions" ], "summary":"Gets a solution in the migrate project.", "operationId":"Solutions_GetSolution", - "consumes":[ + "consumes":[ ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"The subscription id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"The resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"The migrate project name.", "required":true, "type":"string" }, - { + { "name":"solutionName", "in":"path", "description":"The name of the solution to be fetched.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/Solution" } } }, "deprecated":false }, - "put":{ - "tags":[ + "put":{ + "tags":[ "Solutions" ], "summary":"Creates a solution in the migrate project.", "operationId":"Solutions_PutSolution", - "consumes":[ + "consumes":[ "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"The subscription id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"The resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"The migrate project name.", "required":true, "type":"string" }, - { + { "name":"solutionName", "in":"path", "description":"The name of the solution to be created.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" }, - { + { "name":"solutionInput", "in":"body", "description":"The input for the solution.", "required":true, - "schema":{ + "schema":{ "$ref":"#/definitions/Solution" } } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/Solution" } } @@ -657,55 +657,55 @@ "deprecated":false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions":{ - "get":{ - "tags":[ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions":{ + "get":{ + "tags":[ "Solutions" ], "summary":"Gets the list of solutions in the migrate project.", "operationId":"Solutions_EnumerateSolutions", - "consumes":[ + "consumes":[ ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"The subscription id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"The resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"The name of the migrate project.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/SolutionsCollection" } } @@ -713,542 +713,542 @@ "deprecated":false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}/getConfig":{ - "post":{ - "tags":[ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}/getConfig":{ + "post":{ + "tags":[ "Solutions" ], "summary":"Gets the config for the solution in the migrate project.", "operationId":"Solutions_GetConfig", - "consumes":[ + "consumes":[ ], - "produces":[ + "produces":[ "application/json", "text/json", "application/xml", "text/xml" ], - "parameters":[ - { + "parameters":[ + { "name":"subscriptionId", "in":"path", "description":"The subscription id.", "required":true, "type":"string" }, - { + { "name":"resourceGroupName", "in":"path", "description":"The resource group name.", "required":true, "type":"string" }, - { + { "name":"migrateProjectName", "in":"path", "description":"The migrate project name.", "required":true, "type":"string" }, - { + { "name":"solutionName", "in":"path", "description":"The name of the solution for which config is being fetched.", "required":true, "type":"string" }, - { + { "name":"api-version", "in":"query", "required":true, "type":"string" } ], - "responses":{ - "200":{ + "responses":{ + "200":{ "description":"OK", - "schema":{ + "schema":{ "$ref":"#/definitions/SolutionConfig" } } }, "deprecated":false } - } - }, - "/providers/Microsoft.Migrate/operations":{ - "get":{ - "summary":"Get list of operations supported in the API.", - "description":"Get a list of REST API supported by Microsoft.Migrate provider.", - "operationId":"Operations_List", - "responses":{ - "200":{ - "description":"OK. Returns list of operations.", - "schema":{ - "$ref":"#/definitions/OperationResultList" + }, + "/providers/Microsoft.Migrate/operations":{ + "get":{ + "summary":"Get list of operations supported in the API.", + "description":"Get a list of REST API supported by Microsoft.Migrate provider.", + "operationId":"Operations_List", + "responses":{ + "200":{ + "description":"OK. Returns list of operations.", + "schema":{ + "$ref":"#/definitions/OperationResultList" + } + } + }, + "x-ms-pageable":{ + "nextLinkName":null + }, + "x-ms-examples":{ + "Operations_List":{ + "$ref":"./examples/Operations_List.json" } - } - }, - "x-ms-pageable":{ - "nextLinkName":null - }, - "x-ms-examples":{ - "Operations_List":{ - "$ref":"./examples/Operations_List.json" } } } }, - "definitions":{ - "Object":{ + "definitions":{ + "Object":{ "type":"object", - "properties":{ + "properties":{ } }, - "ErrorCollection":{ + "ErrorCollection":{ "description":"Collection of errors.", "type":"object", - "properties":{ - "value":{ + "properties":{ + "value":{ "description":"Gets or sets the machines.", "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/Error" } }, - "nextLink":{ + "nextLink":{ "description":"Gets or sets the value of nextLink.", "type":"string" } } }, - "Error":{ + "Error":{ "description":"Error REST resource.", "type":"object", - "properties":{ - "id":{ + "properties":{ + "id":{ "description":"Gets or sets the relative URL to get to this REST resource.", "type":"string" }, - "name":{ + "name":{ "description":"Gets or sets the name of this REST resource.", "type":"string" }, - "type":{ + "type":{ "description":"Gets the type of this REST resource.", "type":"string", "readOnly":true }, - "properties":{ + "properties":{ "$ref":"#/definitions/ErrorProperties", "description":"Gets or sets the properties of the error." } } }, - "ErrorProperties":{ + "ErrorProperties":{ "description":"Properties of the error resource.", "type":"object", - "properties":{ - "errorCode":{ + "properties":{ + "errorCode":{ "description":"Gets or sets the error code.", "type":"string" }, - "errorMessage":{ + "errorMessage":{ "description":"Gets or sets the error message.", "type":"string" }, - "recommendation":{ + "recommendation":{ "description":"Gets or sets the recommendation for the error.", "type":"string" }, - "possibleCauses":{ + "possibleCauses":{ "description":"Gets or sets the possible causes for the error.", "type":"string" }, - "solution":{ + "solution":{ "description":"Gets or sets the solution for which the error is being reported.", "type":"string" }, - "machine":{ + "machine":{ "description":"Gets or sets the machine for which the error is being reported.", "type":"string" } } }, - "ODataQueryOptions`1":{ + "ODataQueryOptions`1":{ "type":"object", - "properties":{ - "ifMatch":{ + "properties":{ + "ifMatch":{ "$ref":"#/definitions/Object", "readOnly":true }, - "ifNoneMatch":{ + "ifNoneMatch":{ "$ref":"#/definitions/Object", "readOnly":true }, - "request":{ + "request":{ "$ref":"#/definitions/Object", "readOnly":true }, - "context":{ + "context":{ "$ref":"#/definitions/ODataQueryContext", "readOnly":true }, - "rawValues":{ + "rawValues":{ "$ref":"#/definitions/ODataRawQueryOptions", "readOnly":true }, - "selectExpand":{ + "selectExpand":{ "$ref":"#/definitions/SelectExpandQueryOption", "readOnly":true }, - "apply":{ + "apply":{ "$ref":"#/definitions/ApplyQueryOption", "readOnly":true }, - "filter":{ + "filter":{ "$ref":"#/definitions/FilterQueryOption", "readOnly":true }, - "orderBy":{ + "orderBy":{ "$ref":"#/definitions/OrderByQueryOption", "readOnly":true }, - "skip":{ + "skip":{ "$ref":"#/definitions/SkipQueryOption", "readOnly":true }, - "top":{ + "top":{ "$ref":"#/definitions/TopQueryOption", "readOnly":true }, - "count":{ + "count":{ "$ref":"#/definitions/CountQueryOption", "readOnly":true }, - "validator":{ + "validator":{ "$ref":"#/definitions/ODataQueryValidator" } } }, - "ODataQueryContext":{ + "ODataQueryContext":{ "type":"object", - "properties":{ - "defaultQuerySettings":{ + "properties":{ + "defaultQuerySettings":{ "$ref":"#/definitions/DefaultQuerySettings", "readOnly":true }, - "model":{ + "model":{ "$ref":"#/definitions/IEdmModel", "readOnly":true }, - "elementType":{ + "elementType":{ "$ref":"#/definitions/IEdmType", "readOnly":true }, - "navigationSource":{ + "navigationSource":{ "$ref":"#/definitions/IEdmNavigationSource", "readOnly":true }, - "elementClrType":{ + "elementClrType":{ "type":"string", "readOnly":true }, - "path":{ + "path":{ "$ref":"#/definitions/ODataPath", "readOnly":true }, - "requestContainer":{ + "requestContainer":{ "$ref":"#/definitions/IServiceProvider", "readOnly":true } } }, - "ODataRawQueryOptions":{ + "ODataRawQueryOptions":{ "type":"object", - "properties":{ - "filter":{ + "properties":{ + "filter":{ "type":"string", "readOnly":true }, - "apply":{ + "apply":{ "type":"string", "readOnly":true }, - "orderBy":{ + "orderBy":{ "type":"string", "readOnly":true }, - "top":{ + "top":{ "type":"string", "readOnly":true }, - "skip":{ + "skip":{ "type":"string", "readOnly":true }, - "select":{ + "select":{ "type":"string", "readOnly":true }, - "expand":{ + "expand":{ "type":"string", "readOnly":true }, - "count":{ + "count":{ "type":"string", "readOnly":true }, - "format":{ + "format":{ "type":"string", "readOnly":true }, - "skipToken":{ + "skipToken":{ "type":"string", "readOnly":true }, - "deltaToken":{ + "deltaToken":{ "type":"string", "readOnly":true } } }, - "SelectExpandQueryOption":{ + "SelectExpandQueryOption":{ "type":"object", - "properties":{ - "context":{ + "properties":{ + "context":{ "$ref":"#/definitions/ODataQueryContext", "readOnly":true }, - "rawSelect":{ + "rawSelect":{ "type":"string", "readOnly":true }, - "rawExpand":{ + "rawExpand":{ "type":"string", "readOnly":true }, - "validator":{ + "validator":{ "$ref":"#/definitions/SelectExpandQueryValidator" }, - "selectExpandClause":{ + "selectExpandClause":{ "$ref":"#/definitions/SelectExpandClause", "readOnly":true }, - "levelsMaxLiteralExpansionDepth":{ + "levelsMaxLiteralExpansionDepth":{ "format":"int32", "type":"integer" } } }, - "ApplyQueryOption":{ + "ApplyQueryOption":{ "type":"object", - "properties":{ - "context":{ + "properties":{ + "context":{ "$ref":"#/definitions/ODataQueryContext", "readOnly":true }, - "resultClrType":{ + "resultClrType":{ "type":"string", "readOnly":true }, - "applyClause":{ + "applyClause":{ "$ref":"#/definitions/ApplyClause", "readOnly":true }, - "rawValue":{ + "rawValue":{ "type":"string", "readOnly":true } } }, - "FilterQueryOption":{ + "FilterQueryOption":{ "type":"object", - "properties":{ - "context":{ + "properties":{ + "context":{ "$ref":"#/definitions/ODataQueryContext", "readOnly":true }, - "validator":{ + "validator":{ "$ref":"#/definitions/FilterQueryValidator" }, - "filterClause":{ + "filterClause":{ "$ref":"#/definitions/FilterClause", "readOnly":true }, - "rawValue":{ + "rawValue":{ "type":"string", "readOnly":true } } }, - "OrderByQueryOption":{ + "OrderByQueryOption":{ "type":"object", - "properties":{ - "context":{ + "properties":{ + "context":{ "$ref":"#/definitions/ODataQueryContext", "readOnly":true }, - "orderByNodes":{ + "orderByNodes":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/OrderByNode" }, "readOnly":true }, - "rawValue":{ + "rawValue":{ "type":"string", "readOnly":true }, - "validator":{ + "validator":{ "$ref":"#/definitions/OrderByQueryValidator" }, - "orderByClause":{ + "orderByClause":{ "$ref":"#/definitions/OrderByClause", "readOnly":true } } }, - "SkipQueryOption":{ + "SkipQueryOption":{ "type":"object", - "properties":{ - "context":{ + "properties":{ + "context":{ "$ref":"#/definitions/ODataQueryContext", "readOnly":true }, - "rawValue":{ + "rawValue":{ "type":"string", "readOnly":true }, - "value":{ + "value":{ "format":"int32", "type":"integer", "readOnly":true }, - "validator":{ + "validator":{ "$ref":"#/definitions/SkipQueryValidator" } } }, - "TopQueryOption":{ + "TopQueryOption":{ "type":"object", - "properties":{ - "context":{ + "properties":{ + "context":{ "$ref":"#/definitions/ODataQueryContext", "readOnly":true }, - "rawValue":{ + "rawValue":{ "type":"string", "readOnly":true }, - "value":{ + "value":{ "format":"int32", "type":"integer", "readOnly":true }, - "validator":{ + "validator":{ "$ref":"#/definitions/TopQueryValidator" } } }, - "CountQueryOption":{ + "CountQueryOption":{ "type":"object", - "properties":{ - "context":{ + "properties":{ + "context":{ "$ref":"#/definitions/ODataQueryContext", "readOnly":true }, - "rawValue":{ + "rawValue":{ "type":"string", "readOnly":true }, - "value":{ + "value":{ "type":"boolean", "readOnly":true }, - "validator":{ + "validator":{ "$ref":"#/definitions/CountQueryValidator" } } }, - "ODataQueryValidator":{ + "ODataQueryValidator":{ "type":"object", - "properties":{ + "properties":{ } }, - "DefaultQuerySettings":{ + "DefaultQuerySettings":{ "type":"object", - "properties":{ - "enableExpand":{ + "properties":{ + "enableExpand":{ "type":"boolean" }, - "enableSelect":{ + "enableSelect":{ "type":"boolean" }, - "enableCount":{ + "enableCount":{ "type":"boolean" }, - "enableOrderBy":{ + "enableOrderBy":{ "type":"boolean" }, - "enableFilter":{ + "enableFilter":{ "type":"boolean" }, - "maxTop":{ + "maxTop":{ "format":"int32", "type":"integer" } } }, - "IEdmModel":{ + "IEdmModel":{ "type":"object", - "properties":{ - "schemaElements":{ + "properties":{ + "schemaElements":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/IEdmSchemaElement" }, "readOnly":true }, - "vocabularyAnnotations":{ + "vocabularyAnnotations":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/IEdmVocabularyAnnotation" }, "readOnly":true }, - "referencedModels":{ + "referencedModels":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/IEdmModel" }, "readOnly":true }, - "declaredNamespaces":{ + "declaredNamespaces":{ "type":"array", - "items":{ + "items":{ "type":"string" }, "readOnly":true }, - "directValueAnnotationsManager":{ + "directValueAnnotationsManager":{ "$ref":"#/definitions/IEdmDirectValueAnnotationsManager", "readOnly":true }, - "entityContainer":{ + "entityContainer":{ "$ref":"#/definitions/IEdmEntityContainer", "readOnly":true } } }, - "IEdmType":{ + "IEdmType":{ "type":"object", - "properties":{ - "typeKind":{ - "enum":[ + "properties":{ + "typeKind":{ + "enum":[ "None", "Primitive", "Entity", @@ -1265,129 +1265,129 @@ } } }, - "IEdmNavigationSource":{ + "IEdmNavigationSource":{ "type":"object", - "properties":{ - "navigationPropertyBindings":{ + "properties":{ + "navigationPropertyBindings":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/IEdmNavigationPropertyBinding" }, "readOnly":true }, - "path":{ + "path":{ "$ref":"#/definitions/IEdmPathExpression", "readOnly":true }, - "type":{ + "type":{ "$ref":"#/definitions/IEdmType", "readOnly":true }, - "name":{ + "name":{ "type":"string", "readOnly":true } } }, - "ODataPath":{ + "ODataPath":{ "type":"object", - "properties":{ - "edmType":{ + "properties":{ + "edmType":{ "$ref":"#/definitions/IEdmType", "readOnly":true }, - "navigationSource":{ + "navigationSource":{ "$ref":"#/definitions/IEdmNavigationSource", "readOnly":true }, - "segments":{ + "segments":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/ODataPathSegment" }, "readOnly":true }, - "pathTemplate":{ + "pathTemplate":{ "type":"string", "readOnly":true }, - "path":{ + "path":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/ODataPathSegment" }, "readOnly":true } } }, - "IServiceProvider":{ + "IServiceProvider":{ "type":"object", - "properties":{ + "properties":{ } }, - "SelectExpandQueryValidator":{ + "SelectExpandQueryValidator":{ "type":"object", - "properties":{ + "properties":{ } }, - "SelectExpandClause":{ + "SelectExpandClause":{ "type":"object", - "properties":{ - "selectedItems":{ + "properties":{ + "selectedItems":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/SelectItem" }, "readOnly":true }, - "allSelected":{ + "allSelected":{ "type":"boolean", "readOnly":true } } }, - "ApplyClause":{ + "ApplyClause":{ "type":"object", - "properties":{ - "transformations":{ + "properties":{ + "transformations":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/TransformationNode" }, "readOnly":true } } }, - "FilterQueryValidator":{ + "FilterQueryValidator":{ "type":"object", - "properties":{ + "properties":{ } }, - "FilterClause":{ + "FilterClause":{ "type":"object", - "properties":{ - "expression":{ + "properties":{ + "expression":{ "$ref":"#/definitions/SingleValueNode", "readOnly":true }, - "rangeVariable":{ + "rangeVariable":{ "$ref":"#/definitions/RangeVariable", "readOnly":true }, - "itemType":{ + "itemType":{ "$ref":"#/definitions/IEdmTypeReference", "readOnly":true } } }, - "OrderByNode":{ + "OrderByNode":{ "type":"object", - "properties":{ - "direction":{ - "enum":[ + "properties":{ + "direction":{ + "enum":[ "Ascending", "Descending" ], @@ -1396,64 +1396,64 @@ } } }, - "OrderByQueryValidator":{ + "OrderByQueryValidator":{ "type":"object", - "properties":{ + "properties":{ } }, - "OrderByClause":{ + "OrderByClause":{ "type":"object", - "properties":{ - "thenBy":{ + "properties":{ + "thenBy":{ "$ref":"#/definitions/OrderByClause", "readOnly":true }, - "expression":{ + "expression":{ "$ref":"#/definitions/SingleValueNode", "readOnly":true }, - "direction":{ - "enum":[ + "direction":{ + "enum":[ "Ascending", "Descending" ], "type":"string", "readOnly":true }, - "rangeVariable":{ + "rangeVariable":{ "$ref":"#/definitions/RangeVariable", "readOnly":true }, - "itemType":{ + "itemType":{ "$ref":"#/definitions/IEdmTypeReference", "readOnly":true } } }, - "SkipQueryValidator":{ + "SkipQueryValidator":{ "type":"object", - "properties":{ + "properties":{ } }, - "TopQueryValidator":{ + "TopQueryValidator":{ "type":"object", - "properties":{ + "properties":{ } }, - "CountQueryValidator":{ + "CountQueryValidator":{ "type":"object", - "properties":{ + "properties":{ } }, - "IEdmSchemaElement":{ + "IEdmSchemaElement":{ "type":"object", - "properties":{ - "schemaElementKind":{ - "enum":[ + "properties":{ + "schemaElementKind":{ + "enum":[ "None", "TypeDefinition", "Term", @@ -1464,55 +1464,55 @@ "type":"string", "readOnly":true }, - "namespace":{ + "namespace":{ "type":"string", "readOnly":true }, - "name":{ + "name":{ "type":"string", "readOnly":true } } }, - "IEdmVocabularyAnnotation":{ + "IEdmVocabularyAnnotation":{ "type":"object", - "properties":{ - "qualifier":{ + "properties":{ + "qualifier":{ "type":"string", "readOnly":true }, - "term":{ + "term":{ "$ref":"#/definitions/IEdmTerm", "readOnly":true }, - "target":{ + "target":{ "$ref":"#/definitions/IEdmVocabularyAnnotatable", "readOnly":true }, - "value":{ + "value":{ "$ref":"#/definitions/IEdmExpression", "readOnly":true } } }, - "IEdmDirectValueAnnotationsManager":{ + "IEdmDirectValueAnnotationsManager":{ "type":"object", - "properties":{ + "properties":{ } }, - "IEdmEntityContainer":{ + "IEdmEntityContainer":{ "type":"object", - "properties":{ - "elements":{ + "properties":{ + "elements":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/IEdmEntityContainerElement" }, "readOnly":true }, - "schemaElementKind":{ - "enum":[ + "schemaElementKind":{ + "enum":[ "None", "TypeDefinition", "Term", @@ -1523,49 +1523,49 @@ "type":"string", "readOnly":true }, - "namespace":{ + "namespace":{ "type":"string", "readOnly":true }, - "name":{ + "name":{ "type":"string", "readOnly":true } } }, - "IEdmNavigationPropertyBinding":{ + "IEdmNavigationPropertyBinding":{ "type":"object", - "properties":{ - "navigationProperty":{ + "properties":{ + "navigationProperty":{ "$ref":"#/definitions/IEdmNavigationProperty", "readOnly":true }, - "target":{ + "target":{ "$ref":"#/definitions/IEdmNavigationSource", "readOnly":true }, - "path":{ + "path":{ "$ref":"#/definitions/IEdmPathExpression", "readOnly":true } } }, - "IEdmPathExpression":{ + "IEdmPathExpression":{ "type":"object", - "properties":{ - "pathSegments":{ + "properties":{ + "pathSegments":{ "type":"array", - "items":{ + "items":{ "type":"string" }, "readOnly":true }, - "path":{ + "path":{ "type":"string", "readOnly":true }, - "expressionKind":{ - "enum":[ + "expressionKind":{ + "enum":[ "None", "BinaryConstant", "BooleanConstant", @@ -1598,29 +1598,29 @@ } } }, - "ODataPathSegment":{ + "ODataPathSegment":{ "type":"object", - "properties":{ - "edmType":{ + "properties":{ + "edmType":{ "$ref":"#/definitions/IEdmType", "readOnly":true }, - "identifier":{ + "identifier":{ "type":"string" } } }, - "SelectItem":{ + "SelectItem":{ "type":"object", - "properties":{ + "properties":{ } }, - "TransformationNode":{ + "TransformationNode":{ "type":"object", - "properties":{ - "kind":{ - "enum":[ + "properties":{ + "kind":{ + "enum":[ "Aggregate", "GroupBy", "Filter", @@ -1631,15 +1631,15 @@ } } }, - "SingleValueNode":{ + "SingleValueNode":{ "type":"object", - "properties":{ - "typeReference":{ + "properties":{ + "typeReference":{ "$ref":"#/definitions/IEdmTypeReference", "readOnly":true }, - "kind":{ - "enum":[ + "kind":{ + "enum":[ "None", "Constant", "Convert", @@ -1680,54 +1680,54 @@ } } }, - "RangeVariable":{ + "RangeVariable":{ "type":"object", - "properties":{ - "name":{ + "properties":{ + "name":{ "type":"string", "readOnly":true }, - "typeReference":{ + "typeReference":{ "$ref":"#/definitions/IEdmTypeReference", "readOnly":true }, - "kind":{ + "kind":{ "format":"int32", "type":"integer", "readOnly":true } } }, - "IEdmTypeReference":{ + "IEdmTypeReference":{ "type":"object", - "properties":{ - "isNullable":{ + "properties":{ + "isNullable":{ "type":"boolean", "readOnly":true }, - "definition":{ + "definition":{ "$ref":"#/definitions/IEdmType", "readOnly":true } } }, - "IEdmTerm":{ + "IEdmTerm":{ "type":"object", - "properties":{ - "type":{ + "properties":{ + "type":{ "$ref":"#/definitions/IEdmTypeReference", "readOnly":true }, - "appliesTo":{ + "appliesTo":{ "type":"string", "readOnly":true }, - "defaultValue":{ + "defaultValue":{ "type":"string", "readOnly":true }, - "schemaElementKind":{ - "enum":[ + "schemaElementKind":{ + "enum":[ "None", "TypeDefinition", "Term", @@ -1738,27 +1738,27 @@ "type":"string", "readOnly":true }, - "namespace":{ + "namespace":{ "type":"string", "readOnly":true }, - "name":{ + "name":{ "type":"string", "readOnly":true } } }, - "IEdmVocabularyAnnotatable":{ + "IEdmVocabularyAnnotatable":{ "type":"object", - "properties":{ + "properties":{ } }, - "IEdmExpression":{ + "IEdmExpression":{ "type":"object", - "properties":{ - "expressionKind":{ - "enum":[ + "properties":{ + "expressionKind":{ + "enum":[ "None", "BinaryConstant", "BooleanConstant", @@ -1791,11 +1791,11 @@ } } }, - "IEdmEntityContainerElement":{ + "IEdmEntityContainerElement":{ "type":"object", - "properties":{ - "containerElementKind":{ - "enum":[ + "properties":{ + "containerElementKind":{ + "enum":[ "None", "EntitySet", "ActionImport", @@ -1805,41 +1805,41 @@ "type":"string", "readOnly":true }, - "container":{ + "container":{ "$ref":"#/definitions/IEdmEntityContainer", "readOnly":true }, - "name":{ + "name":{ "type":"string", "readOnly":true } } }, - "IEdmNavigationProperty":{ + "IEdmNavigationProperty":{ "type":"object", - "properties":{ - "partner":{ + "properties":{ + "partner":{ "$ref":"#/definitions/IEdmNavigationProperty", "readOnly":true }, - "onDelete":{ - "enum":[ + "onDelete":{ + "enum":[ "None", "Cascade" ], "type":"string", "readOnly":true }, - "containsTarget":{ + "containsTarget":{ "type":"boolean", "readOnly":true }, - "referentialConstraint":{ + "referentialConstraint":{ "$ref":"#/definitions/IEdmReferentialConstraint", "readOnly":true }, - "propertyKind":{ - "enum":[ + "propertyKind":{ + "enum":[ "None", "Structural", "Navigation" @@ -1847,56 +1847,56 @@ "type":"string", "readOnly":true }, - "type":{ + "type":{ "$ref":"#/definitions/IEdmTypeReference", "readOnly":true }, - "declaringType":{ + "declaringType":{ "$ref":"#/definitions/IEdmStructuredType", "readOnly":true }, - "name":{ + "name":{ "type":"string", "readOnly":true } } }, - "IEdmReferentialConstraint":{ + "IEdmReferentialConstraint":{ "type":"object", - "properties":{ - "propertyPairs":{ + "properties":{ + "propertyPairs":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/EdmReferentialConstraintPropertyPair" }, "readOnly":true } } }, - "IEdmStructuredType":{ + "IEdmStructuredType":{ "type":"object", - "properties":{ - "isAbstract":{ + "properties":{ + "isAbstract":{ "type":"boolean", "readOnly":true }, - "isOpen":{ + "isOpen":{ "type":"boolean", "readOnly":true }, - "baseType":{ + "baseType":{ "$ref":"#/definitions/IEdmStructuredType", "readOnly":true }, - "declaredProperties":{ + "declaredProperties":{ "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/IEdmProperty" }, "readOnly":true }, - "typeKind":{ - "enum":[ + "typeKind":{ + "enum":[ "None", "Primitive", "Entity", @@ -1913,24 +1913,24 @@ } } }, - "EdmReferentialConstraintPropertyPair":{ + "EdmReferentialConstraintPropertyPair":{ "type":"object", - "properties":{ - "dependentProperty":{ + "properties":{ + "dependentProperty":{ "$ref":"#/definitions/IEdmStructuralProperty", "readOnly":true }, - "principalProperty":{ + "principalProperty":{ "$ref":"#/definitions/IEdmStructuralProperty", "readOnly":true } } }, - "IEdmProperty":{ + "IEdmProperty":{ "type":"object", - "properties":{ - "propertyKind":{ - "enum":[ + "properties":{ + "propertyKind":{ + "enum":[ "None", "Structural", "Navigation" @@ -1938,29 +1938,29 @@ "type":"string", "readOnly":true }, - "type":{ + "type":{ "$ref":"#/definitions/IEdmTypeReference", "readOnly":true }, - "declaringType":{ + "declaringType":{ "$ref":"#/definitions/IEdmStructuredType", "readOnly":true }, - "name":{ + "name":{ "type":"string", "readOnly":true } } }, - "IEdmStructuralProperty":{ + "IEdmStructuralProperty":{ "type":"object", - "properties":{ - "defaultValueString":{ + "properties":{ + "defaultValueString":{ "type":"string", "readOnly":true }, - "propertyKind":{ - "enum":[ + "propertyKind":{ + "enum":[ "None", "Structural", "Navigation" @@ -1968,525 +1968,525 @@ "type":"string", "readOnly":true }, - "type":{ + "type":{ "$ref":"#/definitions/IEdmTypeReference", "readOnly":true }, - "declaringType":{ + "declaringType":{ "$ref":"#/definitions/IEdmStructuredType", "readOnly":true }, - "name":{ + "name":{ "type":"string", "readOnly":true } } }, - "MachineCollection":{ + "MachineCollection":{ "description":"Collection of machines.", "type":"object", - "properties":{ - "value":{ + "properties":{ + "value":{ "description":"Gets or sets the machines.", "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/Machine" } }, - "nextLink":{ + "nextLink":{ "description":"Gets or sets the value of nextLink.", "type":"string" } } }, - "Machine":{ + "Machine":{ "description":"Machine REST resource.", "type":"object", - "properties":{ - "id":{ + "properties":{ + "id":{ "description":"Gets or sets the relative URL to get to this REST resource.", "type":"string" }, - "name":{ + "name":{ "description":"Gets or sets the name of this REST resource.", "type":"string" }, - "type":{ + "type":{ "description":"Gets the type of this REST resource.", "type":"string", "readOnly":true }, - "properties":{ + "properties":{ "$ref":"#/definitions/MachineProperties", "description":"Gets or sets the properties of the machine." } } }, - "MachineProperties":{ + "MachineProperties":{ "description":"Properties of the machine resource.", "type":"object", - "properties":{ - "discoveryData":{ + "properties":{ + "discoveryData":{ "description":"Gets or sets the discovery details of the machine published by various sources.", "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/DiscoveryDetails" } }, - "assessmentData":{ + "assessmentData":{ "description":"Gets or sets the assessment details of the machine published by various sources.", "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/AssessmentDetails" } }, - "migrationData":{ + "migrationData":{ "description":"Gets or sets the migration details of the machine published by various sources.", "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/MigrationDetails" } } } }, - "DiscoveryDetails":{ + "DiscoveryDetails":{ "description":"Discovery properties that can be published by various ISVs.", "type":"object", - "properties":{ - "osType":{ + "properties":{ + "osType":{ "description":"Gets or sets the OS type.", "type":"string" }, - "osName":{ + "osName":{ "description":"Gets or sets the OS name.", "type":"string" }, - "osVersion":{ + "osVersion":{ "description":"Gets or sets the OS version.", "type":"string" }, - "enqueueTime":{ + "enqueueTime":{ "description":"Gets or sets the time the message was enqueued.", "type":"string" }, - "solutionName":{ + "solutionName":{ "description":"Gets or sets the name of the solution that sent the data.", "type":"string" }, - "machineId":{ + "machineId":{ "description":"Gets or sets the unique identifier of the machine.", "type":"string" }, - "machineManagerId":{ + "machineManagerId":{ "description":"Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", "type":"string" }, - "machineName":{ + "machineName":{ "description":"Gets or sets the name of the machine.", "type":"string" }, - "extendedInfo":{ + "extendedInfo":{ "description":"Gets or sets the ISV specific extended information.", "type":"object", - "additionalProperties":{ + "additionalProperties":{ "type":"string" } } } }, - "AssessmentDetails":{ + "AssessmentDetails":{ "description":"Assessment properties that can be shared by various publishers.", "type":"object", - "properties":{ - "assessmentId":{ + "properties":{ + "assessmentId":{ "description":"Gets or sets the id of the assessment done on the machine.", "type":"string" }, - "targetVMSize":{ + "targetVMSize":{ "description":"Gets or sets the target VM size.", "type":"string" }, - "targetVMLocation":{ + "targetVMLocation":{ "description":"Gets or sets the target VM location.", "type":"string" }, - "targetStorageType":{ + "targetStorageType":{ "description":"Gets or sets the target storage type.", "type":"object", - "additionalProperties":{ + "additionalProperties":{ "type":"string" } }, - "enqueueTime":{ + "enqueueTime":{ "description":"Gets or sets the time the message was enqueued.", "type":"string" }, - "solutionName":{ + "solutionName":{ "description":"Gets or sets the name of the solution that sent the data.", "type":"string" }, - "machineId":{ + "machineId":{ "description":"Gets or sets the unique identifier of the machine.", "type":"string" }, - "machineManagerId":{ + "machineManagerId":{ "description":"Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", "type":"string" }, - "machineName":{ + "machineName":{ "description":"Gets or sets the name of the machine.", "type":"string" }, - "extendedInfo":{ + "extendedInfo":{ "description":"Gets or sets the ISV specific extended information.", "type":"object", - "additionalProperties":{ + "additionalProperties":{ "type":"string" } } } }, - "MigrationDetails":{ + "MigrationDetails":{ "description":"Migration properties that can be shared by various publishers.", "type":"object", - "properties":{ - "migrationPhase":{ + "properties":{ + "migrationPhase":{ "description":"Gets or sets the phase of migration of the machine.", "type":"string" }, - "migrationTested":{ + "migrationTested":{ "description":"Gets or sets a value indicating whether migration was tested on the machine.", "type":"boolean" }, - "replicationProgressPercentage":{ + "replicationProgressPercentage":{ "format":"int32", "description":"Gets or sets the progress percentage of migration on the machine.", "type":"integer" }, - "targetVMArmId":{ + "targetVMArmId":{ "description":"Gets or sets the ARM id the migrated VM.", "type":"string" }, - "enqueueTime":{ + "enqueueTime":{ "description":"Gets or sets the time the message was enqueued.", "type":"string" }, - "solutionName":{ + "solutionName":{ "description":"Gets or sets the name of the solution that sent the data.", "type":"string" }, - "machineId":{ + "machineId":{ "description":"Gets or sets the unique identifier of the machine.", "type":"string" }, - "machineManagerId":{ + "machineManagerId":{ "description":"Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", "type":"string" }, - "machineName":{ + "machineName":{ "description":"Gets or sets the name of the machine.", "type":"string" }, - "extendedInfo":{ + "extendedInfo":{ "description":"Gets or sets the ISV specific extended information.", "type":"object", - "additionalProperties":{ + "additionalProperties":{ "type":"string" } } } }, - "MigrateProject":{ + "MigrateProject":{ "description":"Migrate Project REST Resource.", "type":"object", - "properties":{ - "eTag":{ + "properties":{ + "eTag":{ "description":"Gets or sets the eTag for concurrency control.", "type":"string" }, - "location":{ + "location":{ "description":"Gets or sets the Azure location in which migrate project is created.", "type":"string" }, - "properties":{ + "properties":{ "$ref":"#/definitions/MigrateProjectProperties", "description":"Gets or sets the nested properties." }, - "id":{ + "id":{ "description":"Gets the relative URL to get this migrate project.", "type":"string", "readOnly":true }, - "name":{ + "name":{ "description":"Gets or sets the name of the migrate project.", "type":"string" }, - "type":{ + "type":{ "description":"Handled by resource provider. Type = Microsoft.Migrate/MigrateProject.", "type":"string", "readOnly":true } } }, - "MigrateProjectProperties":{ + "MigrateProjectProperties":{ "description":"Class for migrate project properties.", "type":"object", - "properties":{ - "registeredTools":{ + "properties":{ + "registeredTools":{ "description":"Gets or sets the list of tools registered with the migrate project.", "type":"array", - "items":{ + "items":{ "type":"string" } }, - "summary":{ + "summary":{ "description":"Gets or sets the goals summary of the migrate Project. \r\n It maps the goal to its summary object.", "type":"object", - "additionalProperties":{ + "additionalProperties":{ "$ref":"#/definitions/GoalSummary" } } } }, - "GoalSummary":{ + "GoalSummary":{ "description":"Class representing the summary object for goal.", "type":"object", - "properties":{ - "discoveredCount":{ + "properties":{ + "discoveredCount":{ "format":"int32", "description":"Gets or sets the count of entities discovered.", "type":"integer" }, - "assessedCount":{ + "assessedCount":{ "format":"int32", "description":"Gets or sets the count of entities assessed.", "type":"integer" }, - "replicatingCount":{ + "replicatingCount":{ "format":"int32", "description":"Gets or sets the count of entities being replicated.", "type":"integer" }, - "migratedCount":{ + "migratedCount":{ "format":"int32", "description":"Gets or sets the count of entities migrated.", "type":"integer" } } }, - "RegisterToolInput":{ + "RegisterToolInput":{ "description":"Class representing the register tool input.", "type":"object", - "properties":{ - "tool":{ + "properties":{ + "tool":{ "description":"Gets or sets the tool to be registered.", "type":"string" } } }, - "RegistrationResult":{ + "RegistrationResult":{ "description":"Class representing the registration status of a tool with the migrate project.", "type":"object", - "properties":{ - "isRegistered":{ + "properties":{ + "isRegistered":{ "description":"Gets or sets a value indicating whether the tool is registered or not.", "type":"boolean" } } }, - "RefreshSummaryResult":{ + "RefreshSummaryResult":{ "description":"Class representing the refresh summary status of the migrate project.", "type":"object", - "properties":{ - "isRefreshed":{ + "properties":{ + "isRefreshed":{ "description":"Gets or sets a value indicating whether the migrate project summary is refreshed.", "type":"boolean" } } }, - "Solution":{ + "Solution":{ "description":"Solution REST Resource.", "type":"object", - "properties":{ - "id":{ + "properties":{ + "id":{ "description":"Gets or sets the relative URL to get to this REST resource.", "type":"string" }, - "name":{ + "name":{ "description":"Gets or sets the name of this REST resource.", "type":"string" }, - "type":{ + "type":{ "description":"Gets the type of this REST resource.", "type":"string", "readOnly":true }, - "properties":{ + "properties":{ "$ref":"#/definitions/SolutionProperties", "description":"Gets or sets the properties of the solution." } } }, - "SolutionProperties":{ + "SolutionProperties":{ "description":"Class for solution properties.", "type":"object", - "properties":{ - "tool":{ + "properties":{ + "tool":{ "description":"Gets or sets the tool being used in the solution.", "type":"string" }, - "purpose":{ + "purpose":{ "description":"Gets or sets the purpose of the solution.", "type":"string" }, - "goal":{ + "goal":{ "description":"Gets or sets the goal of the solution.", "type":"string" }, - "isInactive":{ + "isInactive":{ "description":"Gets or sets a value indicating whether the solution is active or not.", "type":"boolean" }, - "summary":{ + "summary":{ "$ref":"#/definitions/SolutionSummary", "description":"Gets or sets the summary of the solution." }, - "details":{ + "details":{ "$ref":"#/definitions/SolutionDetails", "description":"Gets or sets the details of the solution." } } }, - "SolutionSummary":{ + "SolutionSummary":{ "description":"Class representing the summary object for solution.", "type":"object", - "properties":{ - "discoveredCount":{ + "properties":{ + "discoveredCount":{ "format":"int32", "description":"Gets or sets the count of entities discovered.", "type":"integer" }, - "assessedCount":{ + "assessedCount":{ "format":"int32", "description":"Gets or sets the count of entities assessed.", "type":"integer" }, - "replicatingCount":{ + "replicatingCount":{ "format":"int32", "description":"Gets or sets the count of entities being replicated.", "type":"integer" }, - "migratedCount":{ + "migratedCount":{ "format":"int32", "description":"Gets or sets the count of entities migrated.", "type":"integer" } } }, - "SolutionDetails":{ + "SolutionDetails":{ "description":"Class representing the details of the solution.", "type":"object", - "properties":{ - "groupCount":{ + "properties":{ + "groupCount":{ "format":"int32", "description":"Gets or sets the count of groups reported by the solution.", "type":"integer" }, - "assessmentCount":{ + "assessmentCount":{ "format":"int32", "description":"Gets or sets the count of assessments reported by the solution.", "type":"integer" }, - "extendedDetails":{ + "extendedDetails":{ "description":"Gets or sets the extended details reported by the solution.", "type":"object", - "additionalProperties":{ + "additionalProperties":{ "type":"string" } } } }, - "SolutionsCollection":{ + "SolutionsCollection":{ "description":"Collection of solutions.", "type":"object", - "properties":{ - "value":{ + "properties":{ + "value":{ "description":"Gets or sets the list of solutions.", "type":"array", - "items":{ + "items":{ "$ref":"#/definitions/Solution" } }, - "nextLink":{ + "nextLink":{ "description":"Gets or sets the value of next link.", "type":"string" } } }, - "SolutionConfig":{ + "SolutionConfig":{ "description":"Class representing the config for the solution in the migrate project.", "type":"object", - "properties":{ - "publisherSasUri":{ + "properties":{ + "publisherSasUri":{ "description":"Gets or sets the publisher sas uri for the solution.", "type":"string" } } }, - "OperationResultList":{ + "OperationResultList":{ "type":"object", "description":"List of API operations.", - "properties":{ - "value":{ + "properties":{ + "value":{ "type":"array", "description":"List of operations.", - "items":{ + "items":{ "$ref":"#/definitions/Operation" } } } }, - "Operation":{ + "Operation":{ "type":"object", "description":"A REST API operation supported by the provider.", - "properties":{ - "name":{ + "properties":{ + "name":{ "type":"string", "description":"Name of the operation.", "readOnly":true }, - "display":{ + "display":{ "description":"Displayable properties of the operation.", "$ref":"#/definitions/OperationDisplay" }, - "origin":{ + "origin":{ "type":"string", "description":"Origin of the operation.", "readOnly":true } } }, - "OperationDisplay":{ + "OperationDisplay":{ "type":"object", "description":"Displayable properties of the operation.", "readOnly":true, - "properties":{ - "provider":{ + "properties":{ + "provider":{ "type":"string", "description":"Provider of the operation.", "readOnly":true }, - "resource":{ + "resource":{ "type":"string", "description":"Resource operated on by the operation.", "readOnly":true }, - "operation":{ + "operation":{ "type":"string", "description":"Operation Type.", "readOnly":true }, - "description":{ + "description":{ "type":"string", "description":"Description of the operation.", "readOnly":true From ae58786745b279a3c0f0b8f17b0a0359b394cf30 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 30 Oct 2018 00:06:59 +0530 Subject: [PATCH 05/35] Update specification/migrateprojects/resource-manager/readme.md Fixing the code generation path for preview swagger. --- .../resource-manager/readme.md | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/specification/migrateprojects/resource-manager/readme.md b/specification/migrateprojects/resource-manager/readme.md index b02dc91ec9dc..238f17ac9b91 100644 --- a/specification/migrateprojects/resource-manager/readme.md +++ b/specification/migrateprojects/resource-manager/readme.md @@ -10,18 +10,18 @@ This is the AutoRest configuration file for Azure Migrate. ``` yaml $(java) && $(multiapi) batch: - - tag: package-2018-02 + - tag: package-2018-09 ``` -### Tag: package-2018-02 and java +### Tag: package-2018-09 and java -These settings apply only when `--tag=package-2018-02 --java` is specified on the command line. +These settings apply only when `--tag=package-2018-09 --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. -``` yaml $(tag) == 'package-2018-02' && $(java) && $(multiapi) +``` yaml $(tag) == 'package-2018-09' && $(java) && $(multiapi) java: - namespace: com.microsoft.azure.management.azuremigrate.v2018_02_02 - output-folder: $(azure-libraries-for-java-folder)/azuremigrate/resource-manager/v2018_02_02 + namespace: com.microsoft.azure.management.azuremigrate.v2018_09_01 + output-folder: $(azure-libraries-for-java-folder)/azuremigrate/resource-manager/v2018_09_01 regenerate-manager: true generate-interface: true ``` @@ -46,15 +46,15 @@ These are the global settings for the API. ``` yaml openapi-type: arm -tag: package-2018-02 +tag: package-2018-09 ``` -### Tag: package-2018-02 +### Tag: package-2018-09 -These settings apply only when `--tag=package-2018-02` is specified on the command line. +These settings apply only when `--tag=package-2018-09` is specified on the command line. -``` yaml $(tag) == 'package-2018-02' +``` yaml $(tag) == 'package-2018-09' input-file: - Microsoft.Migrate/preview/2018-09-01-preview/migrate.json ``` @@ -86,14 +86,14 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: package-2018-02 + - tag: package-2018-09 ``` -### Tag: package-2018-02 and go +### Tag: package-2018-09 and go -These settings apply only when `--tag=package-2018-02 --go` is specified on the command line. +These settings apply only when `--tag=package-2018-09 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag)=='package-2018-02' && $(go) -output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2018-02-02/$(namespace) +``` yaml $(tag)=='package-2018-09' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-09-01-preview/$(namespace) ``` From 883fa556ca7d7d2e94d06eaff9c57a68f981fb30 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 30 Oct 2018 01:10:07 +0530 Subject: [PATCH 06/35] Update specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json Fixing potential SDK and security errors. --- .../preview/2018-09-01-preview/migrate.json | 558 ++++++------------ 1 file changed, 170 insertions(+), 388 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 72e7e73155ef..5087f55e6521 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -13,6 +13,102 @@ "schemes":[ "https" ], + "produces":[ + "application/json" + ], + "consumes":[ + "application/json" + ], + "parameters":{ + "subscriptionId":{ + "name":"subscriptionId", + "description":"Azure Subscription Id in which migrate project was created.", + "type":"string", + "in":"path", + "required":true + }, + "resourceGroupName":{ + "name":"resourceGroupName", + "description":"Name of the Azure Resource Group that migrate project is part of.", + "type":"string", + "in":"path", + "x-ms-parameter-location":"method", + "required":true + }, + "migrateProjectName":{ + "name":"migrateProjectName", + "description":"Name of the Azure Migrate project.", + "type":"string", + "in":"path", + "x-ms-parameter-location":"method", + "required":true + }, + "machineName":{ + "name":"machineName", + "description":"Unique name of a machine in Azure migration hub.", + "type":"string", + "in":"path", + "x-ms-parameter-location":"method", + "required":true + }, + "solutionName":{ + "name":"solutionName", + "description":"Unique name of a migration solution within a migrate project.", + "type":"string", + "in":"path", + "x-ms-parameter-location":"method", + "required":true + }, + "errorName":{ + "name":"errorName", + "description":"Unique name of an error within a migrate project.", + "type":"string", + "in":"path", + "x-ms-parameter-location":"method", + "required":true + }, + "continuationToken":{ + "name":"continuationToken", + "description":"Continuation token query filter for the method.", + "type":"string", + "in":"query" + }, + "api-version":{ + "name":"api-version", + "description":"Standard request header. Used by service to identify API version used by client.", + "type":"string", + "in":"query", + "required":true, + "enum":[ + "2018-09-01-preview" + ] + }, + "acceptLanguage":{ + "description":"Standard request header. Used by service to respond to client in appropriate language.", + "name":"Accept-Language", + "type":"string", + "in":"header", + "x-ms-parameter-location":"client" + } + }, + "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" + } + } + }, + "security":[ + { + "azure_auth":[ + "user_impersonation" + ] + } + ], "paths":{ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateErrors":{ "get":{ @@ -21,49 +117,24 @@ ], "summary":"Gets a list of errors in the migrate project.", "operationId":"Errors_EnumerateErrors", - "consumes":[ - - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"The subscription id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"The resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"The name of the migrate project.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/api-version" }, { - "name":"continuationToken", - "in":"query", - "description":"Continuation token from the previous call.", - "required":false, - "type":"string" + "$ref":"#/parameters/continuationToken" + }, + { + "$ref":"#/parameters/acceptLanguage" } ], "responses":{ @@ -84,49 +155,21 @@ ], "summary":"Gets an error in the migrate project.", "operationId":"Errors_GetError", - "consumes":[ - - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"The subscription id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"The resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"The migrate project name.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"errorName", - "in":"path", - "description":"The ARM name of the error to be fetched.", - "required":true, - "type":"string" + "$ref":"#/parameters/api-version" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/errorName" } ], "responses":{ @@ -147,49 +190,21 @@ ], "summary":"Gets a list of machines in the migrate project.", "operationId":"Machines_EnumerateMachines", - "consumes":[ - - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"The subscription id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"The resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"The name of the migrate project.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/api-version" }, { - "name":"continuationToken", - "in":"query", - "description":"Continuation token from the previous call.", - "required":false, - "type":"string" + "$ref":"#/parameters/continuationToken" } ], "responses":{ @@ -210,49 +225,21 @@ ], "summary":"Gets a machine in the migrate project.", "operationId":"Machines_GetMachine", - "consumes":[ - - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"The subscription id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"The resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"The migrate project name.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"machineName", - "in":"path", - "description":"The ARM name of the machine to be fetched.", - "required":true, - "type":"string" + "$ref":"#/parameters/api-version" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/machineName" } ], "responses":{ @@ -273,42 +260,18 @@ ], "summary":"Method to get a migrate project.", "operationId":"MigrateProjects_GetMigrateProject", - "consumes":[ - - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"Subscription Id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"Resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"Migrate Project name.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/api-version" } ], "responses":{ @@ -327,40 +290,18 @@ ], "summary":"Method to create or update a migrate project.", "operationId":"MigrateProjects_PutMigrateProject", - "consumes":[ - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"Subscription Id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"Resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"Migrate Project name.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" + }, + { + "$ref":"#/parameters/api-version" }, { "name":"body", @@ -372,10 +313,7 @@ } }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/acceptLanguage" } ], "responses":{ @@ -402,46 +340,18 @@ ], "summary":"Registers a tool with the migrate project.", "operationId":"MigrateProjects_RegisterTool", - "consumes":[ - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"The subscription id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"The resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"The migrate project name.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/api-version" }, { "name":"input", @@ -451,6 +361,9 @@ "schema":{ "$ref":"#/definitions/RegisterToolInput" } + }, + { + "$ref":"#/parameters/acceptLanguage" } ], "responses":{ @@ -471,42 +384,18 @@ ], "summary":"Refresh the summary of the migrate project.", "operationId":"MigrateProjects_RefreshMigrateProjectSummary", - "consumes":[ - - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"The subscription id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"The resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"The migrate project name.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/api-version" } ], "responses":{ @@ -527,49 +416,21 @@ ], "summary":"Gets a solution in the migrate project.", "operationId":"Solutions_GetSolution", - "consumes":[ - - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"The subscription id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"The resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"The migrate project name.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"solutionName", - "in":"path", - "description":"The name of the solution to be fetched.", - "required":true, - "type":"string" + "$ref":"#/parameters/solutionName" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/api-version" } ], "responses":{ @@ -588,53 +449,18 @@ ], "summary":"Creates a solution in the migrate project.", "operationId":"Solutions_PutSolution", - "consumes":[ - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"The subscription id.", - "required":true, - "type":"string" - }, - { - "name":"resourceGroupName", - "in":"path", - "description":"The resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"migrateProjectName", - "in":"path", - "description":"The migrate project name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"solutionName", - "in":"path", - "description":"The name of the solution to be created.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/solutionName" }, { "name":"solutionInput", @@ -644,6 +470,9 @@ "schema":{ "$ref":"#/definitions/Solution" } + }, + { + "$ref":"#/parameters/api-version" } ], "responses":{ @@ -664,42 +493,18 @@ ], "summary":"Gets the list of solutions in the migrate project.", "operationId":"Solutions_EnumerateSolutions", - "consumes":[ - - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"The subscription id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"The resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"The name of the migrate project.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/api-version" } ], "responses":{ @@ -720,49 +525,21 @@ ], "summary":"Gets the config for the solution in the migrate project.", "operationId":"Solutions_GetConfig", - "consumes":[ - - ], - "produces":[ - "application/json", - "text/json", - "application/xml", - "text/xml" - ], "parameters":[ { - "name":"subscriptionId", - "in":"path", - "description":"The subscription id.", - "required":true, - "type":"string" + "$ref":"#/parameters/subscriptionId" }, { - "name":"resourceGroupName", - "in":"path", - "description":"The resource group name.", - "required":true, - "type":"string" + "$ref":"#/parameters/resourceGroupName" }, { - "name":"migrateProjectName", - "in":"path", - "description":"The migrate project name.", - "required":true, - "type":"string" + "$ref":"#/parameters/migrateProjectName" }, { - "name":"solutionName", - "in":"path", - "description":"The name of the solution for which config is being fetched.", - "required":true, - "type":"string" + "$ref":"#/parameters/solutionName" }, { - "name":"api-version", - "in":"query", - "required":true, - "type":"string" + "$ref":"#/parameters/api-version" } ], "responses":{ @@ -2199,6 +1976,7 @@ "MigrateProject":{ "description":"Migrate Project REST Resource.", "type":"object", + "x-ms-azure-resource":true, "properties":{ "eTag":{ "description":"Gets or sets the eTag for concurrency control.", @@ -2219,7 +1997,8 @@ }, "name":{ "description":"Gets or sets the name of the migrate project.", - "type":"string" + "type":"string", + "readOnly":true }, "type":{ "description":"Handled by resource provider. Type = Microsoft.Migrate/MigrateProject.", @@ -2307,14 +2086,17 @@ "Solution":{ "description":"Solution REST Resource.", "type":"object", + "x-ms-azure-resource":true, "properties":{ "id":{ "description":"Gets or sets the relative URL to get to this REST resource.", - "type":"string" + "type":"string", + "readOnly":true }, "name":{ "description":"Gets or sets the name of this REST resource.", - "type":"string" + "type":"string", + "readOnly":true }, "type":{ "description":"Gets the type of this REST resource.", From 002f6dfab95260e3e23056a6cb2df333d00c1a7f Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 30 Oct 2018 01:20:51 +0530 Subject: [PATCH 07/35] Update specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json Fixing potential new SDK errors. --- .../preview/2018-09-01-preview/migrate.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 5087f55e6521..44d212ddd567 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -69,9 +69,11 @@ }, "continuationToken":{ "name":"continuationToken", - "description":"Continuation token query filter for the method.", + "description":"The continuation token.", "type":"string", - "in":"query" + "in":"query", + "required":false, + "x-ms-parameter-location":"method" }, "api-version":{ "name":"api-version", From 7c87c694f1d755dedb12bc50f8a1e7db7445f6fb Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 30 Oct 2018 16:23:43 +0530 Subject: [PATCH 08/35] Proving x-ms-exmaples for response/request payloads for operations. --- .../examples/Machines_Get.json | 70 ++++++++++ .../examples/Machines_List.json | 130 ++++++++++++++++++ .../examples/MigrateErrors_Get.json | 26 ++++ .../examples/MigrateErrors_List.json | 42 ++++++ .../examples/MigrateProjects_Get.json | 34 +++++ .../examples/MigrateProjects_Put.json | 63 +++++++++ .../MigrateProjects_RefreshSummary.json | 15 ++ .../MigrateProjects_RegisterTool.json | 15 ++ .../examples/Solutions_Get.json | 37 +++++ .../examples/Solutions_GetConfig.json | 16 +++ .../examples/Solutions_List.json | 64 +++++++++ .../examples/Solutions_Put.json | 70 ++++++++++ .../preview/2018-09-01-preview/migrate.json | 84 +++++++++-- 13 files changed, 654 insertions(+), 12 deletions(-) create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Get.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_List.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_GetConfig.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json new file mode 100644 index 000000000000..bd40d519c9f2 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json @@ -0,0 +1,70 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "machineName":"vm1" + }, + "responses":{ + "200":{ + "body":{ + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/machines/vm1", + "name":"vm1", + "type":"Microsoft.Migrate/MigrateProjects/machines", + "eTag":"\"a701c63a-0000-0000-0000-59c12fe60000\"", + "properties":{ + "discoveryData":[ + { + "osType":"windows", + "osName":"windows server 2012 R2", + "osVersion":"10.0.01", + "enqueueTime":"2017-09-12T13:11:10.8808917Z", + "solutionName":"mysolution", + "machineId":"abcd", + "machineManagerId":"efgh", + "machineName":"vm1", + "extendedInfo":{ + "custom1":"mycustomvalue" + } + } + ], + "assessmentData":[ + { + "assessmentId":"myid1", + "targetVMSize":"Standard_D4_v2", + "targetVMLocation":"eastus", + "targetStorageType":{ + "disk1":"Standard" + }, + "enqueueTime":"2017-09-12T13:11:20.8808917Z", + "solutionName":"mysolution", + "machineId":"abcd", + "machineManagerId":"efgh", + "machineName":"vm1", + "extendedInfo":{ + "custom2":"mycustomvalue" + } + } + ], + "migrationData":[ + { + "migrationPhase":"Migrated", + "migrationTested":true, + "replicationProgressPercentage":100, + "targetVMArmId":"/subscriptions/abc/resourcegroups/rg/providers/microsoft.compute/virtualmachines/vm1", + "enqueueTime":"2017-09-12T13:11:30.8808917Z", + "solutionName":"mysolution", + "machineId":"abcd", + "machineManagerId":"efgh", + "machineName":"vm1", + "extendedInfo":{ + "custom3":"mycustomvalue" + } + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json new file mode 100644 index 000000000000..3593e7b66475 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json @@ -0,0 +1,130 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01" + }, + "responses":{ + "200":{ + "body":{ + "value":[ + { + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/machines/vm1", + "name":"vm1", + "type":"Microsoft.Migrate/MigrateProjects/machines", + "eTag":"\"b701c63a-0000-0000-0000-59c12fe60000\"", + "properties":{ + "discoveryData":[ + { + "osType":"windows", + "osName":"windows server 2012 R2", + "osVersion":"10.0.01", + "enqueueTime":"2017-09-12T13:11:10.8808917Z", + "solutionName":"mysolution", + "machineId":"abcd", + "machineManagerId":"efgh", + "machineName":"vm1", + "extendedInfo":{ + "custom1":"mycustomvalue" + } + } + ], + "assessmentData":[ + { + "assessmentId":"myid1", + "targetVMSize":"Standard_D4_v2", + "targetVMLocation":"eastus", + "targetStorageType":{ + "disk1":"Standard" + }, + "enqueueTime":"2017-09-12T13:11:20.8808917Z", + "solutionName":"mysolution", + "machineId":"abcd", + "machineManagerId":"efgh", + "machineName":"vm1", + "extendedInfo":{ + "custom2":"mycustomvalue" + } + } + ], + "migrationData":[ + { + "migrationPhase":"Migrated", + "migrationTested":true, + "replicationProgressPercentage":100, + "targetVMArmId":"/subscriptions/abc/resourcegroups/rg/providers/microsoft.compute/virtualmachines/vm1", + "enqueueTime":"2017-09-12T13:11:30.8808917Z", + "solutionName":"mysolution", + "machineId":"abcd", + "machineManagerId":"efgh", + "machineName":"vm1", + "extendedInfo":{ + "custom3":"mycustomvalue" + } + } + ] + } + }, + { + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/machines/vm2", + "name":"vm2", + "type":"Microsoft.Migrate/MigrateProjects/machines", + "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", + "properties":{ + "discoveryData":[ + { + "osType":"windows", + "osName":"windows server 2012 R2", + "osVersion":"10.0.01", + "enqueueTime":"2017-09-12T13:11:10.8808917Z", + "solutionName":"mysolution", + "machineId":"xyz", + "machineManagerId":"efgh", + "machineName":"vm2", + "extendedInfo":{ + "custom1":"mycustomvalue" + } + } + ], + "assessmentData":[ + { + "assessmentId":"myid1", + "targetVMSize":"Standard_D4_v2", + "targetVMLocation":"eastus", + "targetStorageType":{ + "disk1":"Standard" + }, + "enqueueTime":"2017-09-12T13:11:20.8808917Z", + "solutionName":"mysolution", + "machineId":"xyz", + "machineManagerId":"efgh", + "machineName":"vm2", + "extendedInfo":{ + "custom2":"mycustomvalue" + } + } + ], + "migrationData":[ + { + "migrationPhase":"Migrated", + "migrationTested":true, + "replicationProgressPercentage":100, + "targetVMArmId":"/subscriptions/abc/resourcegroups/rg/providers/microsoft.compute/virtualmachines/vm2", + "enqueueTime":"2017-09-12T13:11:30.8808917Z", + "solutionName":"mysolution", + "machineId":"xyz", + "machineManagerId":"efgh", + "machineName":"vm2", + "extendedInfo":{ + "custom3":"mycustomvalue" + } + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Get.json new file mode 100644 index 000000000000..6d1bf17c473b --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Get.json @@ -0,0 +1,26 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "migrateErrorName":"MigrateError01" + }, + "responses":{ + "200":{ + "body":{ + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateError01", + "name":"MigrateError01", + "type":"Microsoft.Migrate/MigrateProjects/MigrateErrors", + "properties":{ + "errorCode":1234, + "errorMessage":"Invalid machine name.", + "recommendation":"Please correct the error and retry the operation.", + "possibleCauses":"Invalid input in the data.", + "solution":"mysolution", + "machine":"mymachine1" + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_List.json new file mode 100644 index 000000000000..1b483431ba7d --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_List.json @@ -0,0 +1,42 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01" + }, + "responses":{ + "200":{ + "body":{ + "value":[ + { + "properties":{ + "errorCode":1234, + "errorMessage":"Invalid machine name.", + "recommendation":"Please correct the error and retry the operation.", + "possibleCauses":"Invalid input in the data.", + "solution":"mysolution", + "machine":"mymachine1" + }, + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateError01", + "name":"MigrateError01", + "type":"Microsoft.Migrate/MigrateProjects/MigrateErrors" + }, + { + "properties":{ + "errorCode":1288, + "errorMessage":"Invalid foramt.", + "recommendation":"Please correct the error and retry the operation.", + "possibleCauses":"Invalid input in the data.", + "solution":"mysolution", + "machine":"mymachine2" + }, + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateError02", + "name":"MigrateError02", + "type":"Microsoft.Migrate/MigrateProjects/MigrateErrors" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json new file mode 100644 index 000000000000..369327631b40 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json @@ -0,0 +1,34 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01" + }, + "responses":{ + "200":{ + "body":{ + "properties":{ + "registeredTools":[ + "SAS", + "SMS" + ], + "summary":{ + "discoveredCount":23223, + "assessedCount":43, + "replicatingCount":123, + "migratedCount":10023 + } + }, + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", + "name":"project01", + "type":"Microsoft.Migrate/MigrateProjects", + "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location":"West Us", + "tags":{ + + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json new file mode 100644 index 000000000000..63b7ad8c4208 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json @@ -0,0 +1,63 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "project":{ + "properties":{ + + }, + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", + "name":"project01", + "type":"Microsoft.Migrate/MigrateProjects", + "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location":"Southeast Asia", + "tags":{ + + } + } + }, + "responses":{ + "201":{ + "body":{ + "properties":{ + "registeredTools":[ + + ], + "summary":{ + + } + }, + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", + "name":"project01", + "type":"Microsoft.Migrate/MigrateProjects", + "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location":"Southeast Asia", + "tags":{ + + } + } + }, + "200":{ + "body":{ + "properties":{ + "registeredTools":[ + + ], + "summary":{ + + } + }, + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", + "name":"project01", + "type":"Microsoft.Migrate/MigrateProjects", + "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location":"Southeast Asia", + "tags":{ + + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json new file mode 100644 index 000000000000..8c2f70e4f05d --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json @@ -0,0 +1,15 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01" + }, + "responses":{ + "200":{ + "body":{ + "isRefreshed":true + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json new file mode 100644 index 000000000000..8691f5998a84 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json @@ -0,0 +1,15 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01" + }, + "responses":{ + "200":{ + "body":{ + "isRegistered":true + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json new file mode 100644 index 000000000000..7e7fad9b5af2 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json @@ -0,0 +1,37 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "solutionName":"smssolution" + }, + "responses":{ + "200":{ + "body":{ + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", + "name":"smssolution", + "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "properties":{ + "tool":"SMS", + "purpose":"migration", + "goal":"servers", + "isInactive":false, + "summary":{ + "discoveredCount":0, + "assessedCount":0, + "replicatingCount":0, + "migratedCount":0 + }, + "details":{ + "groupCount":0, + "assessmentCount":0, + "extendedDetails":{ + + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_GetConfig.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_GetConfig.json new file mode 100644 index 000000000000..6354f1ed4428 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_GetConfig.json @@ -0,0 +1,16 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "solutionName":"smssolution" + }, + "responses":{ + "200":{ + "body":{ + "publisherSasUri": "Endpoint=sb://xxx.servicebus.windows.net/;SharedAccessSignature=SharedAccessSignature sr=sb%3a%2f%2fxxx.servicebus.windows.net%2fIsvMigrationPayloadEventHub%2fPublishers%2ffad35230-08cd-4d96-bb75-6e41508adb3b-pub-smssolution&sig=Wpf0ORIJI9AFESLDLlJH1ejrUj2W7hy%2fMac%2f7ewZ6j8%3d&se=1541501430&skn=SendPolicy;EntityPath=xyz;Publisher=fad35230-08cd-4d96-bb75-6e41508adb3b-pub-smssolution" + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json new file mode 100644 index 000000000000..f88c5b5d457c --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json @@ -0,0 +1,64 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01" + }, + "responses":{ + "200":{ + "body":{ + "value":[ + { + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", + "name":"smssolution", + "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "properties":{ + "tool":"SMS", + "purpose":"migration", + "goal":"servers", + "isInactive":false, + "summary":{ + "discoveredCount":0, + "assessedCount":0, + "replicatingCount":0, + "migratedCount":0 + }, + "details":{ + "groupCount":0, + "assessmentCount":0, + "extendedDetails":{ + + } + } + } + }, + { + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/sassolution", + "name":"sassolution", + "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "properties":{ + "tool":"SAS", + "purpose":"assessment", + "goal":"servers", + "isInactive":false, + "summary":{ + "discoveredCount":0, + "assessedCount":0, + "replicatingCount":0, + "migratedCount":0 + }, + "details":{ + "groupCount":0, + "assessmentCount":0, + "extendedDetails":{ + + } + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json new file mode 100644 index 000000000000..1fa86f705e7d --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json @@ -0,0 +1,70 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "solutionName":"smssolution", + "solution":{ + "properties":{ + "tool":"SMS", + "purpose":"migration", + "goal":"servers" + } + } + }, + "responses":{ + "200":{ + "body":{ + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", + "name":"smssolution", + "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "properties":{ + "tool":"SMS", + "purpose":"migration", + "goal":"servers", + "isInactive":false, + "summary":{ + "discoveredCount":0, + "assessedCount":0, + "replicatingCount":0, + "migratedCount":0 + }, + "details":{ + "groupCount":0, + "assessmentCount":0, + "extendedDetails":{ + + } + } + } + } + } + }, + "201":{ + "body":{ + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", + "name":"smssolution", + "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "properties":{ + "tool":"SMS", + "purpose":"migration", + "goal":"servers", + "isInactive":false, + "summary":{ + "discoveredCount":0, + "assessedCount":0, + "replicatingCount":0, + "migratedCount":0 + }, + "details":{ + "groupCount":0, + "assessmentCount":0, + "extendedDetails":{ + + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 44d212ddd567..a12737c31e48 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -147,7 +147,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "MigrateErrors_List":{ + "$ref":"./examples/MigrateErrors_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateErrors/{errorName}":{ @@ -182,7 +187,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "MigrateErrors_Get":{ + "$ref":"./examples/MigrateErrors_Get.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines":{ @@ -217,7 +227,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "Machines_List":{ + "$ref":"./examples/Machines_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines/{machineName}":{ @@ -252,7 +267,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "Machines_Get":{ + "$ref":"./examples/Machines_Get.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}":{ @@ -284,7 +304,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "MigrateProjects_Get":{ + "$ref":"./examples/MigrateProjects_Get.json" + } + } }, "put":{ "tags":[ @@ -332,7 +357,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "MigrateProjects_Put":{ + "$ref":"./examples/MigrateProjects_Put.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/registerTool":{ @@ -376,7 +406,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "MigrateProjects_RegisterTool":{ + "$ref":"./examples/MigrateProjects_RegisterTool.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/refreshSummary":{ @@ -408,7 +443,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "MigrateProjects_RefreshSummary":{ + "$ref":"./examples/MigrateProjects_RefreshSummary.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}":{ @@ -443,7 +483,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "Solutions_Get":{ + "$ref":"./examples/Solutions_Get.json" + } + } }, "put":{ "tags":[ @@ -485,7 +530,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "Solutions_Put":{ + "$ref":"./examples/Solutions_Put.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions":{ @@ -517,7 +567,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "Solutions_List":{ + "$ref":"./examples/Solutions_List.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}/getConfig":{ @@ -552,7 +607,12 @@ } } }, - "deprecated":false + "deprecated":false, + "x-ms-examples":{ + "Solutions_GetConfig":{ + "$ref":"./examples/Solutions_GetConfig.json" + } + } } }, "/providers/Microsoft.Migrate/operations":{ From 0c80987d7ed876b7d1aaa556c4146278214a5ee6 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 30 Oct 2018 16:43:25 +0530 Subject: [PATCH 09/35] Fixing schema validation for azure-sdk-for-go. --- .../preview/2018-09-01-preview/examples/Solutions_Put.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json index 1fa86f705e7d..cf0b73e4416b 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json @@ -5,7 +5,7 @@ "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", "migrateProjectName":"project01", "solutionName":"smssolution", - "solution":{ + "solutionInput":{ "properties":{ "tool":"SMS", "purpose":"migration", From 3b7b4635f321410ab98d5db5cd0e258013ef7eb1 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 30 Oct 2018 17:22:59 +0530 Subject: [PATCH 10/35] Fixing schema validation for azure-sdk-for-go. --- .../examples/Solutions_Put.json | 44 +++++++++---------- .../preview/2018-09-01-preview/migrate.json | 6 +++ 2 files changed, 28 insertions(+), 22 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json index cf0b73e4416b..4ff10343517f 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json @@ -39,29 +39,29 @@ } } } - } - }, - "201":{ - "body":{ - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", - "name":"smssolution", - "type":"Microsoft.Migrate/MigrateProjects/Solutions", - "properties":{ - "tool":"SMS", - "purpose":"migration", - "goal":"servers", - "isInactive":false, - "summary":{ - "discoveredCount":0, - "assessedCount":0, - "replicatingCount":0, - "migratedCount":0 - }, - "details":{ - "groupCount":0, - "assessmentCount":0, - "extendedDetails":{ + }, + "201":{ + "body":{ + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", + "name":"smssolution", + "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "properties":{ + "tool":"SMS", + "purpose":"migration", + "goal":"servers", + "isInactive":false, + "summary":{ + "discoveredCount":0, + "assessedCount":0, + "replicatingCount":0, + "migratedCount":0 + }, + "details":{ + "groupCount":0, + "assessmentCount":0, + "extendedDetails":{ + } } } } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index a12737c31e48..b03967b0f940 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -528,6 +528,12 @@ "schema":{ "$ref":"#/definitions/Solution" } + }, + "201":{ + "description":"Created", + "schema":{ + "$ref":"#/definitions/Solution" + } } }, "deprecated":false, From 1faf79702d72ea27756bd27de5d368d4158ac1ba Mon Sep 17 00:00:00 2001 From: peetlotla Date: Wed, 31 Oct 2018 16:22:24 +0530 Subject: [PATCH 11/35] Added missing patch and delete operations per the feedback. --- .../examples/MigrateProjects_Delete.json | 13 ++ .../examples/MigrateProjects_Patch.json | 43 +++++ .../examples/Solutions_Delete.json | 14 ++ .../examples/Solutions_Patch.json | 42 +++++ .../preview/2018-09-01-preview/migrate.json | 176 +++++++++++++++++- 5 files changed, 287 insertions(+), 1 deletion(-) create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Delete.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Delete.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Delete.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Delete.json new file mode 100644 index 000000000000..16683169cd8b --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01" + }, + "responses":{ + "200":{ + + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json new file mode 100644 index 000000000000..4d38ac2d4504 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json @@ -0,0 +1,43 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "project":{ + "properties":{ + + }, + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", + "name":"project01", + "type":"Microsoft.Migrate/MigrateProjects", + "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location":"Southeast Asia", + "tags":{ + + } + } + }, + "responses":{ + "200":{ + "body":{ + "properties":{ + "registeredTools":[ + + ], + "summary":{ + + } + }, + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", + "name":"project01", + "type":"Microsoft.Migrate/MigrateProjects", + "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location":"Southeast Asia", + "tags":{ + + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Delete.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Delete.json new file mode 100644 index 000000000000..5781a29e1a8b --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "solutionName":"smssolution" + }, + "responses":{ + "200":{ + + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json new file mode 100644 index 000000000000..48541b6cc141 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json @@ -0,0 +1,42 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "solutionName":"smssolution", + "solutionInput":{ + "properties":{ + "isInactive":false + } + } + }, + "responses":{ + "200":{ + "body":{ + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", + "name":"smssolution", + "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "properties":{ + "tool":"SMS", + "purpose":"migration", + "goal":"servers", + "isInactive":false, + "summary":{ + "discoveredCount":0, + "assessedCount":0, + "replicatingCount":0, + "migratedCount":0 + }, + "details":{ + "groupCount":0, + "assessmentCount":0, + "extendedDetails":{ + + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index b03967b0f940..4b683457d245 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -363,6 +363,93 @@ "$ref":"./examples/MigrateProjects_Put.json" } } + }, + "patch":{ + "tags":[ + "MigrateProjects" + ], + "summary":"Update migrate project.", + "description":"Update a migrate project with specified name. Supports partial updates, for example only tags can be provided.", + "operationId":"MigrateProjects_PatchMigrateProject", + "parameters":[ + { + "$ref":"#/parameters/subscriptionId" + }, + { + "$ref":"#/parameters/resourceGroupName" + }, + { + "$ref":"#/parameters/migraeProjectName" + }, + { + "$ref":"#/parameters/api-version" + }, + { + "$ref":"#/parameters/acceptLanguage" + }, + { + "name":"body", + "in":"body", + "description":"Body with migrate project details.", + "required":true, + "schema":{ + "$ref":"#/definitions/MigrateProject" + } + }, + { + "$ref":"#/parameters/acceptLanguage" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/MigrateProject" + } + } + }, + "deprecated":false, + "x-ms-examples":{ + "MigrateProjects_Patch":{ + "$ref":"./examples/MigrateProjects_Patch.json" + } + } + }, + "delete":{ + "tags":[ + "MigrateProjects" + ], + "summary":"Delete the migrate project", + "description":"Delete the migrate project. Deleting non-existent project is a no-operation.", + "operationId":"MigrateProjects_DeleteMigrateProject", + "parameters":[ + { + "$ref":"#/parameters/subscriptionId" + }, + { + "$ref":"#/parameters/resourceGroupName" + }, + { + "$ref":"#/parameters/migrateProjectName" + }, + { + "$ref":"#/parameters/api-version" + }, + { + "$ref":"#/parameters/acceptLanguage" + } + ], + "responses":{ + "200":{ + "description":"OK" + } + }, + "deprecated":false, + "x-ms-examples":{ + "MigrateProjects_Delete":{ + "$ref":"./examples/MigrateProjects_Delete.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/registerTool":{ @@ -542,6 +629,93 @@ "$ref":"./examples/Solutions_Put.json" } } + }, + "patch":{ + "tags":[ + "Solutions" + ], + "summary":"Update solution.", + "description":"Update a solution with specified name. Supports partial updates, for example only tags can be provided.", + "operationId":"Solutions_PatchSolution", + "parameters":[ + { + "$ref":"#/parameters/subscriptionId" + }, + { + "$ref":"#/parameters/resourceGroupName" + }, + { + "$ref":"#/parameters/migrateProjectName" + }, + { + "$ref":"#/parameters/solutionName" + }, + { + "name":"solutionInput", + "in":"body", + "description":"The input for the solution.", + "required":true, + "schema":{ + "$ref":"#/definitions/Solution" + } + }, + { + "$ref":"#/parameters/api-version" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Solution" + } + } + }, + "deprecated":false, + "x-ms-examples":{ + "Solutions_Patch":{ + "$ref":"./examples/Solutions_Patch.json" + } + } + }, + "delete":{ + "tags":[ + "Solutions" + ], + "summary":"Delete the solution", + "description":"Delete the solution. Deleting non-existent project is a no-operation.", + "operationId":"Solutions_DeleteSolution", + "parameters":[ + { + "$ref":"#/parameters/subscriptionId" + }, + { + "$ref":"#/parameters/resourceGroupName" + }, + { + "$ref":"#/parameters/migrateProjectName" + }, + { + "$ref":"#/parameters/solutionName" + }, + { + "$ref":"#/parameters/api-version" + }, + { + "$ref":"#/parameters/acceptLanguage" + } + ], + "responses":{ + "200":{ + "description":"OK" + } + }, + "deprecated":false, + "x-ms-examples":{ + "Solutions_Delete":{ + "$ref":"./examples/Solutions_Delete.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions":{ @@ -2344,4 +2518,4 @@ } } } -} \ No newline at end of file +}operat \ No newline at end of file From 07a3678ddf5fa786efcfaa33410d4f82e8625dc6 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Wed, 31 Oct 2018 16:43:15 +0530 Subject: [PATCH 12/35] Swagger fixes for azure-sdk-for-go --- .../examples/Operations_List.json | 206 ++++++++++-------- .../preview/2018-09-01-preview/migrate.json | 2 +- 2 files changed, 114 insertions(+), 94 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json index 479697fad4ea..cdd19ef51dc8 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json @@ -1,95 +1,115 @@ -{ - "parameters": { - "resourceGroupName": "myResourceGroup", - "api-version": "2018-09-01-preview", - "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Migrate/MigrateProjects/read", - "display": { - "provider": "Microsoft.Migrate", - "resource": "Microsoft.Migrate/MigrateProjects", - "operation": "Read", - "description": "Reads a migrate project" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.Migrate/MigrateProjects/Write", - "display": { - "provider": "Microsoft.Migrate", - "resource": "Microsoft.Migrate/MigrateProjects", - "operation": "Write", - "description": "Creates or updates a migrate project" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.Migrate/MigrateProjects/registerTool/action", - "display": { - "provider": "Microsoft.Migrate", - "resource": "Microsoft.Migrate/MigrateProjects", - "operation": "Register tool with migrate project", - "description": "Registers a tool with the migrate project" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.Migrate/MigrateProjects/Solutions/read", - "display": { - "provider": "Microsoft.Migrate", - "resource": "Microsoft.Migrate/MigrateProjects/Solutions", - "operation": "Read", - "description": "Reads a solution" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.Migrate/MigrateProjects/Solutions/write", - "display": { - "provider": "Microsoft.Migrate", - "resource": "Microsoft.Migrate/MigrateProjects/Solutions", - "operation": "Write", - "description": "Creates or updates a solution" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.Migrate/MigrateProjects/Solutions/getConfig/action", - "display": { - "provider": "Microsoft.Migrate", - "resource": "Microsoft.Migrate/MigrateProjects/Solutions", - "operation": "Gets solution config", - "description": "Gets configuration of a solution" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.Migrate/MigrateProjects/Machines/read", - "display": { - "provider": "Microsoft.Migrate", - "resource": "Microsoft.Migrate/MigrateProjects/Machines", - "operation": "Read", - "description": "Reads a machine" - }, - "origin": "user,system" - }, - { - "name": "Microsoft.Migrate/MigrateProjects/MigrateErrors/read", - "display": { - "provider": "Microsoft.Migrate", - "resource": "Microsoft.Migrate/MigrateProjects/MigrateErrors", - "operation": "Read", - "description": "Reads a migrate error" - }, - "origin": "user,system" - } - ] +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b" + }, + "responses":{ + "200":{ + "body":{ + "value":[ + { + "name":"Microsoft.Migrate/MigrateProjects/read", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects", + "operation":"Read", + "description":"Reads a migrate project" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/Write", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects", + "operation":"Write", + "description":"Creates or updates a migrate project" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/Delete", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects", + "operation":"Delete", + "description":"Deletes a migrate project" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/registerTool/action", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects", + "operation":"Register tool with migrate project", + "description":"Registers a tool with the migrate project" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/Solutions/read", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects/Solutions", + "operation":"Read", + "description":"Reads a solution" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/Solutions/write", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects/Solutions", + "operation":"Write", + "description":"Creates or updates a solution" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/Solutions/delete", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects/Solutions", + "operation":"Delete", + "description":"Deletes a solution" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/Solutions/getConfig/action", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects/Solutions", + "operation":"Gets solution config", + "description":"Gets configuration of a solution" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/Machines/read", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects/Machines", + "operation":"Read", + "description":"Reads a machine" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/MigrateErrors/read", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects/MigrateErrors", + "operation":"Read", + "description":"Reads a migrate error" + }, + "origin":"user,system" + } + ] + } } - } - } + } } \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 4b683457d245..8a8546935e86 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -2518,4 +2518,4 @@ } } } -}operat \ No newline at end of file +} \ No newline at end of file From f4b032d665c1acd3b1226452df318e830a3daa53 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Wed, 31 Oct 2018 16:55:23 +0530 Subject: [PATCH 13/35] Swagger fixes for azure-sdk-for-go --- .../2018-09-01-preview/examples/MigrateProjects_Patch.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json index 4d38ac2d4504..62e5559050cb 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json @@ -6,7 +6,12 @@ "migrateProjectName":"project01", "project":{ "properties":{ + "registeredTools":[ + "SMS" + ], + "summary":{ + } }, "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", "name":"project01", @@ -23,7 +28,7 @@ "body":{ "properties":{ "registeredTools":[ - + "SMS" ], "summary":{ From 251876f47a655a3d19ebca406470da3539ed884d Mon Sep 17 00:00:00 2001 From: peetlotla Date: Wed, 31 Oct 2018 17:01:33 +0530 Subject: [PATCH 14/35] Swagger fixes for azure-sdk-for-go --- .../Microsoft.Migrate/preview/2018-09-01-preview/migrate.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 8a8546935e86..399a37e26867 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -384,9 +384,6 @@ { "$ref":"#/parameters/api-version" }, - { - "$ref":"#/parameters/acceptLanguage" - }, { "name":"body", "in":"body", From 70edfe586313df0d7545d5d220d2b5774972602e Mon Sep 17 00:00:00 2001 From: peetlotla Date: Wed, 31 Oct 2018 17:08:39 +0530 Subject: [PATCH 15/35] Fixing schema validation for azure-sdk-for-go. --- .../Microsoft.Migrate/preview/2018-09-01-preview/migrate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 399a37e26867..c038da4e4982 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -379,7 +379,7 @@ "$ref":"#/parameters/resourceGroupName" }, { - "$ref":"#/parameters/migraeProjectName" + "$ref":"#/parameters/migrateProjectName" }, { "$ref":"#/parameters/api-version" From 461c9210b4fd82baf5f13b9a99fc2b6b78fdf88f Mon Sep 17 00:00:00 2001 From: peetlotla Date: Thu, 1 Nov 2018 14:03:29 +0530 Subject: [PATCH 16/35] Adding delete method for migrate errors. --- .../examples/MigrateErrors_Delete.json | 14 ++++++++ .../preview/2018-09-01-preview/migrate.json | 36 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Delete.json diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Delete.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Delete.json new file mode 100644 index 000000000000..317fcf593ec1 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "migrateErrorName":"MigrateError01" + }, + "responses":{ + "200":{ + + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index c038da4e4982..b905da16eef3 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -193,6 +193,42 @@ "$ref":"./examples/MigrateErrors_Get.json" } } + }, + "delete":{ + "tags":[ + "Errors" + ], + "summary":"Delete the migrate error", + "description":"Delete the migrate error. Deleting non-existent migrate error is a no-operation.", + "operationId":"Errors_DeleteError", + "parameters":[ + { + "$ref":"#/parameters/subscriptionId" + }, + { + "$ref":"#/parameters/resourceGroupName" + }, + { + "$ref":"#/parameters/migrateProjectName" + }, + { + "$ref":"#/parameters/api-version" + }, + { + "$ref":"#/parameters/errorName" + } + ], + "responses":{ + "200":{ + "description":"OK" + } + }, + "deprecated":false, + "x-ms-examples":{ + "MigrateErrors_Delete":{ + "$ref":"./examples/MigrateErrors_Delete.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines":{ From 7ca6abc1aea1b1e9f59ecc633afe9345935cf220 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Mon, 12 Nov 2018 18:24:51 +0530 Subject: [PATCH 17/35] Updates as per ARM review. --- .../examples/MigrateProjects_Get.json | 4 +- .../examples/MigrateProjects_Patch.json | 4 +- .../examples/Solutions_Get.json | 4 +- .../examples/Solutions_List.json | 8 ++-- .../examples/Solutions_Patch.json | 6 +-- .../examples/Solutions_Put.json | 10 ++--- .../preview/2018-09-01-preview/migrate.json | 41 +++++++++++++++++-- 7 files changed, 56 insertions(+), 21 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json index 369327631b40..fb3856de03a2 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json @@ -10,8 +10,8 @@ "body":{ "properties":{ "registeredTools":[ - "SAS", - "SMS" + "ServerAssessment", + "ServerMigration" ], "summary":{ "discoveredCount":23223, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json index 62e5559050cb..01a5bd553013 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json @@ -7,7 +7,7 @@ "project":{ "properties":{ "registeredTools":[ - "SMS" + "ServerMigration" ], "summary":{ @@ -28,7 +28,7 @@ "body":{ "properties":{ "registeredTools":[ - "SMS" + "ServerMigration" ], "summary":{ diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json index 7e7fad9b5af2..13319fbadf9f 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json @@ -13,10 +13,10 @@ "name":"smssolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ - "tool":"SMS", + "tool":"ServerMigration", "purpose":"migration", "goal":"servers", - "isInactive":false, + "activityStatus":"Active", "summary":{ "discoveredCount":0, "assessedCount":0, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json index f88c5b5d457c..f10712537f8f 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json @@ -14,10 +14,10 @@ "name":"smssolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ - "tool":"SMS", + "tool":"ServerMigration", "purpose":"migration", "goal":"servers", - "isInactive":false, + "activityStatus":"Active", "summary":{ "discoveredCount":0, "assessedCount":0, @@ -38,10 +38,10 @@ "name":"sassolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ - "tool":"SAS", + "tool":"ServerAssessment", "purpose":"assessment", "goal":"servers", - "isInactive":false, + "activityStatus":"Active", "summary":{ "discoveredCount":0, "assessedCount":0, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json index 48541b6cc141..8e7b549567f3 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json @@ -7,7 +7,7 @@ "solutionName":"smssolution", "solutionInput":{ "properties":{ - "isInactive":false + "activityStatus":"Active" } } }, @@ -18,10 +18,10 @@ "name":"smssolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ - "tool":"SMS", + "tool":"ServerMigration", "purpose":"migration", "goal":"servers", - "isInactive":false, + "activityStatus":"Active", "summary":{ "discoveredCount":0, "assessedCount":0, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json index 4ff10343517f..a71b9f8a3531 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json @@ -7,7 +7,7 @@ "solutionName":"smssolution", "solutionInput":{ "properties":{ - "tool":"SMS", + "tool":"ServerMigration", "purpose":"migration", "goal":"servers" } @@ -20,10 +20,10 @@ "name":"smssolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ - "tool":"SMS", + "tool":"ServerMigration", "purpose":"migration", "goal":"servers", - "isInactive":false, + "activityStatus":"NotActive", "summary":{ "discoveredCount":0, "assessedCount":0, @@ -46,10 +46,10 @@ "name":"smssolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ - "tool":"SMS", + "tool":"ServerMigration", "purpose":"migration", "goal":"servers", - "isInactive":false, + "activityStatus":"NotActive", "summary":{ "discoveredCount":0, "assessedCount":0, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index b905da16eef3..03ce9c006e13 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -2290,6 +2290,11 @@ "description":"Gets or sets the list of tools registered with the migrate project.", "type":"array", "items":{ + "enum":[ + "ServerDiscovery", + "ServerAssessment", + "ServerMigration" + ], "type":"string" } }, @@ -2299,6 +2304,22 @@ "additionalProperties":{ "$ref":"#/definitions/GoalSummary" } + }, + "provisioningState":{ + "type":"string", + "enum":[ + "Accepted", + "Creating", + "Deleting", + "Failed", + "Moving", + "Succeeded" + ], + "description":"Provisioning state of the migrate project.", + "x-ms-enum":{ + "name":"ProvisioningState", + "modelAsString":true + } } } }, @@ -2334,6 +2355,11 @@ "properties":{ "tool":{ "description":"Gets or sets the tool to be registered.", + "enum":[ + "ServerDiscovery", + "ServerAssessment", + "ServerMigration" + ], "type":"string" } } @@ -2390,6 +2416,11 @@ "properties":{ "tool":{ "description":"Gets or sets the tool being used in the solution.", + "enum":[ + "ServerDiscovery", + "ServerAssessment", + "ServerMigration" + ], "type":"string" }, "purpose":{ @@ -2400,9 +2431,13 @@ "description":"Gets or sets the goal of the solution.", "type":"string" }, - "isInactive":{ - "description":"Gets or sets a value indicating whether the solution is active or not.", - "type":"boolean" + "activityStatus":{ + "description":"Gets or sets the value of activity status of the solution.", + "enum":[ + "Active", + "NotActive" + ], + "type":"string" }, "summary":{ "$ref":"#/definitions/SolutionSummary", From 772d61f76ed3de3c5ea0d4fd6f73693b1ca2b9fc Mon Sep 17 00:00:00 2001 From: peetlotla Date: Wed, 14 Nov 2018 17:57:16 +0530 Subject: [PATCH 18/35] Updates as per ARM feedback. --- ..._Delete.json => MigrateEvents_Delete.json} | 2 +- ...Errors_Get.json => MigrateEvents_Get.json} | 8 +- ...rors_List.json => MigrateEvents_List.json} | 12 +- .../examples/MigrateProjects_Get.json | 3 +- .../examples/MigrateProjects_Patch.json | 6 +- .../examples/MigrateProjects_Put.json | 6 +- .../examples/Solutions_Get.json | 6 +- .../examples/Solutions_List.json | 12 +- .../examples/Solutions_Patch.json | 8 +- .../examples/Solutions_Put.json | 16 +- .../preview/2018-09-01-preview/migrate.json | 173 +++++++++++++----- 11 files changed, 174 insertions(+), 78 deletions(-) rename specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/{MigrateErrors_Delete.json => MigrateEvents_Delete.json} (86%) rename specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/{MigrateErrors_Get.json => MigrateEvents_Get.json} (80%) rename specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/{MigrateErrors_List.json => MigrateEvents_List.json} (87%) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Delete.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Delete.json similarity index 86% rename from specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Delete.json rename to specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Delete.json index 317fcf593ec1..4cbc90dc3274 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Delete.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Delete.json @@ -4,7 +4,7 @@ "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", "migrateProjectName": "project01", - "migrateErrorName":"MigrateError01" + "migrateEventName":"MigrateEvent01" }, "responses":{ "200":{ diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json similarity index 80% rename from specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Get.json rename to specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json index 6d1bf17c473b..621a5ed0908e 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json @@ -4,14 +4,14 @@ "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", "migrateProjectName": "project01", - "migrateErrorName":"MigrateError01" + "migrateEventName":"MigrateEvent01" }, "responses":{ "200":{ "body":{ - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateError01", - "name":"MigrateError01", - "type":"Microsoft.Migrate/MigrateProjects/MigrateErrors", + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvent01", + "name":"MigrateEvent01", + "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents", "properties":{ "errorCode":1234, "errorMessage":"Invalid machine name.", diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json similarity index 87% rename from specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_List.json rename to specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json index 1b483431ba7d..2a19f5c9f969 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateErrors_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json @@ -18,9 +18,9 @@ "solution":"mysolution", "machine":"mymachine1" }, - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateError01", - "name":"MigrateError01", - "type":"Microsoft.Migrate/MigrateProjects/MigrateErrors" + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/MigrateEvent01", + "name":"MigrateEvent01", + "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents" }, { "properties":{ @@ -31,9 +31,9 @@ "solution":"mysolution", "machine":"mymachine2" }, - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateError02", - "name":"MigrateError02", - "type":"Microsoft.Migrate/MigrateProjects/MigrateErrors" + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/MigrateEvent02", + "name":"MigrateEvent02", + "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents" } ] } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json index fb3856de03a2..bfa5fd2bcb31 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json @@ -18,7 +18,8 @@ "assessedCount":43, "replicatingCount":123, "migratedCount":10023 - } + }, + "lastSummaryRefreshedTime":"2018-11-12T13:11:10.8808917Z" }, "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", "name":"project01", diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json index 01a5bd553013..edb2eb73ca04 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json @@ -11,7 +11,8 @@ ], "summary":{ - } + }, + "lastSummaryRefreshedTime":"2018-11-12T13:11:10.8808917Z" }, "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", "name":"project01", @@ -32,7 +33,8 @@ ], "summary":{ - } + }, + "lastSummaryRefreshedTime":"2018-11-12T13:11:10.8808917Z" }, "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", "name":"project01", diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json index 63b7ad8c4208..6fa31e35aa0f 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json @@ -27,7 +27,8 @@ ], "summary":{ - } + }, + "lastSummaryRefreshedTime":"2018-11-12T13:11:10.8808917Z" }, "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", "name":"project01", @@ -47,7 +48,8 @@ ], "summary":{ - } + }, + "lastSummaryRefreshedTime":"2018-11-12T13:11:10.8808917Z" }, "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", "name":"project01", diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json index 13319fbadf9f..39cd9c9a32ae 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json @@ -14,9 +14,9 @@ "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ "tool":"ServerMigration", - "purpose":"migration", - "goal":"servers", - "activityStatus":"Active", + "purpose":"Migration", + "goal":"Servers", + "status":"Active", "summary":{ "discoveredCount":0, "assessedCount":0, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json index f10712537f8f..6aab500ab0ab 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json @@ -15,9 +15,9 @@ "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ "tool":"ServerMigration", - "purpose":"migration", - "goal":"servers", - "activityStatus":"Active", + "purpose":"Migration", + "goal":"Servers", + "status":"Active", "summary":{ "discoveredCount":0, "assessedCount":0, @@ -39,9 +39,9 @@ "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ "tool":"ServerAssessment", - "purpose":"assessment", - "goal":"servers", - "activityStatus":"Active", + "purpose":"Assessment", + "goal":"Servers", + "status":"Active", "summary":{ "discoveredCount":0, "assessedCount":0, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json index 8e7b549567f3..23a70b40cda4 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json @@ -7,7 +7,7 @@ "solutionName":"smssolution", "solutionInput":{ "properties":{ - "activityStatus":"Active" + "status":"Active" } } }, @@ -19,9 +19,9 @@ "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ "tool":"ServerMigration", - "purpose":"migration", - "goal":"servers", - "activityStatus":"Active", + "purpose":"Migration", + "goal":"Servers", + "status":"Active", "summary":{ "discoveredCount":0, "assessedCount":0, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json index a71b9f8a3531..c2c990598f74 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json @@ -8,8 +8,8 @@ "solutionInput":{ "properties":{ "tool":"ServerMigration", - "purpose":"migration", - "goal":"servers" + "purpose":"Migration", + "goal":"Servers" } } }, @@ -21,9 +21,9 @@ "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ "tool":"ServerMigration", - "purpose":"migration", - "goal":"servers", - "activityStatus":"NotActive", + "purpose":"Migration", + "goal":"Servers", + "status":"Active", "summary":{ "discoveredCount":0, "assessedCount":0, @@ -47,9 +47,9 @@ "type":"Microsoft.Migrate/MigrateProjects/Solutions", "properties":{ "tool":"ServerMigration", - "purpose":"migration", - "goal":"servers", - "activityStatus":"NotActive", + "purpose":"Migration", + "goal":"Servers", + "status":"Active", "summary":{ "discoveredCount":0, "assessedCount":0, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 03ce9c006e13..8ee42735a64d 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -59,8 +59,8 @@ "x-ms-parameter-location":"method", "required":true }, - "errorName":{ - "name":"errorName", + "eventName":{ + "name":"eventName", "description":"Unique name of an error within a migrate project.", "type":"string", "in":"path", @@ -112,13 +112,13 @@ } ], "paths":{ - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateErrors":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateEvents":{ "get":{ "tags":[ - "Errors" + "Events" ], - "summary":"Gets a list of errors in the migrate project.", - "operationId":"Errors_EnumerateErrors", + "summary":"Gets a list of events in the migrate project.", + "operationId":"Errors_EnumerateEvents", "parameters":[ { "$ref":"#/parameters/subscriptionId" @@ -143,25 +143,25 @@ "200":{ "description":"OK", "schema":{ - "$ref":"#/definitions/ErrorCollection" + "$ref":"#/definitions/EventCollection" } } }, "deprecated":false, "x-ms-examples":{ - "MigrateErrors_List":{ - "$ref":"./examples/MigrateErrors_List.json" + "MigrateEvents_List":{ + "$ref":"./examples/MigrateEvents_List.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateErrors/{errorName}":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateEvents/{eventName}":{ "get":{ "tags":[ - "Errors" + "Events" ], - "summary":"Gets an error in the migrate project.", - "operationId":"Errors_GetError", + "summary":"Gets an event in the migrate project.", + "operationId":"Events_GetEvent", "parameters":[ { "$ref":"#/parameters/subscriptionId" @@ -176,31 +176,31 @@ "$ref":"#/parameters/api-version" }, { - "$ref":"#/parameters/errorName" + "$ref":"#/parameters/eventName" } ], "responses":{ "200":{ "description":"OK", "schema":{ - "$ref":"#/definitions/Error" + "$ref":"#/definitions/MigrateEvent" } } }, "deprecated":false, "x-ms-examples":{ - "MigrateErrors_Get":{ - "$ref":"./examples/MigrateErrors_Get.json" + "MigrateEvents_Get":{ + "$ref":"./examples/MigrateEvents_Get.json" } } }, "delete":{ "tags":[ - "Errors" + "Events" ], - "summary":"Delete the migrate error", - "description":"Delete the migrate error. Deleting non-existent migrate error is a no-operation.", - "operationId":"Errors_DeleteError", + "summary":"Delete the migrate event", + "description":"Delete the migrate event. Deleting non-existent migrate event is a no-operation.", + "operationId":"Events_DeleteEvent", "parameters":[ { "$ref":"#/parameters/subscriptionId" @@ -215,7 +215,7 @@ "$ref":"#/parameters/api-version" }, { - "$ref":"#/parameters/errorName" + "$ref":"#/parameters/eventName" } ], "responses":{ @@ -225,8 +225,8 @@ }, "deprecated":false, "x-ms-examples":{ - "MigrateErrors_Delete":{ - "$ref":"./examples/MigrateErrors_Delete.json" + "MigrateEvents_Delete":{ + "$ref":"./examples/MigrateEvents_Delete.json" } } } @@ -859,7 +859,7 @@ } }, - "ErrorCollection":{ + "EventCollection":{ "description":"Collection of errors.", "type":"object", "properties":{ @@ -867,7 +867,7 @@ "description":"Gets or sets the machines.", "type":"array", "items":{ - "$ref":"#/definitions/Error" + "$ref":"#/definitions/MigrateEvent" } }, "nextLink":{ @@ -876,8 +876,8 @@ } } }, - "Error":{ - "description":"Error REST resource.", + "MigrateEvent":{ + "description":"MigrateEvent REST resource.", "type":"object", "properties":{ "id":{ @@ -894,12 +894,12 @@ "readOnly":true }, "properties":{ - "$ref":"#/definitions/ErrorProperties", - "description":"Gets or sets the properties of the error." + "$ref":"#/definitions/EventProperties", + "description":"Gets or sets the properties of the event." } } }, - "ErrorProperties":{ + "EventProperties":{ "description":"Properties of the error resource.", "type":"object", "properties":{ @@ -2137,6 +2137,28 @@ "description":"Gets or sets the name of the machine.", "type":"string" }, + "ipAddresses":{ + "description":"Gets or sets the list of IP addresses of the machine.\r\n IP addresses could be IP V4 or IP V6.", + "type":"array", + "items":{ + "type":"string" + } + }, + "fqdn":{ + "description":"Gets or sets the FQDN of the machine.", + "type":"string" + }, + "biosId":{ + "description":"Gets or sets the BIOS ID of the machine.", + "type":"string" + }, + "macAddresses":{ + "description":"Gets or sets the list of MAC addresses of the machine.", + "type":"array", + "items":{ + "type":"string" + } + }, "extendedInfo":{ "description":"Gets or sets the ISV specific extended information.", "type":"object", @@ -2189,6 +2211,28 @@ "description":"Gets or sets the name of the machine.", "type":"string" }, + "ipAddresses":{ + "description":"Gets or sets the list of IP addresses of the machine.\r\n IP addresses could be IP V4 or IP V6.", + "type":"array", + "items":{ + "type":"string" + } + }, + "fqdn":{ + "description":"Gets or sets the FQDN of the machine.", + "type":"string" + }, + "biosId":{ + "description":"Gets or sets the BIOS ID of the machine.", + "type":"string" + }, + "macAddresses":{ + "description":"Gets or sets the list of MAC addresses of the machine.", + "type":"array", + "items":{ + "type":"string" + } + }, "extendedInfo":{ "description":"Gets or sets the ISV specific extended information.", "type":"object", @@ -2239,6 +2283,28 @@ "description":"Gets or sets the name of the machine.", "type":"string" }, + "ipAddresses":{ + "description":"Gets or sets the list of IP addresses of the machine.\r\n IP addresses could be IP V4 or IP V6.", + "type":"array", + "items":{ + "type":"string" + } + }, + "fqdn":{ + "description":"Gets or sets the FQDN of the machine.", + "type":"string" + }, + "biosId":{ + "description":"Gets or sets the BIOS ID of the machine.", + "type":"string" + }, + "macAddresses":{ + "description":"Gets or sets the list of MAC addresses of the machine.", + "type":"array", + "items":{ + "type":"string" + } + }, "extendedInfo":{ "description":"Gets or sets the ISV specific extended information.", "type":"object", @@ -2271,7 +2337,7 @@ "readOnly":true }, "name":{ - "description":"Gets or sets the name of the migrate project.", + "description":"Gets the name of the migrate project.", "type":"string", "readOnly":true }, @@ -2293,7 +2359,11 @@ "enum":[ "ServerDiscovery", "ServerAssessment", - "ServerMigration" + "ServerMigration", + "Cloudamize", + "CloudEndure", + "Zerto", + "CorentTech" ], "type":"string" } @@ -2305,6 +2375,11 @@ "$ref":"#/definitions/GoalSummary" } }, + "lastSummaryRefreshedTime":{ + "format":"date-time", + "description":"Gets the last time the project summary was refreshed.", + "type":"string" + }, "provisioningState":{ "type":"string", "enum":[ @@ -2358,7 +2433,11 @@ "enum":[ "ServerDiscovery", "ServerAssessment", - "ServerMigration" + "ServerMigration", + "Cloudamize", + "CloudEndure", + "Zerto", + "CorentTech" ], "type":"string" } @@ -2390,12 +2469,12 @@ "x-ms-azure-resource":true, "properties":{ "id":{ - "description":"Gets or sets the relative URL to get to this REST resource.", + "description":"Gets the relative URL to get to this REST resource.", "type":"string", "readOnly":true }, "name":{ - "description":"Gets or sets the name of this REST resource.", + "description":"Gets the name of this REST resource.", "type":"string", "readOnly":true }, @@ -2419,23 +2498,35 @@ "enum":[ "ServerDiscovery", "ServerAssessment", - "ServerMigration" + "ServerMigration", + "Cloudamize", + "CloudEndure", + "Zerto", + "CorentTech" ], "type":"string" }, "purpose":{ "description":"Gets or sets the purpose of the solution.", + "enum":[ + "Discovery", + "Assessment", + "Migration" + ], "type":"string" }, "goal":{ "description":"Gets or sets the goal of the solution.", + "enum":[ + "Servers" + ], "type":"string" }, - "activityStatus":{ - "description":"Gets or sets the value of activity status of the solution.", + "status":{ + "description":"Gets or sets the current status of the solution.", "enum":[ - "Active", - "NotActive" + "Inactive", + "Active" ], "type":"string" }, From c19dd1f0c5c7d8ae71808dd6fbc3936d8c6d5778 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Thu, 15 Nov 2018 17:23:31 +0530 Subject: [PATCH 19/35] Updates as per ARM feedback. --- .../examples/Machines_Get.json | 12 ++++++++++ .../examples/Machines_List.json | 24 +++++++++++++++++++ .../examples/Operations_List.json | 16 ++++++++++--- 3 files changed, 49 insertions(+), 3 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json index bd40d519c9f2..d8d62673ff28 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json @@ -24,6 +24,10 @@ "machineId":"abcd", "machineManagerId":"efgh", "machineName":"vm1", + "ipAddresses":null, + "fqdn":null, + "biosId":null, + "macAddresses":null, "extendedInfo":{ "custom1":"mycustomvalue" } @@ -42,6 +46,10 @@ "machineId":"abcd", "machineManagerId":"efgh", "machineName":"vm1", + "ipAddresses":null, + "fqdn":null, + "biosId":null, + "macAddresses":null, "extendedInfo":{ "custom2":"mycustomvalue" } @@ -58,6 +66,10 @@ "machineId":"abcd", "machineManagerId":"efgh", "machineName":"vm1", + "ipAddresses":null, + "fqdn":null, + "biosId":null, + "macAddresses":null, "extendedInfo":{ "custom3":"mycustomvalue" } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json index 3593e7b66475..88d7ddcdff6a 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json @@ -25,6 +25,10 @@ "machineId":"abcd", "machineManagerId":"efgh", "machineName":"vm1", + "ipAddresses":null, + "fqdn":null, + "biosId":null, + "macAddresses":null, "extendedInfo":{ "custom1":"mycustomvalue" } @@ -43,6 +47,10 @@ "machineId":"abcd", "machineManagerId":"efgh", "machineName":"vm1", + "ipAddresses":null, + "fqdn":null, + "biosId":null, + "macAddresses":null, "extendedInfo":{ "custom2":"mycustomvalue" } @@ -59,6 +67,10 @@ "machineId":"abcd", "machineManagerId":"efgh", "machineName":"vm1", + "ipAddresses":null, + "fqdn":null, + "biosId":null, + "macAddresses":null, "extendedInfo":{ "custom3":"mycustomvalue" } @@ -82,6 +94,10 @@ "machineId":"xyz", "machineManagerId":"efgh", "machineName":"vm2", + "ipAddresses":null, + "fqdn":null, + "biosId":null, + "macAddresses":null, "extendedInfo":{ "custom1":"mycustomvalue" } @@ -100,6 +116,10 @@ "machineId":"xyz", "machineManagerId":"efgh", "machineName":"vm2", + "ipAddresses":null, + "fqdn":null, + "biosId":null, + "macAddresses":null, "extendedInfo":{ "custom2":"mycustomvalue" } @@ -116,6 +136,10 @@ "machineId":"xyz", "machineManagerId":"efgh", "machineName":"vm2", + "ipAddresses":null, + "fqdn":null, + "biosId":null, + "macAddresses":null, "extendedInfo":{ "custom3":"mycustomvalue" } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json index cdd19ef51dc8..4c9e84dc914d 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json @@ -99,12 +99,22 @@ "origin":"user,system" }, { - "name":"Microsoft.Migrate/MigrateProjects/MigrateErrors/read", + "name":"Microsoft.Migrate/MigrateProjects/MigrateEvents/read", "display":{ "provider":"Microsoft.Migrate", - "resource":"Microsoft.Migrate/MigrateProjects/MigrateErrors", + "resource":"Microsoft.Migrate/MigrateProjects/MigrateEvents", "operation":"Read", - "description":"Reads a migrate error" + "description":"Reads a migrate event" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/MigrateEvents/delete", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects/MigrateEvents", + "operation":"Delete", + "description":"Deletes a migrate event" }, "origin":"user,system" } From d8a1127dff4bb3e8788bee53281440f9647df527 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Thu, 15 Nov 2018 17:36:10 +0530 Subject: [PATCH 20/35] Updates as per ARM feedback. --- .../preview/2018-09-01-preview/migrate.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 8ee42735a64d..63b4926c3210 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -61,7 +61,7 @@ }, "eventName":{ "name":"eventName", - "description":"Unique name of an error within a migrate project.", + "description":"Unique name of an event within a migrate project.", "type":"string", "in":"path", "x-ms-parameter-location":"method", @@ -118,7 +118,7 @@ "Events" ], "summary":"Gets a list of events in the migrate project.", - "operationId":"Errors_EnumerateEvents", + "operationId":"Events_EnumerateEvents", "parameters":[ { "$ref":"#/parameters/subscriptionId" @@ -860,7 +860,7 @@ } }, "EventCollection":{ - "description":"Collection of errors.", + "description":"Collection of events.", "type":"object", "properties":{ "value":{ @@ -900,7 +900,7 @@ } }, "EventProperties":{ - "description":"Properties of the error resource.", + "description":"Properties of the event resource.", "type":"object", "properties":{ "errorCode":{ @@ -912,19 +912,19 @@ "type":"string" }, "recommendation":{ - "description":"Gets or sets the recommendation for the error.", + "description":"Gets or sets the recommendation for the event.", "type":"string" }, "possibleCauses":{ - "description":"Gets or sets the possible causes for the error.", + "description":"Gets or sets the possible causes for the event.", "type":"string" }, "solution":{ - "description":"Gets or sets the solution for which the error is being reported.", + "description":"Gets or sets the solution for which the event is being reported.", "type":"string" }, "machine":{ - "description":"Gets or sets the machine for which the error is being reported.", + "description":"Gets or sets the machine for which the event is being reported.", "type":"string" } } From 313f1ce35bed61634a9c4317c2d74d2a23bd0b46 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Mon, 27 May 2019 17:55:50 +0530 Subject: [PATCH 21/35] Making changes to existing PR for AMH --- .../examples/DatabaseInstances_Get.json | 42 + .../examples/DatabaseInstances_List.json | 46 + .../examples/Databases_Get.json | 39 + .../examples/Databases_List.json | 43 + .../examples/MigrateProjects_Get.json | 40 +- .../examples/Operations_List.json | 30 + .../examples/Solutions_CleanupData.json | 14 + .../examples/Solutions_Get.json | 22 +- .../examples/Solutions_List.json | 39 +- .../examples/Solutions_Put.json | 48 +- .../preview/2018-09-01-preview/migrate.json | 923 ++++++++++++++++-- 11 files changed, 1134 insertions(+), 152 deletions(-) create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_Get.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_List.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json create mode 100644 specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_CleanupData.json diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_Get.json new file mode 100644 index 000000000000..73392d9d336c --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_Get.json @@ -0,0 +1,42 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "databaseInstanceName":"myinstance" + }, + "responses":{ + "200":{ + "body":{ + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/DatabaseInstances/myinstance", + "name":"myinstance", + "type":"Microsoft.Migrate/MigrateProjects/DatabaseInstances", + "properties":{ + "discoveryData":[ + { + "lastUpdatedTime":null, + "instanceId":"abc", + "enqueueTime":"5/4/2019 6:45:51 AM", + "solutionName":"serversolution", + "instanceName":"sql2002", + "instanceVersion":"2.0.0.0", + "instanceType":"SQL", + "hostName":null, + "ipAddress":null, + "portNumber":0, + "extendedInfo":null + } + ], + "summary":{ + "dbsolution":{ + "databasesAssessedCount":0, + "migrationReadyCount":0 + } + }, + "lastUpdatedTime":"2019-05-04T06:45:53.2530098Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_List.json new file mode 100644 index 000000000000..42c2fdcce9b1 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_List.json @@ -0,0 +1,46 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01" + }, + "responses":{ + "200":{ + "body":{ + "value":[ + { + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/DatabaseInstances/71710b61-8637-4beb-9ede-4449296eb80b", + "name":"71710b61-8637-4beb-9ede-4449296eb80b", + "type":"Microsoft.Migrate/MigrateProjects/DatabaseInstances", + "properties":{ + "discoveryData":[ + { + "lastUpdatedTime":null, + "instanceId":"abc", + "enqueueTime":"5/4/2019 6:45:51 AM", + "solutionName":"serversolution", + "instanceName":"sql2002", + "instanceVersion":"2.0.0.0", + "instanceType":"SQL", + "hostName":null, + "ipAddress":null, + "portNumber":0, + "extendedInfo":null + } + ], + "summary":{ + "dbsolution":{ + "databasesAssessedCount":0, + "migrationReadyCount":0 + } + }, + "lastUpdatedTime":"2019-05-04T06:45:53.2530098Z" + } + } + ], + "nextLink":null + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json new file mode 100644 index 000000000000..36e28440439f --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json @@ -0,0 +1,39 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "databaseName":"mydb" + }, + "responses":{ + "200":{ + "body":{ + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Databases/mydb", + "name":"mydb", + "type":"Microsoft.Migrate/MigrateProjects/Databases", + "properties":{ + "assessmentData":[ + { + "assessmentId":"myassessment", + "migrationBlockersCount":0, + "breakingChangesCount":0, + "isReadyForMigration":true, + "assessmentTargetType":"SQL", + "lastAssessedTime":"0001-01-01T00:00:00", + "compatibilityLevel":null, + "databaseSizeInMB":null, + "lastUpdatedTime":null, + "enqueueTime":"5/4/2019 6:46:37 AM", + "solutionName":"serversolution", + "instanceId":"abc", + "databaseName":"mydb", + "extendedInfo":null + } + ], + "lastUpdatedTime":"2019-05-04T06:46:40.4340421Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json new file mode 100644 index 000000000000..33cb52062783 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json @@ -0,0 +1,43 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01" + }, + "responses":{ + "200":{ + "body":{ + "value":[ + { + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Databases/8e7aae48-f7cf-4f7b-942f-243921aa20e2", + "name":"8e7aae48-f7cf-4f7b-942f-243921aa20e2", + "type":"Microsoft.Migrate/MigrateProjects/Databases", + "properties":{ + "assessmentData":[ + { + "assessmentId":"myassessment", + "migrationBlockersCount":0, + "breakingChangesCount":0, + "isReadyForMigration":true, + "assessmentTargetType":"SQL", + "lastAssessedTime":"0001-01-01T00:00:00", + "compatibilityLevel":null, + "databaseSizeInMB":null, + "lastUpdatedTime":null, + "enqueueTime":"5/4/2019 6:46:37 AM", + "solutionName":"serversolution", + "instanceId":"abc", + "databaseName":"mydb", + "extendedInfo":null + } + ], + "lastUpdatedTime":"2019-05-04T06:46:40.4340421Z" + } + } + ], + "nextLink":null + } + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json index bfa5fd2bcb31..cc03d78449c4 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json @@ -8,27 +8,41 @@ "responses":{ "200":{ "body":{ + "eTag":null, + "location":"", "properties":{ "registeredTools":[ - "ServerAssessment", - "ServerMigration" + ], "summary":{ - "discoveredCount":23223, - "assessedCount":43, - "replicatingCount":123, - "migratedCount":10023 + "servers":{ + "instanceType":"Servers", + "discoveredCount":0, + "assessedCount":0, + "replicatingCount":0, + "testMigratedCount":0, + "migratedCount":0, + "refreshSummaryState":"Completed", + "lastSummaryRefreshedTime":"2019-05-27T12:01:18.6070869Z", + "extendedSummary":{ + "microsoftDiscoveredCount":"0" + } + }, + "databases":{ + "instanceType":"Databases", + "refreshSummaryState":"Completed", + "lastSummaryRefreshedTime":"2019-05-27T12:01:18.6070869Z", + "extendedSummary":{ + + } + } }, - "lastSummaryRefreshedTime":"2018-11-12T13:11:10.8808917Z" + "lastSummaryRefreshedTime":"2019-05-27T12:01:18.6070869Z", + "refreshSummaryState":"Completed" }, "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", "name":"project01", - "type":"Microsoft.Migrate/MigrateProjects", - "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", - "location":"West Us", - "tags":{ - - } + "type":"Microsoft.Migrate/MigrateProjects" } } } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json index 4c9e84dc914d..5a23d8f31f3f 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json @@ -78,6 +78,16 @@ }, "origin":"user,system" }, + { + "name":"Microsoft.Migrate/MigrateProjects/Solutions/cleanupData/action", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects/Solutions", + "operation":"Cleans up solution data", + "description":"Cleans up data for a solution" + }, + "origin":"user,system" + }, { "name":"Microsoft.Migrate/MigrateProjects/Solutions/getConfig/action", "display":{ @@ -117,6 +127,26 @@ "description":"Deletes a migrate event" }, "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/Databases/read", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects/Databases", + "operation":"Read", + "description":"Reads a database" + }, + "origin":"user,system" + }, + { + "name":"Microsoft.Migrate/MigrateProjects/DatabaseInstances/read", + "display":{ + "provider":"Microsoft.Migrate", + "resource":"Microsoft.Migrate/MigrateProjects/DatabaseInstances", + "operation":"Read", + "description":"Reads a database instance" + }, + "origin":"user,system" } ] } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_CleanupData.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_CleanupData.json new file mode 100644 index 000000000000..5781a29e1a8b --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_CleanupData.json @@ -0,0 +1,14 @@ +{ + "parameters":{ + "resourceGroupName":"myResourceGroup", + "api-version":"2018-09-01-preview", + "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName":"project01", + "solutionName":"smssolution" + }, + "responses":{ + "200":{ + + } + } +} \ No newline at end of file diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json index 39cd9c9a32ae..d5630939f4a6 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json @@ -4,24 +4,26 @@ "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", "migrateProjectName":"project01", - "solutionName":"smssolution" + "solutionName":"dbsolution" }, "responses":{ "200":{ "body":{ - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", - "name":"smssolution", + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/dbsolution", + "name":"dbsolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "etag":"\"1c0018c7-0000-0000-0000-5c936e530000\"", "properties":{ - "tool":"ServerMigration", - "purpose":"Migration", - "goal":"Servers", + "tool":"DatabaseMigrationAssistant", + "purpose":"Assessment", + "goal":"Databases", "status":"Active", + "cleanupState":"None", "summary":{ - "discoveredCount":0, - "assessedCount":0, - "replicatingCount":0, - "migratedCount":0 + "instanceType":"Databases", + "databasesAssessedCount":0, + "databaseInstancesAssessedCount":0, + "migrationReadyCount":0 }, "details":{ "groupCount":0, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json index 6aab500ab0ab..5f57a5000469 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json @@ -10,19 +10,21 @@ "body":{ "value":[ { - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", - "name":"smssolution", + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/dbsolution", + "name":"dbsolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "etag":"\"1c0018c7-0000-0000-0000-5c936e530000\"", "properties":{ - "tool":"ServerMigration", - "purpose":"Migration", - "goal":"Servers", - "status":"Active", + "tool":"ServerDiscovery", + "purpose":"Assessment", + "goal":"Databases", + "status":"Inactive", + "cleanupState":"None", "summary":{ - "discoveredCount":0, - "assessedCount":0, - "replicatingCount":0, - "migratedCount":0 + "instanceType":"Databases", + "databasesAssessedCount":0, + "databaseInstancesAssessedCount":0, + "migrationReadyCount":0 }, "details":{ "groupCount":0, @@ -34,18 +36,22 @@ } }, { - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/sassolution", - "name":"sassolution", + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/serversolution", + "name":"serversolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "etag":"\"1c001dc7-0000-0000-0000-5c936e6f0000\"", "properties":{ - "tool":"ServerAssessment", - "purpose":"Assessment", + "tool":"ServerDiscovery", + "purpose":"Discovery", "goal":"Servers", - "status":"Active", + "status":"Inactive", + "cleanupState":"None", "summary":{ + "instanceType":"Servers", "discoveredCount":0, "assessedCount":0, "replicatingCount":0, + "testMigratedCount":0, "migratedCount":0 }, "details":{ @@ -57,7 +63,8 @@ } } } - ] + ], + "nextLink":"" } } } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json index c2c990598f74..61586af13b03 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json @@ -4,31 +4,33 @@ "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", "migrateProjectName":"project01", - "solutionName":"smssolution", + "solutionName":"dbsolution", "solutionInput":{ "properties":{ - "tool":"ServerMigration", - "purpose":"Migration", - "goal":"Servers" + "tool":"DatabaseMigrationAssistant", + "purpose":"Assessment", + "goal":"Databases" } } }, "responses":{ "200":{ "body":{ - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", - "name":"smssolution", + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/dbsolution", + "name":"dbsolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "etag":"\"1c0018c7-0000-0000-0000-5c936e530000\"", "properties":{ - "tool":"ServerMigration", - "purpose":"Migration", - "goal":"Servers", + "tool":"ServerDiscovery", + "purpose":"Assessment", + "goal":"Databases", "status":"Active", + "cleanupState":"None", "summary":{ - "discoveredCount":0, - "assessedCount":0, - "replicatingCount":0, - "migratedCount":0 + "instanceType":"Databases", + "databasesAssessedCount":0, + "databaseInstancesAssessedCount":0, + "migrationReadyCount":0 }, "details":{ "groupCount":0, @@ -42,19 +44,21 @@ }, "201":{ "body":{ - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", - "name":"smssolution", + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/dbsolution", + "name":"dbsolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "etag":"\"1c0018c7-0000-0000-0000-5c936e530000\"", "properties":{ - "tool":"ServerMigration", - "purpose":"Migration", - "goal":"Servers", + "tool":"ServerDiscovery", + "purpose":"Assessment", + "goal":"Databases", "status":"Active", + "cleanupState":"None", "summary":{ - "discoveredCount":0, - "assessedCount":0, - "replicatingCount":0, - "migratedCount":0 + "instanceType":"Databases", + "databasesAssessedCount":0, + "databaseInstancesAssessedCount":0, + "migrationReadyCount":0 }, "details":{ "groupCount":0, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 63b4926c3210..771884497bdd 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -51,6 +51,22 @@ "x-ms-parameter-location":"method", "required":true }, + "databaseName":{ + "name":"databaseName", + "description":"Unique name of a database in Azure migration hub.", + "type":"string", + "in":"path", + "x-ms-parameter-location":"method", + "required":true + }, + "databaseInstanceName":{ + "name":"databaseInstanceName", + "description":"Unique name of a database instance in Azure migration hub.", + "type":"string", + "in":"path", + "x-ms-parameter-location":"method", + "required":true + }, "solutionName":{ "name":"solutionName", "description":"Unique name of a migration solution within a migrate project.", @@ -75,6 +91,14 @@ "required":false, "x-ms-parameter-location":"method" }, + "pageSize":{ + "name":"pageSize", + "description":"The number of items to be returned in a single page. This value is honored only if it is less than the 100.", + "type":"integer", + "in":"query", + "required":false, + "x-ms-parameter-location":"method" + }, "api-version":{ "name":"api-version", "description":"Standard request header. Used by service to identify API version used by client.", @@ -112,6 +136,184 @@ } ], "paths":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/DatabaseInstances":{ + "get":{ + "tags":[ + "DatabaseInstances" + ], + "summary":"Gets a list of database instances in the migrate project.", + "operationId":"DatabaseInstances_EnumerateDatabaseInstances", + "parameters":[ + { + "$ref":"#/parameters/subscriptionId" + }, + { + "$ref":"#/parameters/resourceGroupName" + }, + { + "$ref":"#/parameters/migrateProjectName" + }, + { + "$ref":"#/parameters/api-version" + }, + { + "$ref":"#/parameters/continuationToken" + }, + { + "$ref":"#/parameters/pageSize" + }, + { + "$ref":"#/parameters/acceptLanguage" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/DatabaseInstanceCollection" + } + } + }, + "deprecated":false, + "x-ms-examples":{ + "DatabaseInstances_List":{ + "$ref":"./examples/DatabaseInstances_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/DatabaseInstances/{databaseInstanceName}":{ + "get":{ + "tags":[ + "DatabaseInstances" + ], + "summary":"Gets a database instance in the migrate project.", + "operationId":"DatabaseInstances_GetDatabaseInstance", + "parameters":[ + { + "$ref":"#/parameters/subscriptionId" + }, + { + "$ref":"#/parameters/resourceGroupName" + }, + { + "$ref":"#/parameters/migrateProjectName" + }, + { + "$ref":"#/parameters/databaseInstanceName" + }, + { + "$ref":"#/parameters/api-version" + }, + { + "$ref":"#/parameters/acceptLanguage" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/DatabaseInstance" + } + } + }, + "deprecated":false, + "x-ms-examples":{ + "DatabaseInstances_Get":{ + "$ref":"./examples/DatabaseInstances_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Databases":{ + "get":{ + "tags":[ + "Databases" + ], + "summary":"Gets a list of databases in the migrate project.", + "operationId":"Databases_EnumerateDatabases", + "parameters":[ + { + "$ref":"#/parameters/subscriptionId" + }, + { + "$ref":"#/parameters/resourceGroupName" + }, + { + "$ref":"#/parameters/migrateProjectName" + }, + { + "$ref":"#/parameters/api-version" + }, + { + "$ref":"#/parameters/continuationToken" + }, + { + "$ref":"#/parameters/pageSize" + }, + { + "$ref":"#/parameters/acceptLanguage" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/DatabaseCollection" + } + } + }, + "deprecated":false, + "x-ms-examples":{ + "Databases_List":{ + "$ref":"./examples/Databases_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Databases/{databaseName}":{ + "get":{ + "tags":[ + "Databases" + ], + "summary":"Gets a database in the migrate project.", + "operationId":"Databases_GetDatabase", + "parameters":[ + { + "$ref":"#/parameters/subscriptionId" + }, + { + "$ref":"#/parameters/resourceGroupName" + }, + { + "$ref":"#/parameters/migrateProjectName" + }, + { + "$ref":"#/parameters/databaseName" + }, + { + "$ref":"#/parameters/api-version" + }, + { + "$ref":"#/parameters/acceptLanguage" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } + } + }, + "deprecated":false, + "x-ms-examples":{ + "Databases_Get":{ + "$ref":"./examples/Databases_Get.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateEvents":{ "get":{ "tags":[ @@ -135,6 +337,9 @@ { "$ref":"#/parameters/continuationToken" }, + { + "$ref":"#/parameters/pageSize" + }, { "$ref":"#/parameters/acceptLanguage" } @@ -253,6 +458,9 @@ }, { "$ref":"#/parameters/continuationToken" + }, + { + "$ref":"#/parameters/pageSize" } ], "responses":{ @@ -553,6 +761,15 @@ }, { "$ref":"#/parameters/api-version" + }, + { + "name":"input", + "in":"body", + "description":"The goal input which needs to be refreshed.", + "required":true, + "schema":{ + "$ref":"#/definitions/RefreshSummaryInput" + } } ], "responses":{ @@ -828,6 +1045,43 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}/cleanupData":{ + "post":{ + "tags":[ + "Solutions" + ], + "summary":"Cleanup the solution data in the migrate project.", + "operationId":"Solutions_CleanupSolutionData", + "parameters":[ + { + "$ref":"#/parameters/subscriptionId" + }, + { + "$ref":"#/parameters/resourceGroupName" + }, + { + "$ref":"#/parameters/migrateProjectName" + }, + { + "$ref":"#/parameters/solutionName" + }, + { + "$ref":"#/parameters/api-version" + } + ], + "responses":{ + "200":{ + "description":"OK" + } + }, + "deprecated":false, + "x-ms-examples":{ + "Solutions_CleanupData":{ + "$ref":"./examples/Solutions_CleanupData.json" + } + } + } + }, "/providers/Microsoft.Migrate/operations":{ "get":{ "summary":"Get list of operations supported in the API.", @@ -859,15 +1113,15 @@ } }, - "EventCollection":{ - "description":"Collection of events.", + "DatabaseCollection":{ + "description":"Collection of databases.", "type":"object", "properties":{ "value":{ - "description":"Gets or sets the machines.", + "description":"Gets or sets the databases.", "type":"array", "items":{ - "$ref":"#/definitions/MigrateEvent" + "$ref":"#/definitions/Database" } }, "nextLink":{ @@ -876,8 +1130,8 @@ } } }, - "MigrateEvent":{ - "description":"MigrateEvent REST resource.", + "Database":{ + "description":"Database REST resource.", "type":"object", "properties":{ "id":{ @@ -894,53 +1148,186 @@ "readOnly":true }, "properties":{ - "$ref":"#/definitions/EventProperties", - "description":"Gets or sets the properties of the event." + "$ref":"#/definitions/DatabaseProperties", + "description":"Gets or sets the properties of the database." } } }, - "EventProperties":{ - "description":"Properties of the event resource.", + "DatabaseProperties":{ + "description":"Properties of the database resource.", "type":"object", "properties":{ - "errorCode":{ - "description":"Gets or sets the error code.", - "type":"string" + "assessmentData":{ + "description":"Gets or sets the assessment details of the database published by various sources.", + "type":"array", + "items":{ + "$ref":"#/definitions/DatabaseAssessmentDetails" + } }, - "errorMessage":{ - "description":"Gets or sets the error message.", + "lastUpdatedTime":{ + "format":"date-time", + "description":"Gets or sets the time of the last modification of the database.", + "type":"string" + } + } + }, + "DatabaseAssessmentDetails":{ + "description":"Assessment properties that can be shared by various publishers.", + "type":"object", + "properties":{ + "assessmentId":{ + "description":"Gets or sets the database assessment scope/Id.", "type":"string" }, - "recommendation":{ - "description":"Gets or sets the recommendation for the event.", + "migrationBlockersCount":{ + "format":"int32", + "description":"Gets or sets the number of blocking changes found.", + "type":"integer" + }, + "breakingChangesCount":{ + "format":"int32", + "description":"Gets or sets the number of breaking changes found.", + "type":"integer" + }, + "isReadyForMigration":{ + "description":"Gets or sets a value indicating whether the database is ready for migration.", + "type":"boolean" + }, + "assessmentTargetType":{ + "description":"Gets or sets the assessed target database type.", "type":"string" }, - "possibleCauses":{ - "description":"Gets or sets the possible causes for the event.", + "lastAssessedTime":{ + "format":"date-time", + "description":"Gets or sets the time when the database was last assessed.", "type":"string" }, - "solution":{ - "description":"Gets or sets the solution for which the event is being reported.", + "compatibilityLevel":{ + "description":"Gets or sets the compatibility level of the database.", "type":"string" }, - "machine":{ - "description":"Gets or sets the machine for which the event is being reported.", + "databaseSizeInMB":{ + "description":"Gets or sets the database size.", "type":"string" - } - } - }, - "ODataQueryOptions`1":{ - "type":"object", - "properties":{ - "ifMatch":{ - "$ref":"#/definitions/Object", - "readOnly":true }, - "ifNoneMatch":{ - "$ref":"#/definitions/Object", - "readOnly":true + "lastUpdatedTime":{ + "format":"date-time", + "description":"Gets or sets the time of the last modification of the database details.", + "type":"string" }, - "request":{ + "enqueueTime":{ + "description":"Gets or sets the time the message was enqueued.", + "type":"string" + }, + "solutionName":{ + "description":"Gets or sets the name of the solution that sent the data.", + "type":"string" + }, + "instanceId":{ + "description":"Gets or sets the database server instance Id.", + "type":"string" + }, + "databaseName":{ + "description":"Gets or sets the database name.", + "type":"string" + }, + "extendedInfo":{ + "description":"Gets or sets the extended properties of the database.", + "type":"object", + "additionalProperties":{ + "type":"string" + } + } + } + }, + "EventCollection":{ + "description":"Collection of events.", + "type":"object", + "properties":{ + "value":{ + "description":"Gets or sets the machines.", + "type":"array", + "items":{ + "$ref":"#/definitions/MigrateEvent" + } + }, + "nextLink":{ + "description":"Gets or sets the value of nextLink.", + "type":"string" + } + } + }, + "MigrateEvent":{ + "description":"MigrateEvent REST resource.", + "type":"object", + "properties":{ + "id":{ + "description":"Gets or sets the relative URL to get to this REST resource.", + "type":"string" + }, + "name":{ + "description":"Gets or sets the name of this REST resource.", + "type":"string" + }, + "type":{ + "description":"Gets the type of this REST resource.", + "type":"string", + "readOnly":true + }, + "properties":{ + "$ref":"#/definitions/MigrateEventProperties", + "description":"Gets or sets the properties of the event." + } + } + }, + "MigrateEventProperties":{ + "description":"Properties of the error resource.", + "type":"object", + "properties":{ + "instanceType":{ + "description":"Gets the Instance type.", + "type":"string", + "readOnly":true + }, + "errorCode":{ + "description":"Gets or sets the error code.", + "type":"string" + }, + "errorMessage":{ + "description":"Gets or sets the error message.", + "type":"string" + }, + "recommendation":{ + "description":"Gets or sets the recommendation for the error.", + "type":"string" + }, + "possibleCauses":{ + "description":"Gets or sets the possible causes for the error.", + "type":"string" + }, + "solution":{ + "description":"Gets or sets the solution for which the error is being reported.", + "type":"string" + }, + "clientRequestId":{ + "description":"Gets or sets the client request Id of the payload for which the event is being reported.", + "type":"string" + } + }, + "discriminator":"InstanceType" + }, + "ODataQueryOptions`1":{ + "type":"object", + "properties":{ + "ifMatch":{ + "$ref":"#/definitions/Object", + "readOnly":true + }, + "ifNoneMatch":{ + "$ref":"#/definitions/Object", + "readOnly":true + }, + "request":{ "$ref":"#/definitions/Object", "readOnly":true }, @@ -2098,6 +2485,11 @@ "items":{ "$ref":"#/definitions/MigrationDetails" } + }, + "lastUpdatedTime":{ + "format":"date-time", + "description":"Gets or sets the time of the last modification of the machine.", + "type":"string" } } }, @@ -2133,12 +2525,21 @@ "description":"Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", "type":"string" }, + "fabricType":{ + "description":"Gets or sets the fabric type.", + "type":"string" + }, + "lastUpdatedTime":{ + "format":"date-time", + "description":"Gets or sets the time of the last modification of the machine details.", + "type":"string" + }, "machineName":{ "description":"Gets or sets the name of the machine.", "type":"string" }, "ipAddresses":{ - "description":"Gets or sets the list of IP addresses of the machine.\r\n IP addresses could be IP V4 or IP V6.", + "description":"Gets or sets the list of IP addresses of the machine. IP addresses could be IP V4 or IP V6.", "type":"array", "items":{ "type":"string" @@ -2207,12 +2608,21 @@ "description":"Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", "type":"string" }, + "fabricType":{ + "description":"Gets or sets the fabric type.", + "type":"string" + }, + "lastUpdatedTime":{ + "format":"date-time", + "description":"Gets or sets the time of the last modification of the machine details.", + "type":"string" + }, "machineName":{ "description":"Gets or sets the name of the machine.", "type":"string" }, "ipAddresses":{ - "description":"Gets or sets the list of IP addresses of the machine.\r\n IP addresses could be IP V4 or IP V6.", + "description":"Gets or sets the list of IP addresses of the machine. IP addresses could be IP V4 or IP V6.", "type":"array", "items":{ "type":"string" @@ -2279,12 +2689,21 @@ "description":"Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", "type":"string" }, + "fabricType":{ + "description":"Gets or sets the fabric type.", + "type":"string" + }, + "lastUpdatedTime":{ + "format":"date-time", + "description":"Gets or sets the time of the last modification of the machine details.", + "type":"string" + }, "machineName":{ "description":"Gets or sets the name of the machine.", "type":"string" }, "ipAddresses":{ - "description":"Gets or sets the list of IP addresses of the machine.\r\n IP addresses could be IP V4 or IP V6.", + "description":"Gets or sets the list of IP addresses of the machine. IP addresses could be IP V4 or IP V6.", "type":"array", "items":{ "type":"string" @@ -2361,24 +2780,42 @@ "ServerAssessment", "ServerMigration", "Cloudamize", - "CloudEndure", + "Turbonomic", "Zerto", - "CorentTech" + "CorentTech", + "ServerAssessmentV1", + "ServerMigration_Replication", + "Carbonite", + "DataMigrationAssistant", + "DatabaseMigrationService" ], "type":"string" } }, "summary":{ - "description":"Gets or sets the goals summary of the migrate Project. \r\n It maps the goal to its summary object.", + "description":"Gets the summary of the migrate project.", "type":"object", "additionalProperties":{ - "$ref":"#/definitions/GoalSummary" - } + "$ref":"#/definitions/ProjectSummary" + }, + "readOnly":true }, "lastSummaryRefreshedTime":{ "format":"date-time", "description":"Gets the last time the project summary was refreshed.", - "type":"string" + "type":"string", + "readOnly":true + }, + "refreshSummaryState":{ + "description":"Gets the refresh summary state.", + "enum":[ + "Started", + "InProgress", + "Completed", + "Failed" + ], + "type":"string", + "readOnly":true }, "provisioningState":{ "type":"string", @@ -2398,31 +2835,39 @@ } } }, - "GoalSummary":{ - "description":"Class representing the summary object for goal.", + "ProjectSummary":{ + "description":"The project summary class.", "type":"object", "properties":{ - "discoveredCount":{ - "format":"int32", - "description":"Gets or sets the count of entities discovered.", - "type":"integer" + "instanceType":{ + "description":"Gets the Instance type.", + "type":"string", + "readOnly":true }, - "assessedCount":{ - "format":"int32", - "description":"Gets or sets the count of entities assessed.", - "type":"integer" + "refreshSummaryState":{ + "description":"Gets or sets the state of refresh summary.", + "enum":[ + "Started", + "InProgress", + "Completed", + "Failed" + ], + "type":"string" }, - "replicatingCount":{ - "format":"int32", - "description":"Gets or sets the count of entities being replicated.", - "type":"integer" + "lastSummaryRefreshedTime":{ + "format":"date-time", + "description":"Gets or sets the time when summary was last refreshed.", + "type":"string" }, - "migratedCount":{ - "format":"int32", - "description":"Gets or sets the count of entities migrated.", - "type":"integer" + "extendedSummary":{ + "description":"Gets or sets the extended summary.", + "type":"object", + "additionalProperties":{ + "type":"string" + } } - } + }, + "discriminator":"InstanceType" }, "RegisterToolInput":{ "description":"Class representing the register tool input.", @@ -2435,9 +2880,14 @@ "ServerAssessment", "ServerMigration", "Cloudamize", - "CloudEndure", + "Turbonomic", "Zerto", - "CorentTech" + "CorentTech", + "ServerAssessmentV1", + "ServerMigration_Replication", + "Carbonite", + "DataMigrationAssistant", + "DatabaseMigrationService" ], "type":"string" } @@ -2463,10 +2913,23 @@ } } }, + "RefreshSummaryInput":{ + "description":"Class representing the refresh summary input.", + "type":"object", + "properties":{ + "goal":{ + "description":"Gets or sets the goal for which summary needs to be refreshed.", + "enum":[ + "Servers", + "Databases" + ], + "type":"string" + } + } + }, "Solution":{ "description":"Solution REST Resource.", "type":"object", - "x-ms-azure-resource":true, "properties":{ "id":{ "description":"Gets the relative URL to get to this REST resource.", @@ -2483,6 +2946,10 @@ "type":"string", "readOnly":true }, + "etag":{ + "description":"Gets or sets the ETAG for optimistic concurrency control.", + "type":"string" + }, "properties":{ "$ref":"#/definitions/SolutionProperties", "description":"Gets or sets the properties of the solution." @@ -2500,9 +2967,14 @@ "ServerAssessment", "ServerMigration", "Cloudamize", - "CloudEndure", + "Turbonomic", "Zerto", - "CorentTech" + "CorentTech", + "ServerAssessmentV1", + "ServerMigration_Replication", + "Carbonite", + "DataMigrationAssistant", + "DatabaseMigrationService" ], "type":"string" }, @@ -2518,7 +2990,8 @@ "goal":{ "description":"Gets or sets the goal of the solution.", "enum":[ - "Servers" + "Servers", + "Databases" ], "type":"string" }, @@ -2530,6 +3003,17 @@ ], "type":"string" }, + "cleanupState":{ + "description":"Gets or sets the cleanup state of the solution.", + "enum":[ + "None", + "Started", + "InProgress", + "Completed", + "Failed" + ], + "type":"string" + }, "summary":{ "$ref":"#/definitions/SolutionSummary", "description":"Gets or sets the summary of the solution." @@ -2541,30 +3025,16 @@ } }, "SolutionSummary":{ - "description":"Class representing the summary object for solution.", + "description":"The solution summary class.", "type":"object", "properties":{ - "discoveredCount":{ - "format":"int32", - "description":"Gets or sets the count of entities discovered.", - "type":"integer" - }, - "assessedCount":{ - "format":"int32", - "description":"Gets or sets the count of entities assessed.", - "type":"integer" - }, - "replicatingCount":{ - "format":"int32", - "description":"Gets or sets the count of entities being replicated.", - "type":"integer" - }, - "migratedCount":{ - "format":"int32", - "description":"Gets or sets the count of entities migrated.", - "type":"integer" + "instanceType":{ + "description":"Gets the Instance type.", + "type":"string", + "readOnly":true } - } + }, + "discriminator":"InstanceType" }, "SolutionDetails":{ "description":"Class representing the details of the solution.", @@ -2616,6 +3086,277 @@ } } }, + "ServersProjectSummary":{ + "description":"Class representing the servers project summary.", + "type":"object", + "allOf":[ + { + "$ref":"#/definitions/ProjectSummary" + } + ], + "properties":{ + "instanceType":{ + "description":"Gets the Instance type.", + "type":"string", + "readOnly":true + }, + "discoveredCount":{ + "format":"int32", + "description":"Gets or sets the count of entities discovered.", + "type":"integer" + }, + "assessedCount":{ + "format":"int32", + "description":"Gets or sets the count of entities assessed.", + "type":"integer" + }, + "replicatingCount":{ + "format":"int32", + "description":"Gets or sets the count of entities being replicated.", + "type":"integer" + }, + "testMigratedCount":{ + "format":"int32", + "description":"Gets or sets the count of entities test migrated.", + "type":"integer" + }, + "migratedCount":{ + "format":"int32", + "description":"Gets or sets the count of entities migrated.", + "type":"integer" + }, + "refreshSummaryState":{ + "description":"Gets or sets the state of refresh summary.", + "enum":[ + "Started", + "InProgress", + "Completed", + "Failed" + ], + "type":"string" + }, + "lastSummaryRefreshedTime":{ + "format":"date-time", + "description":"Gets or sets the time when summary was last refreshed.", + "type":"string" + }, + "extendedSummary":{ + "description":"Gets or sets the extended summary.", + "type":"object", + "additionalProperties":{ + "type":"string" + } + } + }, + "x-ms-discriminator-value":"Servers" + }, + "DatabaseProjectSummary":{ + "description":"The database project summary class.", + "type":"object", + "allOf":[ + { + "$ref":"#/definitions/ProjectSummary" + } + ], + "properties":{ + "instanceType":{ + "description":"Gets the Instance type.", + "type":"string", + "readOnly":true + }, + "refreshSummaryState":{ + "description":"Gets or sets the state of refresh summary.", + "enum":[ + "Started", + "InProgress", + "Completed", + "Failed" + ], + "type":"string" + }, + "lastSummaryRefreshedTime":{ + "format":"date-time", + "description":"Gets or sets the time when summary was last refreshed.", + "type":"string" + }, + "extendedSummary":{ + "description":"Gets or sets the extended summary.", + "type":"object", + "additionalProperties":{ + "type":"string" + } + } + }, + "x-ms-discriminator-value":"Databases" + }, + "ServersSolutionSummary":{ + "description":"Class representing the servers solution summary.", + "type":"object", + "allOf":[ + { + "$ref":"#/definitions/SolutionSummary" + } + ], + "properties":{ + "instanceType":{ + "description":"Gets the Instance type.", + "type":"string", + "readOnly":true + }, + "discoveredCount":{ + "format":"int32", + "description":"Gets or sets the count of servers discovered.", + "type":"integer" + }, + "assessedCount":{ + "format":"int32", + "description":"Gets or sets the count of servers assessed.", + "type":"integer" + }, + "replicatingCount":{ + "format":"int32", + "description":"Gets or sets the count of servers being replicated.", + "type":"integer" + }, + "testMigratedCount":{ + "format":"int32", + "description":"Gets or sets the count of servers test migrated.", + "type":"integer" + }, + "migratedCount":{ + "format":"int32", + "description":"Gets or sets the count of servers migrated.", + "type":"integer" + } + }, + "x-ms-discriminator-value":"Servers" + }, + "DatabasesSolutionSummary":{ + "description":"Class representing the databases solution summary.", + "type":"object", + "allOf":[ + { + "$ref":"#/definitions/SolutionSummary" + } + ], + "properties":{ + "instanceType":{ + "description":"Gets the Instance type.", + "type":"string", + "readOnly":true + }, + "databasesAssessedCount":{ + "format":"int32", + "description":"Gets or sets the count of databases assessed.", + "type":"integer" + }, + "databaseInstancesAssessedCount":{ + "format":"int32", + "description":"Gets or sets the count of database instances assessed.", + "type":"integer" + }, + "migrationReadyCount":{ + "format":"int32", + "description":"Gets or sets the count of databases ready for migration.", + "type":"integer" + } + }, + "x-ms-discriminator-value":"Databases" + }, + "MachineMigrateEventProperties":{ + "description":"Properties of the machine error resource.", + "type":"object", + "allOf":[ + { + "$ref":"#/definitions/MigrateEventProperties" + } + ], + "properties":{ + "instanceType":{ + "description":"Gets the Instance type.", + "type":"string", + "readOnly":true + }, + "machine":{ + "description":"Gets or sets the machine for which the error is being reported.", + "type":"string" + }, + "errorCode":{ + "description":"Gets or sets the error code.", + "type":"string" + }, + "errorMessage":{ + "description":"Gets or sets the error message.", + "type":"string" + }, + "recommendation":{ + "description":"Gets or sets the recommendation for the error.", + "type":"string" + }, + "possibleCauses":{ + "description":"Gets or sets the possible causes for the error.", + "type":"string" + }, + "solution":{ + "description":"Gets or sets the solution for which the error is being reported.", + "type":"string" + }, + "clientRequestId":{ + "description":"Gets or sets the client request Id of the payload for which the event is being reported.", + "type":"string" + } + }, + "x-ms-discriminator-value":"Servers" + }, + "DatabaseMigrateEventProperties":{ + "description":"Properties of the database error resource.", + "type":"object", + "allOf":[ + { + "$ref":"#/definitions/MigrateEventProperties" + } + ], + "properties":{ + "instanceType":{ + "description":"Gets the Instance type.", + "type":"string", + "readOnly":true + }, + "database":{ + "description":"Gets or sets the database for which the error is being reported.", + "type":"string" + }, + "databaseInstanceId":{ + "description":"Gets or sets the database instance for which the error is being reported.", + "type":"string" + }, + "errorCode":{ + "description":"Gets or sets the error code.", + "type":"string" + }, + "errorMessage":{ + "description":"Gets or sets the error message.", + "type":"string" + }, + "recommendation":{ + "description":"Gets or sets the recommendation for the error.", + "type":"string" + }, + "possibleCauses":{ + "description":"Gets or sets the possible causes for the error.", + "type":"string" + }, + "solution":{ + "description":"Gets or sets the solution for which the error is being reported.", + "type":"string" + }, + "clientRequestId":{ + "description":"Gets or sets the client request Id of the payload for which the event is being reported.", + "type":"string" + } + }, + "x-ms-discriminator-value":"Databases" + }, "OperationResultList":{ "type":"object", "description":"List of API operations.", From 392c49b1467135e338b552c4d4039eef7b764aa3 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 28 May 2019 12:10:51 +0530 Subject: [PATCH 22/35] Fixnig the semantic errors --- .../examples/MigrateEvents_Get.json | 18 +++---- .../examples/MigrateEvents_List.json | 47 ++++++++++--------- .../preview/2018-09-01-preview/migrate.json | 40 ++++++++++++++++ 3 files changed, 76 insertions(+), 29 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json index 621a5ed0908e..97d272fa715b 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json @@ -3,22 +3,24 @@ "resourceGroupName":"myResourceGroup", "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", - "migrateProjectName": "project01", + "migrateProjectName":"project01", "migrateEventName":"MigrateEvent01" }, "responses":{ "200":{ "body":{ - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvent01", + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/MigrateEvent01", "name":"MigrateEvent01", "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents", "properties":{ - "errorCode":1234, - "errorMessage":"Invalid machine name.", - "recommendation":"Please correct the error and retry the operation.", - "possibleCauses":"Invalid input in the data.", - "solution":"mysolution", - "machine":"mymachine1" + "instanceType":"Servers", + "machine":null, + "errorCode":"600", + "errorMessage":"The message does not contain the required parameters to identify the machine.", + "recommendation":"Resolve the error and try again.", + "possibleCauses":"The mandatory fields are not provided.", + "solution":"serversolution", + "clientRequestId":null } } } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json index 2a19f5c9f969..9e2a93d8df5b 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json @@ -3,37 +3,42 @@ "resourceGroupName":"myResourceGroup", "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", - "migrateProjectName": "project01" + "migrateProjectName":"project01" }, "responses":{ "200":{ "body":{ "value":[ { + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/b80e3c0f-70c0-4057-81e7-14cfa9ebb205", + "name":"b80e3c0f-70c0-4057-81e7-14cfa9ebb205", + "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents", "properties":{ - "errorCode":1234, - "errorMessage":"Invalid machine name.", - "recommendation":"Please correct the error and retry the operation.", - "possibleCauses":"Invalid input in the data.", - "solution":"mysolution", - "machine":"mymachine1" - }, - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/MigrateEvent01", - "name":"MigrateEvent01", - "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents" + "instanceType":"Servers", + "machine":null, + "errorCode":"600", + "errorMessage":"The message does not contain the required parameters to identify the machine.", + "recommendation":"Resolve the error and try again.", + "possibleCauses":"The mandatory fields are not provided.", + "solution":"serversolution", + "clientRequestId":null + } }, { + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/041dc61e-8568-40f7-b9b3-c66233ace714", + "name":"041dc61e-8568-40f7-b9b3-c66233ace714", + "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents", "properties":{ - "errorCode":1288, - "errorMessage":"Invalid foramt.", - "recommendation":"Please correct the error and retry the operation.", - "possibleCauses":"Invalid input in the data.", - "solution":"mysolution", - "machine":"mymachine2" - }, - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/MigrateEvent02", - "name":"MigrateEvent02", - "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents" + "instanceType":"Databases", + "database":null, + "databaseInstanceId":"cD", + "errorCode":"608", + "errorMessage":"The message does not contain the required parameters to identify the database.", + "recommendation":"Resolve the error and try again.", + "possibleCauses":"The mandatory fields are not provided.", + "solution":"dbsolution", + "clientRequestId":"cf861fa5-9a2e-4a9f-b51c-8054efa8e75f" + } } ] } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 771884497bdd..9ab7ddd30698 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -1113,6 +1113,46 @@ } }, + "DatabaseInstanceCollection":{ + "description":"Collection of database instances.", + "type":"object", + "properties":{ + "value":{ + "description":"Gets or sets the database instances.", + "type":"array", + "items":{ + "$ref":"#/definitions/DatabaseInstance" + } + }, + "nextLink":{ + "description":"Gets or sets the value of nextLink.", + "type":"string" + } + } + }, + "DatabaseInstance":{ + "description":"DatabaseInstance REST resource.", + "type":"object", + "properties":{ + "id":{ + "description":"Gets or sets the relative URL to get to this REST resource.", + "type":"string" + }, + "name":{ + "description":"Gets or sets the name of this REST resource.", + "type":"string" + }, + "type":{ + "description":"Gets the type of this REST resource.", + "type":"string", + "readOnly":true + }, + "properties":{ + "$ref":"#/definitions/DatabaseInstanceProperties", + "description":"Gets or sets the properties of the machine." + } + } + }, "DatabaseCollection":{ "description":"Collection of databases.", "type":"object", From 7dbe4d790cd7c6b0e85e32f7e405ac43b6d907c8 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 28 May 2019 13:19:59 +0530 Subject: [PATCH 23/35] Fixnig the semantic errors --- .../preview/2018-09-01-preview/migrate.json | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 9ab7ddd30698..968e94f4d42d 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -1153,6 +1153,102 @@ } } }, + "DatabaseInstanceProperties":{ + "description":"Properties of the database instance resource.", + "type":"object", + "properties":{ + "discoveryData":{ + "description":"Gets or sets the assessment details of the database instance published by various sources.", + "type":"array", + "items":{ + "$ref":"#/definitions/DatabaseInstanceDiscoveryDetails" + } + }, + "summary":{ + "description":"Gets or sets the database instances summary per solution. The key of\r\n dictionary is the solution name and value is the corresponding database instance summary object.", + "type":"object", + "additionalProperties":{ + "$ref":"#/definitions/DatabaseInstanceSummary" + } + }, + "lastUpdatedTime":{ + "format":"date-time", + "description":"Gets or sets the time of the last modification of the database.", + "type":"string" + } + } + }, + "DatabaseInstanceDiscoveryDetails":{ + "description":"Discovery properties that can be shared by various publishers.", + "type":"object", + "properties":{ + "lastUpdatedTime":{ + "format":"date-time", + "description":"Gets or sets the time of the last modification of\r\n the database instance details.", + "type":"string" + }, + "instanceId":{ + "description":"Gets or sets the database instance Id.", + "type":"string" + }, + "enqueueTime":{ + "description":"Gets or sets the time the message was enqueued.", + "type":"string" + }, + "solutionName":{ + "description":"Gets or sets the name of the solution that sent the data.", + "type":"string" + }, + "instanceName":{ + "description":"Gets or sets the database instance name.", + "type":"string" + }, + "instanceVersion":{ + "description":"Gets or sets the database instance version.", + "type":"string" + }, + "instanceType":{ + "description":"Gets or sets the database instance type.", + "type":"string" + }, + "hostName":{ + "description":"Gets or sets the host name of the database server.", + "type":"string" + }, + "ipAddress":{ + "description":"Gets or sets the IP addresses of the database server.\r\n IP addresses could be IP V4 or IP V6.", + "type":"string" + }, + "portNumber":{ + "format":"int32", + "description":"Gets or sets the port number of the database server.", + "type":"integer" + }, + "extendedInfo":{ + "description":"Gets or sets the extended properties of the database server.", + "type":"object", + "additionalProperties":{ + "type":"string" + } + } + } + }, + "DatabaseInstanceSummary":{ + "description":"Class representing the database instance summary object.", + "type":"object", + "properties":{ + "databasesAssessedCount":{ + "format":"int32", + "description":"Gets or sets the count of databases assessed.", + "type":"integer" + }, + "migrationReadyCount":{ + "format":"int32", + "description":"Gets or sets the count of databases ready for migration.", + "type":"integer" + } + } + }, "DatabaseCollection":{ "description":"Collection of databases.", "type":"object", From 98ea89440fc89ffcf76c2abccf19d67fe1293572 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 28 May 2019 14:45:50 +0530 Subject: [PATCH 24/35] Fixing semantic errors --- .../2018-09-01-preview/examples/Databases_Get.json | 2 +- .../2018-09-01-preview/examples/Databases_List.json | 2 +- .../preview/2018-09-01-preview/examples/Machines_Get.json | 1 - .../2018-09-01-preview/examples/Machines_List.json | 2 -- .../2018-09-01-preview/examples/MigrateEvents_Delete.json | 2 +- .../2018-09-01-preview/examples/MigrateEvents_Get.json | 2 +- .../examples/MigrateProjects_Patch.json | 8 ++------ .../2018-09-01-preview/examples/MigrateProjects_Put.json | 3 +-- .../examples/MigrateProjects_RefreshSummary.json | 5 ++++- .../examples/MigrateProjects_RegisterTool.json | 5 ++++- .../2018-09-01-preview/examples/Solutions_List.json | 2 +- .../2018-09-01-preview/examples/Solutions_Put.json | 6 +++--- .../preview/2018-09-01-preview/migrate.json | 7 +++++++ 13 files changed, 26 insertions(+), 21 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json index 36e28440439f..31968fd9fbde 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json @@ -20,7 +20,7 @@ "breakingChangesCount":0, "isReadyForMigration":true, "assessmentTargetType":"SQL", - "lastAssessedTime":"0001-01-01T00:00:00", + "lastAssessedTime":"2019-05-04T06:46:40.4340421Z", "compatibilityLevel":null, "databaseSizeInMB":null, "lastUpdatedTime":null, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json index 33cb52062783..25359b15cc13 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json @@ -21,7 +21,7 @@ "breakingChangesCount":0, "isReadyForMigration":true, "assessmentTargetType":"SQL", - "lastAssessedTime":"0001-01-01T00:00:00", + "lastAssessedTime":"2019-05-04T06:46:40.4340421Z", "compatibilityLevel":null, "databaseSizeInMB":null, "lastUpdatedTime":null, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json index d8d62673ff28..f8aecd4e54e3 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json @@ -12,7 +12,6 @@ "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/machines/vm1", "name":"vm1", "type":"Microsoft.Migrate/MigrateProjects/machines", - "eTag":"\"a701c63a-0000-0000-0000-59c12fe60000\"", "properties":{ "discoveryData":[ { diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json index 88d7ddcdff6a..3e024439432c 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json @@ -13,7 +13,6 @@ "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/machines/vm1", "name":"vm1", "type":"Microsoft.Migrate/MigrateProjects/machines", - "eTag":"\"b701c63a-0000-0000-0000-59c12fe60000\"", "properties":{ "discoveryData":[ { @@ -82,7 +81,6 @@ "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/machines/vm2", "name":"vm2", "type":"Microsoft.Migrate/MigrateProjects/machines", - "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", "properties":{ "discoveryData":[ { diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Delete.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Delete.json index 4cbc90dc3274..f2052247bac8 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Delete.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Delete.json @@ -4,7 +4,7 @@ "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", "migrateProjectName": "project01", - "migrateEventName":"MigrateEvent01" + "eventName":"MigrateEvent01" }, "responses":{ "200":{ diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json index 97d272fa715b..2a92d4040414 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json @@ -4,7 +4,7 @@ "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", "migrateProjectName":"project01", - "migrateEventName":"MigrateEvent01" + "eventName":"MigrateEvent01" }, "responses":{ "200":{ diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json index edb2eb73ca04..140a7531535a 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json @@ -4,15 +4,11 @@ "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", "migrateProjectName":"project01", - "project":{ + "body":{ "properties":{ "registeredTools":[ "ServerMigration" - ], - "summary":{ - - }, - "lastSummaryRefreshedTime":"2018-11-12T13:11:10.8808917Z" + ] }, "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", "name":"project01", diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json index 6fa31e35aa0f..198e41efdf6a 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json @@ -4,9 +4,8 @@ "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", "migrateProjectName":"project01", - "project":{ + "body":{ "properties":{ - }, "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", "name":"project01", diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json index 8c2f70e4f05d..2095ec284dd9 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json @@ -3,7 +3,10 @@ "resourceGroupName":"myResourceGroup", "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", - "migrateProjectName":"project01" + "migrateProjectName":"project01", + "input":{ + "goal":"Servers" + } }, "responses":{ "200":{ diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json index 8691f5998a84..c932fdb43d94 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json @@ -3,7 +3,10 @@ "resourceGroupName":"myResourceGroup", "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", - "migrateProjectName":"project01" + "migrateProjectName":"project01", + "input":{ + "tool":"ServerMigration" + } }, "responses":{ "200":{ diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json index 5f57a5000469..4b62751e6805 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json @@ -15,7 +15,7 @@ "type":"Microsoft.Migrate/MigrateProjects/Solutions", "etag":"\"1c0018c7-0000-0000-0000-5c936e530000\"", "properties":{ - "tool":"ServerDiscovery", + "tool":"DataMigrationAssistant", "purpose":"Assessment", "goal":"Databases", "status":"Inactive", diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json index 61586af13b03..61906502aa43 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json @@ -7,7 +7,7 @@ "solutionName":"dbsolution", "solutionInput":{ "properties":{ - "tool":"DatabaseMigrationAssistant", + "tool":"DataMigrationAssistant", "purpose":"Assessment", "goal":"Databases" } @@ -21,7 +21,7 @@ "type":"Microsoft.Migrate/MigrateProjects/Solutions", "etag":"\"1c0018c7-0000-0000-0000-5c936e530000\"", "properties":{ - "tool":"ServerDiscovery", + "tool":"DataMigrationAssistant", "purpose":"Assessment", "goal":"Databases", "status":"Active", @@ -49,7 +49,7 @@ "type":"Microsoft.Migrate/MigrateProjects/Solutions", "etag":"\"1c0018c7-0000-0000-0000-5c936e530000\"", "properties":{ - "tool":"ServerDiscovery", + "tool":"DataMigrationAssistant", "purpose":"Assessment", "goal":"Databases", "status":"Active", diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 968e94f4d42d..ff52c27362d3 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -2900,6 +2900,13 @@ "description":"Handled by resource provider. Type = Microsoft.Migrate/MigrateProject.", "type":"string", "readOnly":true + }, + "tags":{ + "description":"Gets or sets the tags.", + "type":"object", + "properties":{ + + } } } }, From 8f13421a391b959b60ab31f5f4d793c47bf218cf Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 28 May 2019 16:17:41 +0530 Subject: [PATCH 25/35] Fixing semantic errors --- .../2018-09-01-preview/examples/MigrateEvents_Get.json | 4 ++-- .../2018-09-01-preview/examples/MigrateEvents_List.json | 6 +++--- .../2018-09-01-preview/examples/MigrateProjects_Get.json | 6 +++--- .../preview/2018-09-01-preview/examples/Solutions_Get.json | 4 ++-- .../preview/2018-09-01-preview/examples/Solutions_List.json | 4 ++-- .../2018-09-01-preview/examples/Solutions_Patch.json | 2 +- .../preview/2018-09-01-preview/examples/Solutions_Put.json | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json index 2a92d4040414..34810afe176f 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json @@ -14,13 +14,13 @@ "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents", "properties":{ "instanceType":"Servers", - "machine":null, + "machine":"myvm", "errorCode":"600", "errorMessage":"The message does not contain the required parameters to identify the machine.", "recommendation":"Resolve the error and try again.", "possibleCauses":"The mandatory fields are not provided.", "solution":"serversolution", - "clientRequestId":null + "clientRequestId":"a5dd7e42-4fd1-4512-af04-83ad9864335c" } } } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json index 9e2a93d8df5b..67421f75a7ea 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json @@ -15,13 +15,13 @@ "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents", "properties":{ "instanceType":"Servers", - "machine":null, + "machine":"server1", "errorCode":"600", "errorMessage":"The message does not contain the required parameters to identify the machine.", "recommendation":"Resolve the error and try again.", "possibleCauses":"The mandatory fields are not provided.", "solution":"serversolution", - "clientRequestId":null + "clientRequestId":"a5dd7e42-4fd1-4512-af04-83ad9864335c" } }, { @@ -30,7 +30,7 @@ "type":"Microsoft.Migrate/MigrateProjects/MigrateEvents", "properties":{ "instanceType":"Databases", - "database":null, + "database":"db1", "databaseInstanceId":"cD", "errorCode":"608", "errorMessage":"The message does not contain the required parameters to identify the database.", diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json index cc03d78449c4..6b321cab396f 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json @@ -8,11 +8,11 @@ "responses":{ "200":{ "body":{ - "eTag":null, + "eTag":"\"1c0018c7-0000-0000-0000-5c936e530000\"", "location":"", "properties":{ "registeredTools":[ - + "ServerMigration" ], "summary":{ "servers":{ @@ -33,7 +33,7 @@ "refreshSummaryState":"Completed", "lastSummaryRefreshedTime":"2019-05-27T12:01:18.6070869Z", "extendedSummary":{ - + "mykey":"myvalue" } } }, diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json index d5630939f4a6..33e5e9aa03c5 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json @@ -14,7 +14,7 @@ "type":"Microsoft.Migrate/MigrateProjects/Solutions", "etag":"\"1c0018c7-0000-0000-0000-5c936e530000\"", "properties":{ - "tool":"DatabaseMigrationAssistant", + "tool":"DataMigrationAssistant", "purpose":"Assessment", "goal":"Databases", "status":"Active", @@ -29,7 +29,7 @@ "groupCount":0, "assessmentCount":0, "extendedDetails":{ - + "mykey":"myvalue" } } } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json index 4b62751e6805..97ee51a1271f 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json @@ -30,7 +30,7 @@ "groupCount":0, "assessmentCount":0, "extendedDetails":{ - + "mykey":"myvalue" } } } @@ -58,7 +58,7 @@ "groupCount":0, "assessmentCount":0, "extendedDetails":{ - + "mykey":"myvalue" } } } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json index 23a70b40cda4..4072b2df4f5a 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json @@ -32,7 +32,7 @@ "groupCount":0, "assessmentCount":0, "extendedDetails":{ - + "mykey":"myvalue" } } } diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json index 61906502aa43..1a6f743f0e53 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json @@ -36,7 +36,7 @@ "groupCount":0, "assessmentCount":0, "extendedDetails":{ - + "mykey":"myvalue" } } } @@ -64,7 +64,7 @@ "groupCount":0, "assessmentCount":0, "extendedDetails":{ - + "mykey":"myvalue" } } } From b35b7c68787035b9c996dc8c27d4c99c0f35b69e Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 28 May 2019 17:45:17 +0530 Subject: [PATCH 26/35] Fixing semantic errors --- .../preview/2018-09-01-preview/migrate.json | 297 +----------------- 1 file changed, 3 insertions(+), 294 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index ff52c27362d3..0e7e1a2319de 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -1450,61 +1450,14 @@ "type":"string" } }, - "discriminator":"InstanceType" + "discriminator":"instanceType" }, "ODataQueryOptions`1":{ "type":"object", "properties":{ - "ifMatch":{ - "$ref":"#/definitions/Object", - "readOnly":true - }, - "ifNoneMatch":{ - "$ref":"#/definitions/Object", - "readOnly":true - }, - "request":{ - "$ref":"#/definitions/Object", - "readOnly":true - }, - "context":{ - "$ref":"#/definitions/ODataQueryContext", - "readOnly":true - }, - "rawValues":{ - "$ref":"#/definitions/ODataRawQueryOptions", - "readOnly":true - }, - "selectExpand":{ - "$ref":"#/definitions/SelectExpandQueryOption", - "readOnly":true - }, - "apply":{ - "$ref":"#/definitions/ApplyQueryOption", - "readOnly":true - }, "filter":{ "$ref":"#/definitions/FilterQueryOption", "readOnly":true - }, - "orderBy":{ - "$ref":"#/definitions/OrderByQueryOption", - "readOnly":true - }, - "skip":{ - "$ref":"#/definitions/SkipQueryOption", - "readOnly":true - }, - "top":{ - "$ref":"#/definitions/TopQueryOption", - "readOnly":true - }, - "count":{ - "$ref":"#/definitions/CountQueryOption", - "readOnly":true - }, - "validator":{ - "$ref":"#/definitions/ODataQueryValidator" } } }, @@ -1547,95 +1500,6 @@ "filter":{ "type":"string", "readOnly":true - }, - "apply":{ - "type":"string", - "readOnly":true - }, - "orderBy":{ - "type":"string", - "readOnly":true - }, - "top":{ - "type":"string", - "readOnly":true - }, - "skip":{ - "type":"string", - "readOnly":true - }, - "select":{ - "type":"string", - "readOnly":true - }, - "expand":{ - "type":"string", - "readOnly":true - }, - "count":{ - "type":"string", - "readOnly":true - }, - "format":{ - "type":"string", - "readOnly":true - }, - "skipToken":{ - "type":"string", - "readOnly":true - }, - "deltaToken":{ - "type":"string", - "readOnly":true - } - } - }, - "SelectExpandQueryOption":{ - "type":"object", - "properties":{ - "context":{ - "$ref":"#/definitions/ODataQueryContext", - "readOnly":true - }, - "rawSelect":{ - "type":"string", - "readOnly":true - }, - "rawExpand":{ - "type":"string", - "readOnly":true - }, - "validator":{ - "$ref":"#/definitions/SelectExpandQueryValidator" - }, - "selectExpandClause":{ - "$ref":"#/definitions/SelectExpandClause", - "readOnly":true - }, - "levelsMaxLiteralExpansionDepth":{ - "format":"int32", - "type":"integer" - } - } - }, - "ApplyQueryOption":{ - "type":"object", - "properties":{ - "context":{ - "$ref":"#/definitions/ODataQueryContext", - "readOnly":true - }, - "resultClrType":{ - "type":"string", - "readOnly":true - }, - "applyClause":{ - "$ref":"#/definitions/ApplyClause", - "readOnly":true - }, - "rawValue":{ - "type":"string", - "readOnly":true } } }, @@ -1659,95 +1523,6 @@ } } }, - "OrderByQueryOption":{ - "type":"object", - "properties":{ - "context":{ - "$ref":"#/definitions/ODataQueryContext", - "readOnly":true - }, - "orderByNodes":{ - "type":"array", - "items":{ - "$ref":"#/definitions/OrderByNode" - }, - "readOnly":true - }, - "rawValue":{ - "type":"string", - "readOnly":true - }, - "validator":{ - "$ref":"#/definitions/OrderByQueryValidator" - }, - "orderByClause":{ - "$ref":"#/definitions/OrderByClause", - "readOnly":true - } - } - }, - "SkipQueryOption":{ - "type":"object", - "properties":{ - "context":{ - "$ref":"#/definitions/ODataQueryContext", - "readOnly":true - }, - "rawValue":{ - "type":"string", - "readOnly":true - }, - "value":{ - "format":"int32", - "type":"integer", - "readOnly":true - }, - "validator":{ - "$ref":"#/definitions/SkipQueryValidator" - } - } - }, - "TopQueryOption":{ - "type":"object", - "properties":{ - "context":{ - "$ref":"#/definitions/ODataQueryContext", - "readOnly":true - }, - "rawValue":{ - "type":"string", - "readOnly":true - }, - "value":{ - "format":"int32", - "type":"integer", - "readOnly":true - }, - "validator":{ - "$ref":"#/definitions/TopQueryValidator" - } - } - }, - "CountQueryOption":{ - "type":"object", - "properties":{ - "context":{ - "$ref":"#/definitions/ODataQueryContext", - "readOnly":true - }, - "rawValue":{ - "type":"string", - "readOnly":true - }, - "value":{ - "type":"boolean", - "readOnly":true - }, - "validator":{ - "$ref":"#/definitions/CountQueryValidator" - } - } - }, "ODataQueryValidator":{ "type":"object", "properties":{ @@ -1958,72 +1733,6 @@ } } }, - "OrderByNode":{ - "type":"object", - "properties":{ - "direction":{ - "enum":[ - "Ascending", - "Descending" - ], - "type":"string", - "readOnly":true - } - } - }, - "OrderByQueryValidator":{ - "type":"object", - "properties":{ - - } - }, - "OrderByClause":{ - "type":"object", - "properties":{ - "thenBy":{ - "$ref":"#/definitions/OrderByClause", - "readOnly":true - }, - "expression":{ - "$ref":"#/definitions/SingleValueNode", - "readOnly":true - }, - "direction":{ - "enum":[ - "Ascending", - "Descending" - ], - "type":"string", - "readOnly":true - }, - "rangeVariable":{ - "$ref":"#/definitions/RangeVariable", - "readOnly":true - }, - "itemType":{ - "$ref":"#/definitions/IEdmTypeReference", - "readOnly":true - } - } - }, - "SkipQueryValidator":{ - "type":"object", - "properties":{ - - } - }, - "TopQueryValidator":{ - "type":"object", - "properties":{ - - } - }, - "CountQueryValidator":{ - "type":"object", - "properties":{ - - } - }, "IEdmSchemaElement":{ "type":"object", "properties":{ @@ -3010,7 +2719,7 @@ } } }, - "discriminator":"InstanceType" + "discriminator":"instanceType" }, "RegisterToolInput":{ "description":"Class representing the register tool input.", @@ -3177,7 +2886,7 @@ "readOnly":true } }, - "discriminator":"InstanceType" + "discriminator":"instanceType" }, "SolutionDetails":{ "description":"Class representing the details of the solution.", From 7fe6cb06d3ec27ddfccd2a84ee51fbce206f5761 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 28 May 2019 17:52:28 +0530 Subject: [PATCH 27/35] Fixing semantic errors --- .../examples/Solutions_Patch.json | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json index 4072b2df4f5a..4f8045f6e57d 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json @@ -4,7 +4,7 @@ "api-version":"2018-09-01-preview", "subscriptionId":"75dd7e42-4fd1-4512-af04-83ad9864335b", "migrateProjectName":"project01", - "solutionName":"smssolution", + "solutionName":"dbsolution", "solutionInput":{ "properties":{ "status":"Active" @@ -14,19 +14,21 @@ "responses":{ "200":{ "body":{ - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/smssolution", - "name":"smssolution", + "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/dbsolution", + "name":"dbsolution", "type":"Microsoft.Migrate/MigrateProjects/Solutions", + "etag":"\"1c0018c7-0000-0000-0000-5c936e530000\"", "properties":{ - "tool":"ServerMigration", - "purpose":"Migration", - "goal":"Servers", + "tool":"DataMigrationAssistant", + "purpose":"Assessment", + "goal":"Databases", "status":"Active", + "cleanupState":"None", "summary":{ - "discoveredCount":0, - "assessedCount":0, - "replicatingCount":0, - "migratedCount":0 + "instanceType":"Databases", + "databasesAssessedCount":0, + "databaseInstancesAssessedCount":0, + "migrationReadyCount":0 }, "details":{ "groupCount":0, From f6827f5d46b72bd72c6ef77f4112ba6f7f35647b Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 28 May 2019 17:59:39 +0530 Subject: [PATCH 28/35] Fixing semantic errors --- .../Microsoft.Migrate/preview/2018-09-01-preview/migrate.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 0e7e1a2319de..0634812e5437 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -2781,6 +2781,7 @@ }, "Solution":{ "description":"Solution REST Resource.", + "x-ms-azure-resource":true, "type":"object", "properties":{ "id":{ From 05dc112ccd531300eb5edb896a665e1fdcce4301 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Wed, 29 May 2019 15:21:04 +0530 Subject: [PATCH 29/35] Fixing SDK errors --- .../preview/2018-09-01-preview/migrate.json | 133 +----------------- 1 file changed, 7 insertions(+), 126 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 0634812e5437..09c2c5e022d7 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -1165,7 +1165,7 @@ } }, "summary":{ - "description":"Gets or sets the database instances summary per solution. The key of\r\n dictionary is the solution name and value is the corresponding database instance summary object.", + "description":"Gets or sets the database instances summary per solution. The key of dictionary is the solution name and value is the corresponding database instance summary object.", "type":"object", "additionalProperties":{ "$ref":"#/definitions/DatabaseInstanceSummary" @@ -1184,7 +1184,7 @@ "properties":{ "lastUpdatedTime":{ "format":"date-time", - "description":"Gets or sets the time of the last modification of\r\n the database instance details.", + "description":"Gets or sets the time of the last modification of the database instance details.", "type":"string" }, "instanceId":{ @@ -1216,7 +1216,7 @@ "type":"string" }, "ipAddress":{ - "description":"Gets or sets the IP addresses of the database server.\r\n IP addresses could be IP V4 or IP V6.", + "description":"Gets or sets the IP addresses of the database server. IP addresses could be IP V4 or IP V6.", "type":"string" }, "portNumber":{ @@ -2614,7 +2614,9 @@ "description":"Gets or sets the tags.", "type":"object", "properties":{ - + "additionalProperties":{ + "type":"string" + } } } } @@ -2948,11 +2950,6 @@ } ], "properties":{ - "instanceType":{ - "description":"Gets the Instance type.", - "type":"string", - "readOnly":true - }, "discoveredCount":{ "format":"int32", "description":"Gets or sets the count of entities discovered.", @@ -2977,28 +2974,6 @@ "format":"int32", "description":"Gets or sets the count of entities migrated.", "type":"integer" - }, - "refreshSummaryState":{ - "description":"Gets or sets the state of refresh summary.", - "enum":[ - "Started", - "InProgress", - "Completed", - "Failed" - ], - "type":"string" - }, - "lastSummaryRefreshedTime":{ - "format":"date-time", - "description":"Gets or sets the time when summary was last refreshed.", - "type":"string" - }, - "extendedSummary":{ - "description":"Gets or sets the extended summary.", - "type":"object", - "additionalProperties":{ - "type":"string" - } } }, "x-ms-discriminator-value":"Servers" @@ -3012,33 +2987,7 @@ } ], "properties":{ - "instanceType":{ - "description":"Gets the Instance type.", - "type":"string", - "readOnly":true - }, - "refreshSummaryState":{ - "description":"Gets or sets the state of refresh summary.", - "enum":[ - "Started", - "InProgress", - "Completed", - "Failed" - ], - "type":"string" - }, - "lastSummaryRefreshedTime":{ - "format":"date-time", - "description":"Gets or sets the time when summary was last refreshed.", - "type":"string" - }, - "extendedSummary":{ - "description":"Gets or sets the extended summary.", - "type":"object", - "additionalProperties":{ - "type":"string" - } - } + }, "x-ms-discriminator-value":"Databases" }, @@ -3051,11 +3000,6 @@ } ], "properties":{ - "instanceType":{ - "description":"Gets the Instance type.", - "type":"string", - "readOnly":true - }, "discoveredCount":{ "format":"int32", "description":"Gets or sets the count of servers discovered.", @@ -3093,11 +3037,6 @@ } ], "properties":{ - "instanceType":{ - "description":"Gets the Instance type.", - "type":"string", - "readOnly":true - }, "databasesAssessedCount":{ "format":"int32", "description":"Gets or sets the count of databases assessed.", @@ -3125,38 +3064,9 @@ } ], "properties":{ - "instanceType":{ - "description":"Gets the Instance type.", - "type":"string", - "readOnly":true - }, "machine":{ "description":"Gets or sets the machine for which the error is being reported.", "type":"string" - }, - "errorCode":{ - "description":"Gets or sets the error code.", - "type":"string" - }, - "errorMessage":{ - "description":"Gets or sets the error message.", - "type":"string" - }, - "recommendation":{ - "description":"Gets or sets the recommendation for the error.", - "type":"string" - }, - "possibleCauses":{ - "description":"Gets or sets the possible causes for the error.", - "type":"string" - }, - "solution":{ - "description":"Gets or sets the solution for which the error is being reported.", - "type":"string" - }, - "clientRequestId":{ - "description":"Gets or sets the client request Id of the payload for which the event is being reported.", - "type":"string" } }, "x-ms-discriminator-value":"Servers" @@ -3170,11 +3080,6 @@ } ], "properties":{ - "instanceType":{ - "description":"Gets the Instance type.", - "type":"string", - "readOnly":true - }, "database":{ "description":"Gets or sets the database for which the error is being reported.", "type":"string" @@ -3182,30 +3087,6 @@ "databaseInstanceId":{ "description":"Gets or sets the database instance for which the error is being reported.", "type":"string" - }, - "errorCode":{ - "description":"Gets or sets the error code.", - "type":"string" - }, - "errorMessage":{ - "description":"Gets or sets the error message.", - "type":"string" - }, - "recommendation":{ - "description":"Gets or sets the recommendation for the error.", - "type":"string" - }, - "possibleCauses":{ - "description":"Gets or sets the possible causes for the error.", - "type":"string" - }, - "solution":{ - "description":"Gets or sets the solution for which the error is being reported.", - "type":"string" - }, - "clientRequestId":{ - "description":"Gets or sets the client request Id of the payload for which the event is being reported.", - "type":"string" } }, "x-ms-discriminator-value":"Databases" From a43ead519af3db80da7e7705153ce3deb58a47c9 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Wed, 29 May 2019 15:22:08 +0530 Subject: [PATCH 30/35] Fixing SDK errors --- .../2018-09-01-preview/examples/MigrateProjects_Get.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json index 6b321cab396f..b1de5266da24 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json @@ -32,8 +32,7 @@ "instanceType":"Databases", "refreshSummaryState":"Completed", "lastSummaryRefreshedTime":"2019-05-27T12:01:18.6070869Z", - "extendedSummary":{ - "mykey":"myvalue" + "extendedSummary":{ } } }, From df0abb0197d3de8d038bcd96f9de9babc4c1d3b3 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 18 Jun 2019 13:45:25 +0530 Subject: [PATCH 31/35] Changing the resource names to camel case as per ARM review --- .../preview/2018-09-01-preview/migrate.json | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 09c2c5e022d7..e5eca4e82bf1 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -136,7 +136,7 @@ } ], "paths":{ - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/DatabaseInstances":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/databaseInstances":{ "get":{ "tags":[ "DatabaseInstances" @@ -182,7 +182,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/DatabaseInstances/{databaseInstanceName}":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/databaseInstances/{databaseInstanceName}":{ "get":{ "tags":[ "DatabaseInstances" @@ -225,7 +225,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Databases":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/databases":{ "get":{ "tags":[ "Databases" @@ -271,7 +271,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Databases/{databaseName}":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/databases/{databaseName}":{ "get":{ "tags":[ "Databases" @@ -314,7 +314,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateEvents":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/migrateEvents":{ "get":{ "tags":[ "Events" @@ -355,12 +355,12 @@ "deprecated":false, "x-ms-examples":{ "MigrateEvents_List":{ - "$ref":"./examples/MigrateEvents_List.json" + "$ref":"./examples/migrateEvents_List.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/MigrateEvents/{eventName}":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/migrateEvents/{eventName}":{ "get":{ "tags":[ "Events" @@ -395,7 +395,7 @@ "deprecated":false, "x-ms-examples":{ "MigrateEvents_Get":{ - "$ref":"./examples/MigrateEvents_Get.json" + "$ref":"./examples/migrateEvents_Get.json" } } }, @@ -431,12 +431,12 @@ "deprecated":false, "x-ms-examples":{ "MigrateEvents_Delete":{ - "$ref":"./examples/MigrateEvents_Delete.json" + "$ref":"./examples/migrateEvents_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/machines":{ "get":{ "tags":[ "Machines" @@ -474,12 +474,12 @@ "deprecated":false, "x-ms-examples":{ "Machines_List":{ - "$ref":"./examples/Machines_List.json" + "$ref":"./examples/machines_List.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Machines/{machineName}":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/machines/{machineName}":{ "get":{ "tags":[ "Machines" @@ -514,12 +514,12 @@ "deprecated":false, "x-ms-examples":{ "Machines_Get":{ - "$ref":"./examples/Machines_Get.json" + "$ref":"./examples/machines_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}":{ "get":{ "tags":[ "MigrateProjects" @@ -693,7 +693,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/registerTool":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/registerTool":{ "post":{ "tags":[ "MigrateProjects" @@ -742,7 +742,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/refreshSummary":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/refreshSummary":{ "post":{ "tags":[ "MigrateProjects" @@ -788,7 +788,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/solutions/{solutionName}":{ "get":{ "tags":[ "Solutions" @@ -823,7 +823,7 @@ "deprecated":false, "x-ms-examples":{ "Solutions_Get":{ - "$ref":"./examples/Solutions_Get.json" + "$ref":"./examples/solutions_Get.json" } } }, @@ -876,7 +876,7 @@ "deprecated":false, "x-ms-examples":{ "Solutions_Put":{ - "$ref":"./examples/Solutions_Put.json" + "$ref":"./examples/solutions_Put.json" } } }, @@ -924,7 +924,7 @@ "deprecated":false, "x-ms-examples":{ "Solutions_Patch":{ - "$ref":"./examples/Solutions_Patch.json" + "$ref":"./examples/solutions_Patch.json" } } }, @@ -963,12 +963,12 @@ "deprecated":false, "x-ms-examples":{ "Solutions_Delete":{ - "$ref":"./examples/Solutions_Delete.json" + "$ref":"./examples/solutions_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/solutions":{ "get":{ "tags":[ "Solutions" @@ -993,19 +993,19 @@ "200":{ "description":"OK", "schema":{ - "$ref":"#/definitions/SolutionsCollection" + "$ref":"#/definitions/solutionsCollection" } } }, "deprecated":false, "x-ms-examples":{ "Solutions_List":{ - "$ref":"./examples/Solutions_List.json" + "$ref":"./examples/solutions_List.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}/getConfig":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/solutions/{solutionName}/getConfig":{ "post":{ "tags":[ "Solutions" @@ -1040,12 +1040,12 @@ "deprecated":false, "x-ms-examples":{ "Solutions_GetConfig":{ - "$ref":"./examples/Solutions_GetConfig.json" + "$ref":"./examples/solutions_GetConfig.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MigrateProjects/{migrateProjectName}/Solutions/{solutionName}/cleanupData":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/solutions/{solutionName}/cleanupData":{ "post":{ "tags":[ "Solutions" @@ -1077,7 +1077,7 @@ "deprecated":false, "x-ms-examples":{ "Solutions_CleanupData":{ - "$ref":"./examples/Solutions_CleanupData.json" + "$ref":"./examples/solutions_CleanupData.json" } } } @@ -2870,7 +2870,7 @@ "type":"string" }, "summary":{ - "$ref":"#/definitions/SolutionSummary", + "$ref":"#/definitions/solutionsummary", "description":"Gets or sets the summary of the solution." }, "details":{ @@ -2996,7 +2996,7 @@ "type":"object", "allOf":[ { - "$ref":"#/definitions/SolutionSummary" + "$ref":"#/definitions/solutionsummary" } ], "properties":{ @@ -3033,7 +3033,7 @@ "type":"object", "allOf":[ { - "$ref":"#/definitions/SolutionSummary" + "$ref":"#/definitions/solutionsummary" } ], "properties":{ From 92d148d78b89cf49e676c87619e0f80aae774c69 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 18 Jun 2019 13:59:32 +0530 Subject: [PATCH 32/35] Changing the resource names to camel case as per ARM review --- .../preview/2018-09-01-preview/migrate.json | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index e5eca4e82bf1..b163d0101b55 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -395,7 +395,7 @@ "deprecated":false, "x-ms-examples":{ "MigrateEvents_Get":{ - "$ref":"./examples/migrateEvents_Get.json" + "$ref":"./examples/MigrateEvents_Get.json" } } }, @@ -431,7 +431,7 @@ "deprecated":false, "x-ms-examples":{ "MigrateEvents_Delete":{ - "$ref":"./examples/migrateEvents_Delete.json" + "$ref":"./examples/MigrateEvents_Delete.json" } } } @@ -474,7 +474,7 @@ "deprecated":false, "x-ms-examples":{ "Machines_List":{ - "$ref":"./examples/machines_List.json" + "$ref":"./examples/Machines_List.json" } } } @@ -514,7 +514,7 @@ "deprecated":false, "x-ms-examples":{ "Machines_Get":{ - "$ref":"./examples/machines_Get.json" + "$ref":"./examples/Machines_Get.json" } } } @@ -823,7 +823,7 @@ "deprecated":false, "x-ms-examples":{ "Solutions_Get":{ - "$ref":"./examples/solutions_Get.json" + "$ref":"./examples/Solutions_Get.json" } } }, @@ -876,7 +876,7 @@ "deprecated":false, "x-ms-examples":{ "Solutions_Put":{ - "$ref":"./examples/solutions_Put.json" + "$ref":"./examples/Solutions_Put.json" } } }, @@ -924,7 +924,7 @@ "deprecated":false, "x-ms-examples":{ "Solutions_Patch":{ - "$ref":"./examples/solutions_Patch.json" + "$ref":"./examples/Solutions_Patch.json" } } }, @@ -963,7 +963,7 @@ "deprecated":false, "x-ms-examples":{ "Solutions_Delete":{ - "$ref":"./examples/solutions_Delete.json" + "$ref":"./examples/Solutions_Delete.json" } } } @@ -993,14 +993,14 @@ "200":{ "description":"OK", "schema":{ - "$ref":"#/definitions/solutionsCollection" + "$ref":"#/definitions/SolutionsCollection" } } }, "deprecated":false, "x-ms-examples":{ "Solutions_List":{ - "$ref":"./examples/solutions_List.json" + "$ref":"./examples/Solutions_List.json" } } } @@ -1040,7 +1040,7 @@ "deprecated":false, "x-ms-examples":{ "Solutions_GetConfig":{ - "$ref":"./examples/solutions_GetConfig.json" + "$ref":"./examples/Solutions_GetConfig.json" } } } @@ -1077,7 +1077,7 @@ "deprecated":false, "x-ms-examples":{ "Solutions_CleanupData":{ - "$ref":"./examples/solutions_CleanupData.json" + "$ref":"./examples/Solutions_CleanupData.json" } } } @@ -2870,7 +2870,7 @@ "type":"string" }, "summary":{ - "$ref":"#/definitions/solutionsummary", + "$ref":"#/definitions/SolutionSummary", "description":"Gets or sets the summary of the solution." }, "details":{ @@ -2996,7 +2996,7 @@ "type":"object", "allOf":[ { - "$ref":"#/definitions/solutionsummary" + "$ref":"#/definitions/SolutionSummary" } ], "properties":{ @@ -3033,7 +3033,7 @@ "type":"object", "allOf":[ { - "$ref":"#/definitions/solutionsummary" + "$ref":"#/definitions/SolutionSummary" } ], "properties":{ From a683481c06274ab035589605b5450232c2adc22f Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 18 Jun 2019 14:05:00 +0530 Subject: [PATCH 33/35] Changing the resource names to camel case as per ARM review --- .../Microsoft.Migrate/preview/2018-09-01-preview/migrate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index b163d0101b55..0a1f9e896a82 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -355,7 +355,7 @@ "deprecated":false, "x-ms-examples":{ "MigrateEvents_List":{ - "$ref":"./examples/migrateEvents_List.json" + "$ref":"./examples/MigrateEvents_List.json" } } } From c89e680c31d3f1e767b1bc689d180acb9fdbb219 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Tue, 18 Jun 2019 14:20:34 +0530 Subject: [PATCH 34/35] Fix model validation errors --- .../2018-09-01-preview/examples/MigrateProjects_Patch.json | 3 --- .../2018-09-01-preview/examples/MigrateProjects_Put.json | 3 --- 2 files changed, 6 deletions(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json index 140a7531535a..ff10d196f537 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json @@ -10,9 +10,6 @@ "ServerMigration" ] }, - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", - "name":"project01", - "type":"Microsoft.Migrate/MigrateProjects", "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", "location":"Southeast Asia", "tags":{ diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json index 198e41efdf6a..fff98d0fa6ac 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json @@ -7,9 +7,6 @@ "body":{ "properties":{ }, - "id":"/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", - "name":"project01", - "type":"Microsoft.Migrate/MigrateProjects", "eTag":"\"b701c73a-0000-0000-0000-59c12ff00000\"", "location":"Southeast Asia", "tags":{ From 194da23e7f648098d7c21ecdc6fac4b8ab0fae29 Mon Sep 17 00:00:00 2001 From: peetlotla Date: Fri, 21 Jun 2019 12:17:59 +0530 Subject: [PATCH 35/35] Modifying the team email address --- .../Microsoft.Migrate/preview/2018-09-01-preview/migrate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json index 0a1f9e896a82..5057d295f6ed 100644 --- a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -6,7 +6,7 @@ "description":"Migrate your workloads to Azure.", "contact":{ "name":"Microsoft", - "email":"azuremigrate@microsoft.com" + "email":"azuremigratehub@microsoft.com" } }, "host":"management.azure.com",