Skip to content

Commit

Permalink
ManagedDatabase get schemas,tables,columns API (#5171)
Browse files Browse the repository at this point in the history
* DW deactivated error code

* managed database schema api

* resolve conflicts with prod

* adding schema API for databases. updates for MI schema API

* database schema examples

* added missing ServerNameParameter

* dummy commit

* remove empty properties

* remove empty properties

* remove empty properties

* remove empty properties

* remove empty properties

* remove empty properties

* remove empty properties

* remove empty properties

* remove empty properties
  • Loading branch information
igsiroti authored and praries880 committed Apr 15, 2019
1 parent 7a89fb6 commit dd797bb
Show file tree
Hide file tree
Showing 14 changed files with 1,548 additions and 0 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"serverName": "serverName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"tableName": "table1",
"columnName": "column1",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table1/columns/column1",
"name": "column1",
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns",
"properties": {
"columnType": "bit"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"serverName": "serverName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"tableName": "table1",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table1/columns/col1",
"name": "col1",
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns",
"properties": {
"columnType": "nvarchar"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table1/columns/col2",
"name": "col2",
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns",
"properties": {
"columnType": "bit"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"serverName": "serverName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo",
"name": "dbo",
"type": "Microsoft.Sql/servers/databases/schemas"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"serverName": "serverName",
"databaseName": "myDatabase",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo",
"name": "dbo",
"type": "Microsoft.Sql/servers/databases/schemas"
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/schema2",
"name": "schema2",
"type": "Microsoft.Sql/servers/databases/schemas"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"serverName": "serverName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"tableName": "table1",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table1",
"name": "table1",
"type": "Microsoft.Sql/servers/databases/schemas/tables"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"serverName": "serverName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table1",
"name": "table1",
"type": "Microsoft.Sql/servers/databases/schemas/tables"
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table2",
"name": "table2",
"type": "Microsoft.Sql/servers/databases/schemas/tables"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"managedInstanceName": "myManagedInstanceName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"tableName": "table1",
"columnName": "column1",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table1/columns/column1",
"name": "column1",
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables/columns",
"properties": {
"columnType": "bit"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"managedInstanceName": "myManagedInstanceName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"tableName": "table1",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table1/columns/col1",
"name": "col1",
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables/columns",
"properties": {
"columnType": "nvarchar"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table1/columns/col2",
"name": "col2",
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables/columns",
"properties": {
"columnType": "bit"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"managedInstanceName": "myManagedInstanceName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo",
"name": "dbo",
"type": "Microsoft.Sql/managedInstances/databases/schemas"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"managedInstanceName": "myManagedInstanceName",
"databaseName": "myDatabase",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo",
"name": "dbo",
"type": "Microsoft.Sql/managedInstances/databases/schemas"
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/schema2",
"name": "schema2",
"type": "Microsoft.Sql/managedInstances/databases/schemas"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"managedInstanceName": "myManagedInstanceName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"tableName": "table1",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table1",
"name": "table1",
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"managedInstanceName": "myManagedInstanceName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table1",
"name": "table1",
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables"
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table2",
"name": "table2",
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables"
}
]
}
}
}
}

0 comments on commit dd797bb

Please sign in to comment.