Skip to content

Commit

Permalink
Managed Instance swagger to support Authentication Metadata (#25795)
Browse files Browse the repository at this point in the history
* generated swagger

* fixed prettier:

* fixed minor stuff

* swagger fixes

* added missing example file

* removed unused file

* externalgovernance fixes

* minor fixes

* missing character
  • Loading branch information
nesavicMSFT authored Oct 6, 2023
1 parent 8f37ece commit 9d5a902
Show file tree
Hide file tree
Showing 19 changed files with 194 additions and 63 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"hybridSecondaryUsage": "Passive",
"servicePrincipal": {
"type": "SystemAssigned"
}
},
"databaseFormat": "AlwaysUpToDate"
}
}
},
Expand Down Expand Up @@ -85,7 +86,8 @@
"type": "SystemAssigned"
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
"hybridSecondaryUsage": "Passive",
"databaseFormat": "AlwaysUpToDate"
},
"location": "japaneast",
"tags": {
Expand Down Expand Up @@ -136,7 +138,8 @@
"tenantId": "00000011-1111-2222-2222-123456789111",
"type": "SystemAssigned"
},
"hybridSecondaryUsage": "Passive"
"hybridSecondaryUsage": "Passive",
"databaseFormat": "AlwaysUpToDate"
},
"location": "japaneast",
"tags": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"api-version": "2023-05-01-preview",
"parameters": {
"sku": {
"name": "GP_Gen4",
"name": "GP_Gen5",
"tier": "GeneralPurpose"
},
"properties": {
Expand All @@ -24,7 +24,7 @@
"200": {
"body": {
"sku": {
"name": "GP_Gen4",
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"capacity": 8,
"family": "Gen4"
Expand All @@ -45,7 +45,8 @@
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
"hybridSecondaryUsage": "Passive",
"databaseFormat": "SQLServer2022"
},
"location": "japaneast",
"tags": {},
Expand All @@ -57,7 +58,7 @@
"201": {
"body": {
"sku": {
"name": "GP_Gen4",
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"capacity": 8,
"family": "Gen4"
Expand All @@ -78,7 +79,8 @@
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
"hybridSecondaryUsage": "Passive",
"databaseFormat": "SQLServer2022"
},
"location": "japaneast",
"tags": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
},
"location": "japaneast",
"tags": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "testrg",
"managedInstanceName": "testinstance",
"api-version": "2023-05-01-preview"
},
"responses": {
"200": {
"body": {
"sku": {
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"capacity": 8,
"family": "Gen5"
},
"properties": {
"fullyQualifiedDomainName": "testinstance.1b4e2caff2530.database.windows.net",
"administratorLogin": "dummylogin",
"subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
"state": "Ready",
"provisioningState": "Updating",
"vCores": 8,
"storageSizeInGB": 1024,
"licenseType": "LicenseIncluded",
"collation": "SQL_Latin1_General_CP1_CI_AS",
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
"minimalTlsVersion": "1.2",
"dnsZone": "1b4e2caff2530",
"instancePoolId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1",
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_JapanEast_MI_1",
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999",
"externalGovernanceStatus": "Enabled",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z",
"authenticationMetadata": "Windows",
"databaseFormat": "SQLServer2022"
},
"location": "japaneast",
"tags": {
"key": "value"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance",
"name": "testinstance",
"type": "Microsoft.Sql/managedInstances"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
},
"location": "japaneast",
"tags": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
},
{
Expand Down Expand Up @@ -73,8 +75,10 @@
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-444444444444",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
},
{
Expand Down Expand Up @@ -77,8 +79,10 @@
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
},
{
Expand Down Expand Up @@ -91,8 +93,10 @@
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
},
{
Expand Down Expand Up @@ -74,8 +76,10 @@
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-444444444444",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "testinstance1",
"type": "Microsoft.Sql/managedInstances",
"sku": {
"name": "GP_Gen4",
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"capacity": 8,
"family": "Gen4"
Expand Down Expand Up @@ -45,9 +45,11 @@
"azureADOnlyAuthentication": true
},
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"externalGovernanceStatus": "Enabled",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
},
{
Expand Down Expand Up @@ -88,8 +90,10 @@
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "testinstance1",
"type": "Microsoft.Sql/managedInstances",
"sku": {
"name": "GP_Gen4",
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"capacity": 8,
"family": "Gen4"
Expand Down Expand Up @@ -45,8 +45,10 @@
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
},
{
Expand Down Expand Up @@ -87,8 +89,10 @@
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"pricingModel": "Regular",
"createTime": "2022-11-01T01:01:01.011Z"
"createTime": "2022-11-01T01:01:01.011Z",
"databaseFormat": "SQLServer2022"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Sql/locations/japaneast/refreshExternalGovernanceStatusMIOperationResults/00000000-0000-0000-0000-000000000000?api-version=2023-05-01-preview"
"Location": "https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Sql/locations/japaneast/refreshExternalGovernanceStatusMIOperationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-01-preview"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"body": {
"sku": {
"name": "GP_Gen4",
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"capacity": 8,
"family": "Gen4"
Expand All @@ -38,7 +38,9 @@
"instancePoolId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1",
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default",
"hybridSecondaryUsage": "Passive",
"externalGovernanceStatus": "Enabled"
"externalGovernanceStatus": "Enabled",
"authenticationMetadata": "Windows",
"databaseFormat": "SQLServer2022"
},
"location": "japaneast",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"tagKey1": "TagValue1"
},
"sku": {
"name": "GP_Gen4",
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"capacity": 8
},
Expand All @@ -25,7 +25,9 @@
"collation": "SQL_Latin1_General_CP1_CI_AS",
"requestedBackupStorageRedundancy": "Geo",
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_JapanEast_MI_1",
"hybridSecondaryUsage": "Passive"
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"databaseFormat": "AlwaysUpToDate"
}
}
},
Expand All @@ -43,7 +45,7 @@
"type": "Microsoft.Sql/managedInstances",
"location": "japaneast",
"sku": {
"name": "GP_Gen4",
"name": "GP_Gen5",
"tier": "GeneralPurpose",
"capacity": 8,
"family": "Gen4"
Expand All @@ -66,7 +68,9 @@
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
"hybridSecondaryUsage": "Passive",
"authenticationMetadata": "Windows",
"databaseFormat": "AlwaysUpToDate"
}
}
},
Expand Down
Loading

0 comments on commit 9d5a902

Please sign in to comment.