Skip to content

Commit

Permalink
CodeGen from PR 13555 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 7d9ead93cb45dfd9db19e40f23c955fdac9d7716 into a7292a40170e8ebb10ad12332022798c2fe72f8a
  • Loading branch information
SDKAuto committed May 5, 2021
1 parent de6d34d commit f18dfae
Show file tree
Hide file tree
Showing 3 changed files with 272 additions and 1 deletion.
2 changes: 1 addition & 1 deletion schemas/2019-08-01/tenantDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -716,4 +716,4 @@
"description": "Output copy"
}
}
}
}
268 changes: 268 additions & 0 deletions schemas/2020-11-05-preview/Microsoft.DBforPostgreSQL.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,128 @@
"type"
],
"description": "Microsoft.DBForPostgreSql/flexibleServers/databases"
},
"flexibleServers_migrations": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-11-05-preview"
]
},
"location": {
"type": "string",
"description": "The geo-location where the resource lives"
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The name of the migration."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/MigrationCreateRequest"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Migration create request."
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource tags."
},
"type": {
"type": "string",
"enum": [
"Microsoft.DBforPostgreSQL/flexibleServers/migrations"
]
}
},
"required": [
"apiVersion",
"location",
"name",
"properties",
"type"
],
"description": "Microsoft.DBforPostgreSQL/flexibleServers/migrations"
}
},
"definitions": {
"AADApp": {
"type": "object",
"properties": {
"aadSecret": {
"type": "string"
},
"clientId": {
"oneOf": [
{
"type": "string",
"pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"tenantId": {
"oneOf": [
{
"type": "string",
"pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"required": [
"aadSecret",
"clientId",
"tenantId"
],
"description": "Azure active directory application."
},
"AdminCredentials": {
"type": "object",
"properties": {
"sourceServerPassword": {
"type": "string"
},
"targetServerPassword": {
"type": "string"
}
},
"required": [
"sourceServerPassword",
"targetServerPassword"
],
"description": "Server admin credentials."
},
"DatabaseProperties": {
"type": "object",
"properties": {
Expand All @@ -58,6 +177,155 @@
}
},
"description": "The properties of a database."
},
"MigrationCreateRequest": {
"type": "object",
"properties": {
"cancel": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"dBsToMigrate": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"migrationResourceGroup": {
"oneOf": [
{
"$ref": "#/definitions/MigrationResourceGroup"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Migration resource group."
},
"migrationWindowStartTimeInUtc": {
"type": "string",
"format": "date-time"
},
"overwriteDBsInTarget": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"secretParameters": {
"oneOf": [
{
"$ref": "#/definitions/MigrationSecretParameters"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Migration secret parameters."
},
"setupLogicalReplicationOnSourceDBIfNeeded": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"sourceDBServerResourceId": {
"type": "string"
},
"startDataMigration": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"targetDBServerSubnetResourceId": {
"type": "string"
},
"triggerCutover": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"description": "Migration create request."
},
"MigrationResourceGroup": {
"type": "object",
"properties": {
"location": {
"type": "string",
"maxLength": 128
},
"resourceId": {
"type": "string"
}
},
"required": [
"resourceId"
],
"description": "Migration resource group."
},
"MigrationSecretParameters": {
"type": "object",
"properties": {
"aadApp": {
"oneOf": [
{
"$ref": "#/definitions/AADApp"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Azure active directory application."
},
"adminCredentials": {
"oneOf": [
{
"$ref": "#/definitions/AdminCredentials"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Server admin credentials."
}
},
"required": [
"aadApp",
"adminCredentials"
],
"description": "Migration secret parameters."
}
}
}
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -3367,6 +3367,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2020-11-05-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_databases"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-11-05-preview/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/flexibleServers_migrations"
},
{
"$ref": "https://schema.management.azure.com/schemas/2018-09-01-preview/Microsoft.DeploymentManager.json#/resourceDefinitions/artifactSources"
},
Expand Down

0 comments on commit f18dfae

Please sign in to comment.