Skip to content

Commit

Permalink
CodeGen from PR 16199 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Sqlpoolcreatemodefix01 (#16199)

* Added correct description for sqlpool createMode description

* Added correct description for sqlpool createMode description

* Added correct description for sqlpool createMode description

* Modified  createMode as Enum and modelAsString

* prettier fix

Co-authored-by: Sravan Thupili <srthupil@microsoft.com>
  • Loading branch information
SDKAuto and Sravan Thupili committed Oct 9, 2021
1 parent 078253f commit d43a575
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 17 deletions.
17 changes: 15 additions & 2 deletions schemas/2019-06-01-preview/Microsoft.Synapse.json
Original file line number Diff line number Diff line change
Expand Up @@ -3839,8 +3839,21 @@
"description": "Collation mode"
},
"createMode": {
"type": "string",
"description": "What is this?"
"oneOf": [
{
"type": "string",
"enum": [
"Default",
"PointInTimeRestore",
"Recovery",
"Restore"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the mode of sql pool creation.\n\nDefault: regular sql pool creation.\n\nPointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.\n\nRecovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.\n\nRestore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified."
},
"creationDate": {
"type": "string",
Expand Down
17 changes: 15 additions & 2 deletions schemas/2020-12-01/Microsoft.Synapse.json
Original file line number Diff line number Diff line change
Expand Up @@ -3854,8 +3854,21 @@
"description": "Collation mode"
},
"createMode": {
"type": "string",
"description": "What is this?"
"oneOf": [
{
"type": "string",
"enum": [
"Default",
"PointInTimeRestore",
"Recovery",
"Restore"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the mode of sql pool creation.\n\nDefault: regular sql pool creation.\n\nPointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.\n\nRecovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.\n\nRestore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified."
},
"creationDate": {
"type": "string",
Expand Down
17 changes: 15 additions & 2 deletions schemas/2021-03-01/Microsoft.Synapse.json
Original file line number Diff line number Diff line change
Expand Up @@ -3854,8 +3854,21 @@
"description": "Collation mode"
},
"createMode": {
"type": "string",
"description": "What is this?"
"oneOf": [
{
"type": "string",
"enum": [
"Default",
"PointInTimeRestore",
"Recovery",
"Restore"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the mode of sql pool creation.\n\nDefault: regular sql pool creation.\n\nPointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.\n\nRecovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.\n\nRestore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified."
},
"creationDate": {
"type": "string",
Expand Down
17 changes: 15 additions & 2 deletions schemas/2021-04-01-preview/Microsoft.Synapse.json
Original file line number Diff line number Diff line change
Expand Up @@ -4841,8 +4841,21 @@
"description": "Collation mode"
},
"createMode": {
"type": "string",
"description": "What is this?"
"oneOf": [
{
"type": "string",
"enum": [
"Default",
"PointInTimeRestore",
"Recovery",
"Restore"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the mode of sql pool creation.\n\nDefault: regular sql pool creation.\n\nPointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.\n\nRecovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.\n\nRestore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified."
},
"creationDate": {
"type": "string",
Expand Down
17 changes: 15 additions & 2 deletions schemas/2021-05-01/Microsoft.Synapse.json
Original file line number Diff line number Diff line change
Expand Up @@ -3906,8 +3906,21 @@
"description": "Collation mode"
},
"createMode": {
"type": "string",
"description": "What is this?"
"oneOf": [
{
"type": "string",
"enum": [
"Default",
"PointInTimeRestore",
"Recovery",
"Restore"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the mode of sql pool creation.\n\nDefault: regular sql pool creation.\n\nPointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.\n\nRecovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.\n\nRestore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified."
},
"creationDate": {
"type": "string",
Expand Down
23 changes: 18 additions & 5 deletions schemas/2021-06-01-preview/Microsoft.Synapse.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@
{
"$ref": "#/definitions/workspaces_integrationRuntimes_childResource"
},
{
"$ref": "#/definitions/workspaces_kustoPools_childResource"
},
{
"$ref": "#/definitions/workspaces_firewallRules_childResource"
},
Expand Down Expand Up @@ -150,9 +153,6 @@
},
{
"$ref": "#/definitions/workspaces_azureADOnlyAuthentications_childResource"
},
{
"$ref": "#/definitions/workspaces_kustoPools_childResource"
}
]
}
Expand Down Expand Up @@ -5194,8 +5194,21 @@
"description": "Collation mode"
},
"createMode": {
"type": "string",
"description": "What is this?"
"oneOf": [
{
"type": "string",
"enum": [
"Default",
"PointInTimeRestore",
"Recovery",
"Restore"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the mode of sql pool creation.\n\nDefault: regular sql pool creation.\n\nPointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.\n\nRecovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.\n\nRestore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified."
},
"creationDate": {
"type": "string",
Expand Down
17 changes: 15 additions & 2 deletions schemas/2021-06-01/Microsoft.Synapse.json
Original file line number Diff line number Diff line change
Expand Up @@ -4012,8 +4012,21 @@
"description": "Collation mode"
},
"createMode": {
"type": "string",
"description": "What is this?"
"oneOf": [
{
"type": "string",
"enum": [
"Default",
"PointInTimeRestore",
"Recovery",
"Restore"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the mode of sql pool creation.\n\nDefault: regular sql pool creation.\n\nPointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.\n\nRecovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.\n\nRestore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified."
},
"creationDate": {
"type": "string",
Expand Down

0 comments on commit d43a575

Please sign in to comment.