Skip to content

Commit

Permalink
CodeGen from PR 11428 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
CosmosDB Restoreable APIs for SQL and MongoDB database account (#11428)

* adding new restorable apis

* fix some typos

* fix validations

* fix more validations

* prettier

* fix name and add apitype

* fix casing

* add custom word etcd

* add mongodb

* fix prameter name

* fix validations

* make read only

* remove the word snapshot and make properties readonly

* pretty

* improved some descriptions

* update description and removed mongodb content

* fix container property name

* fix documentcollection name

* make query parameter optional

* address Meha's comments

* move restorable apis to separate file

* move restorable database apis back to cosmos-db.json

* remove point read apis

* fix avocado
  • Loading branch information
SDKAuto committed Dec 11, 2020
1 parent 3b31cef commit 03c99b2
Show file tree
Hide file tree
Showing 51 changed files with 23,298 additions and 462 deletions.
9 changes: 9 additions & 0 deletions schemas/2014-04-01-preview/deploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@
{ "$ref": "https://schema.management.azure.com/schemas/2020-06-14/Microsoft.Kusto.json#/resourceDefinitions/clusters_dataconnections" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-06-14/Microsoft.Kusto.json#/resourceDefinitions/clusters_principalassignments" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-06-14/Microsoft.Kusto.json#/resourceDefinitions/clusters_databases_principalassignments" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_databases" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_databases_dataconnections" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_attacheddatabaseconfigurations" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_dataconnections" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_principalassignments" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_databases_principalassignments" },
{ "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/alertrules" },
{ "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/components" },
{ "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/autoscalesettings" },
Expand Down Expand Up @@ -1843,6 +1850,8 @@
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Migrate.json#/resourceDefinitions/assessmentProjects_groups_assessments" },
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Migrate.json#/resourceDefinitions/assessmentProjects_hypervcollectors" },
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Migrate.json#/resourceDefinitions/assessmentProjects_vmwarecollectors" },
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Migrate.json#/resourceDefinitions/moveCollections" },
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Migrate.json#/resourceDefinitions/moveCollections_moveResources" },
{ "$ref": "https://schema.management.azure.com/schemas/2019-03-01/Microsoft.Insights.json#/resourceDefinitions/actionGroups" },
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01-preview/Microsoft.ManagedServices.json#/resourceDefinitions/registrationAssignments" },
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01-preview/Microsoft.ManagedServices.json#/resourceDefinitions/registrationDefinitions" },
Expand Down
7 changes: 7 additions & 0 deletions schemas/2015-01-01/deploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@
{ "$ref": "https://schema.management.azure.com/schemas/2020-06-14/Microsoft.Kusto.json#/resourceDefinitions/clusters_dataconnections" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-06-14/Microsoft.Kusto.json#/resourceDefinitions/clusters_principalassignments" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-06-14/Microsoft.Kusto.json#/resourceDefinitions/clusters_databases_principalassignments" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_databases" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_databases_dataconnections" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_attacheddatabaseconfigurations" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_dataconnections" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_principalassignments" },
{ "$ref": "https://schema.management.azure.com/schemas/2020-09-18/Microsoft.Kusto.json#/resourceDefinitions/clusters_databases_principalassignments" },
{ "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/alertrules" },
{ "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/components" },
{ "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/autoscalesettings" },
Expand Down
2 changes: 1 addition & 1 deletion schemas/2015-04-01/Microsoft.DocumentDB.json
Original file line number Diff line number Diff line change
Expand Up @@ -2663,4 +2663,4 @@
"description": "Virtual Network ACL Rule object"
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2015-04-08/Microsoft.DocumentDB.json
Original file line number Diff line number Diff line change
Expand Up @@ -2663,4 +2663,4 @@
"description": "Virtual Network ACL Rule object"
}
}
}
}
4 changes: 3 additions & 1 deletion schemas/2015-05-01-preview/Microsoft.Sql.json
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,9 @@
{
"type": "string",
"enum": [
"SystemAssigned"
"None",
"SystemAssigned",
"UserAssigned"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion schemas/2015-11-06/Microsoft.DocumentDB.json
Original file line number Diff line number Diff line change
Expand Up @@ -2663,4 +2663,4 @@
"description": "Virtual Network ACL Rule object"
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2016-03-19/Microsoft.DocumentDB.json
Original file line number Diff line number Diff line change
Expand Up @@ -2663,4 +2663,4 @@
"description": "Virtual Network ACL Rule object"
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2016-03-31/Microsoft.DocumentDB.json
Original file line number Diff line number Diff line change
Expand Up @@ -2663,4 +2663,4 @@
"description": "Virtual Network ACL Rule object"
}
}
}
}
57 changes: 57 additions & 0 deletions schemas/2017-06-01/Microsoft.AAD.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,17 @@
],
"description": "Secure LDAP Settings"
},
"migrationProperties": {
"oneOf": [
{
"$ref": "#/definitions/MigrationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Migration Properties"
},
"notificationSettings": {
"oneOf": [
{
Expand Down Expand Up @@ -388,6 +399,52 @@
},
"description": "Secure LDAP Settings"
},
"MigrationProgress": {
"type": "object",
"properties": {
"completionPercentage": {
"oneOf": [
{
"type": "number"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Completion Percentage"
},
"progressMessage": {
"type": "string",
"description": "Progress Message"
}
},
"description": "Migration Progress"
},
"MigrationProperties": {
"type": "object",
"properties": {
"migrationProgress": {
"oneOf": [
{
"$ref": "#/definitions/MigrationProgress"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Migration Progress"
},
"oldSubnetId": {
"type": "string",
"description": "Old Subnet Id"
},
"oldVnetSiteId": {
"type": "string",
"description": "Old Vnet Site Id"
}
},
"description": "Migration Properties"
},
"NotificationSettings": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 03c99b2

Please sign in to comment.