-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding instance pools swagger (#5225)
* 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
1 parent
49b2070
commit f3e20aa
Showing
8 changed files
with
812 additions
and
0 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
...ager/Microsoft.Sql/preview/2018-06-01-preview/examples/CreateOrUpdateInstancePoolMax.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
...ager/Microsoft.Sql/preview/2018-06-01-preview/examples/CreateOrUpdateInstancePoolMin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...esource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DeleteInstancePool.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...l/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/GetInstancePool.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
...r/Microsoft.Sql/preview/2018-06-01-preview/examples/ListInstancePoolsByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
.../Microsoft.Sql/preview/2018-06-01-preview/examples/ListInstancePoolsBySubscriptionId.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/PatchInstancePool.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
Oops, something went wrong.