Skip to content

Commit

Permalink
Adding instance pools swagger (#5225)
Browse files Browse the repository at this point in the history
* Initializing instance pools swagger and examples - no usages / managed instances get by instance pool

* updates to use common resource and sku definitions

* Update instance pool swagger with typo fixes

* Updates to instance pool swagger and reverting readme.md to exclude instance pools reference

* Fix whitespace diff

* Making a whitespace change to re-try linter validation

* Updates to add list instances pools by subscription and update license type param to use enum which is limited to LicenseIncluded and BasePrice
  • Loading branch information
johnpaulkee authored and kpajdzik committed Mar 5, 2019
1 parent 49b2070 commit f3e20aa
Show file tree
Hide file tree
Showing 8 changed files with 812 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "group1",
"instancePoolName": "testIP",
"api-version": "2018-06-01-preview",
"parameters": {
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"tags": {
"a": "b"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
}
}
},
"responses": {
"200": {
"body": {
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
},
"location": "onebox",
"tags": {
"a": "b"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP",
"name": "testIP",
"type": "Microsoft.Sql/instancePools"
}
},
"201": {
"body": {
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
},
"location": "onebox",
"tags": {
"a": "b"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP",
"name": "testIP",
"type": "Microsoft.Sql/instancePools"
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "group1",
"instancePoolName": "testIP",
"api-version": "2018-06-01-preview",
"parameters": {
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
}
}
},
"responses": {
"200": {
"body": {
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
},
"location": "onebox",
"tags": {},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP",
"name": "testIP",
"type": "Microsoft.Sql/instancePools"
}
},
"201": {
"body": {
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
},
"location": "onebox",
"tags": {},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP",
"name": "testIP",
"type": "Microsoft.Sql/instancePools"
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "group1",
"instancePoolName": "testIP",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "group1",
"instancePoolName": "testIP",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
},
"location": "onebox",
"tags": {
"a": "b"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP",
"name": "testIP",
"type": "Microsoft.Sql/instancePools"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "group1",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
},
"location": "onebox",
"tags": {
"a": "b"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP",
"name": "testIP",
"type": "Microsoft.Sql/instancePools"
},
{
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
},
"location": "onebox",
"tags": {
"a": "b"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP2",
"name": "testIP2",
"type": "Microsoft.Sql/instancePools"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
},
"location": "onebox",
"tags": {
"a": "b"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP",
"name": "testIP",
"type": "Microsoft.Sql/instancePools"
},
{
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group2/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
},
"location": "onebox",
"tags": {
"a": "b"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group2/providers/Microsoft.Sql/instancePools/testIP2",
"name": "testIP2",
"type": "Microsoft.Sql/instancePools"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "group1",
"instancePoolName": "testIP",
"api-version": "2018-06-01-preview",
"parameters": {
"tags": {
"x": "y"
}
}
},
"responses": {
"200": {
"body": {
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5"
},
"properties": {
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
"vCores": 8,
"licenseType": "LicenseIncluded"
},
"location": "onebox",
"tags": {
"x": "y"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP",
"name": "testIP",
"type": "Microsoft.Sql/instancePools"
}
},
"202": {}
}
}
Loading

0 comments on commit f3e20aa

Please sign in to comment.