Add Cosmos DB PostgreSQL Cluster + display only available resources (#23469)

This commit is contained in:
Cheena Malhotra
2023-06-27 15:55:10 -07:00
committed by GitHub
parent 01e66ab3e6
commit 0970442a5c
33 changed files with 323 additions and 170 deletions

View File

@@ -378,12 +378,17 @@ declare module 'azurecore' {
kustoClusters = 'microsoft.kusto/clusters',
azureArcPostgresServer = 'microsoft.azuredata/postgresinstances',
postgresServer = 'microsoft.dbforpostgresql/servers',
postgresServerv2 = 'microsoft.dbforpostgresql/serversv2',
postgresSingleServer = 'microsoft.dbforpostgresql/singleservers',
postgresFlexibleServer = 'microsoft.dbforpostgresql/flexibleservers',
postgresServerGroup = 'microsoft.dbforpostgresql/servergroups',
postgresServerGroupv2 = 'microsoft.dbforpostgresql/servergroupsv2',
azureArcService = 'microsoft.azuredata/datacontrollers',
storageAccount = 'microsoft.storage/storageaccounts',
logAnalytics = 'microsoft.operationalinsights/workspaces',
cosmosDbAccount = 'microsoft.documentdb/databaseaccounts',
cosmosDbCluster = 'microsoft.documentdb/mongoclusters',
cosmosDbPostgresCluster = 'microsoft.documentdb/postgresclusters',
cosmosDbMongoCluster = 'microsoft.documentdb/mongoclusters',
mysqlFlexibleServer = 'microsoft.dbformysql/flexibleservers'
}
@@ -406,9 +411,9 @@ declare module 'azurecore' {
getService(): azureResource.IAzureResourceService;
/**
* Gets the root tree item nodes for this provider - these will be used as
* direct children of the Account node in the Azure tree view.
* direct children of the Tenant node in the Azure tree view.
*/
getRootChildren(): Promise<azdata.TreeItem[]>;
getRootChild(): Promise<azdata.TreeItem>;
/**
* Gets the children for a given {@link IAzureResourceNode}
* @param element The parent node to get the children for
@@ -427,6 +432,7 @@ declare module 'azurecore' {
readonly account: AzureAccount;
readonly subscription: AzureResourceSubscription;
readonly tenantId: string;
readonly resourceProviderId: string;
readonly treeItem: azdata.TreeItem;
}