Skip to content

Commit

Permalink
Adding ReadOnlyDatabase object to Synapse model. (Azure#17213)
Browse files Browse the repository at this point in the history
* Adding ReadOnlyDatabase object to Synapse model.

* Adding type:object to ReadOnlyDatabase and to its properties.

* fix python pipeline failure

* fix python pipeline failure

Co-authored-by: Amir Dachabash <[email protected]>
Co-authored-by: Yuchao Yan <[email protected]>
Co-authored-by: msyyc <[email protected]>
  • Loading branch information
4 people authored and LeiWang3 committed Mar 31, 2022
1 parent a770d5a commit f5b8976
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2954,6 +2954,74 @@
},
"description": "Class representing the Kusto database properties."
},
"ReadOnlyFollowingDatabase": {
"type": "object",
"properties": {
"properties": {
"x-ms-client-flatten": true,
"description": "The database properties.",
"$ref": "#/definitions/ReadOnlyFollowingDatabaseProperties"
}
},
"allOf": [
{
"$ref": "#/definitions/Database"
}
],
"description": "Class representing a read only following database.",
"x-ms-discriminator-value": "ReadOnlyFollowing"
},
"ReadOnlyFollowingDatabaseProperties": {
"type": "object",
"properties": {
"provisioningState": {
"$ref": "#/definitions/ResourceProvisioningState",
"readOnly": true,
"description": "The provisioned state of the resource."
},
"softDeletePeriod": {
"type": "string",
"readOnly": true,
"format": "duration",
"description": "The time the data should be kept before it stops being accessible to queries in TimeSpan."
},
"hotCachePeriod": {
"type": "string",
"format": "duration",
"description": "The time the data should be kept in cache for fast queries in TimeSpan."
},
"statistics": {
"$ref": "#/definitions/DatabaseStatistics",
"readOnly": true,
"description": "The statistics of the database."
},
"leaderClusterResourceId": {
"type": "string",
"readOnly": true,
"description": "The name of the leader cluster"
},
"attachedDatabaseConfigurationName": {
"type": "string",
"readOnly": true,
"description": "The name of the attached database configuration cluster"
},
"principalsModificationKind": {
"type": "string",
"readOnly": true,
"enum": [
"Union",
"Replace",
"None"
],
"x-ms-enum": {
"name": "PrincipalsModificationKind",
"modelAsString": true
},
"description": "The principals modification kind of the database"
}
},
"description": "Class representing the Kusto database properties."
},
"DatabaseStatistics": {
"type": "object",
"readOnly": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6122,8 +6122,7 @@
"storageAccountSubscriptionId": {
"format": "uuid",
"description": "Specifies the blob storage subscription Id.",
"type": "string",
"default": ""
"type": "string"
},
"isStorageSecondaryKeyInUse": {
"description": "Specifies whether storageAccountAccessKey value is the storage's secondary key.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1237,8 +1237,7 @@
"storageAccountSubscriptionId": {
"format": "uuid",
"description": "Specifies the blob storage subscription Id.",
"type": "string",
"default": ""
"type": "string"
},
"isStorageSecondaryKeyInUse": {
"description": "Specifies whether storageAccountAccessKey value is the storage's secondary key.",
Expand Down

0 comments on commit f5b8976

Please sign in to comment.