Skip to content

Commit

Permalink
Merge pull request #2830 from Azure/autogenerate
Browse files Browse the repository at this point in the history
Autogenerate
  • Loading branch information
Xynoclafe authored Mar 10, 2023
2 parents f0c32b9 + 357e343 commit 3134761
Show file tree
Hide file tree
Showing 21 changed files with 29,038 additions and 173 deletions.
282 changes: 214 additions & 68 deletions generator/resources.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions schemas/2020-07-01-preview/Microsoft.Elastic.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@
"properties": {
"business": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Business of the company"
},
"country": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Country of the company location."
},
"domain": {
Expand All @@ -161,7 +161,7 @@
},
"state": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "State of the company location."
}
},
Expand Down Expand Up @@ -493,7 +493,7 @@
},
"companyName": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Company name of the user"
},
"emailAddress": {
Expand Down
8 changes: 4 additions & 4 deletions schemas/2020-07-01/Microsoft.Elastic.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@
"properties": {
"business": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Business of the company"
},
"country": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Country of the company location."
},
"domain": {
Expand All @@ -161,7 +161,7 @@
},
"state": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "State of the company location."
}
},
Expand Down Expand Up @@ -493,7 +493,7 @@
},
"companyName": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Company name of the user"
},
"emailAddress": {
Expand Down
8 changes: 4 additions & 4 deletions schemas/2021-09-01-preview/Microsoft.Elastic.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@
"properties": {
"business": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Business of the company"
},
"country": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Country of the company location."
},
"domain": {
Expand All @@ -161,7 +161,7 @@
},
"state": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "State of the company location."
}
},
Expand Down Expand Up @@ -493,7 +493,7 @@
},
"companyName": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Company name of the user"
},
"emailAddress": {
Expand Down
8 changes: 4 additions & 4 deletions schemas/2021-10-01-preview/Microsoft.Elastic.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@
"properties": {
"business": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Business of the company"
},
"country": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Country of the company location."
},
"domain": {
Expand All @@ -161,7 +161,7 @@
},
"state": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "State of the company location."
}
},
Expand Down Expand Up @@ -497,7 +497,7 @@
},
"companyName": {
"type": "string",
"maxLength": 50,
"maxLength": 64,
"description": "Company name of the user"
},
"emailAddress": {
Expand Down
251 changes: 251 additions & 0 deletions schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
{
"id": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.DBforPostgreSQL",
"description": "Microsoft DBforPostgreSQL Resource Types",
"resourceDefinitions": {
"flexibleServers_migrations": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2022-05-01-preview"
]
},
"location": {
"type": "string",
"description": "The geo-location where the resource lives"
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^[a-z][a-z0-9]*$"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The name of the migration."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/MigrationResourceProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Migration resource properties."
},
"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": {
"AdminCredentials": {
"type": "object",
"properties": {
"sourceServerPassword": {
"type": "string"
},
"targetServerPassword": {
"type": "string"
}
},
"required": [
"sourceServerPassword",
"targetServerPassword"
],
"description": "Server admin credentials."
},
"MigrationResourceProperties": {
"type": "object",
"properties": {
"cancel": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "To trigger cancel for entire migration we need to send this flag as true"
},
"dBsToCancelMigrationOn": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "When you want to trigger cancel for specific databases send triggerCutover flag as true and database names in this array"
},
"dBsToMigrate": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"dBsToTiggerCutoverOn": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "When you want to trigger cutover for specific databases send triggerCutover flag as true and database names in this array"
},
"migrationMode": {
"oneOf": [
{
"type": "string",
"enum": [
"Offline",
"Online"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "There are two types of migration modes Online and Offline."
},
"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"
}
]
},
"sourceDBServerFullyQualifiedDomainName": {
"type": "string"
},
"sourceDBServerResourceId": {
"type": "string"
},
"startDataMigration": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"targetDBServerFullyQualifiedDomainName": {
"type": "string"
},
"triggerCutover": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "To trigger cutover for entire migration we need to send this flag as true"
}
},
"description": "Migration resource properties."
},
"MigrationSecretParameters": {
"type": "object",
"properties": {
"adminCredentials": {
"oneOf": [
{
"$ref": "#/definitions/AdminCredentials"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Server admin credentials."
}
},
"required": [
"adminCredentials"
],
"description": "Migration secret parameters."
}
}
}
Loading

0 comments on commit 3134761

Please sign in to comment.