Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Resource: azurerm_cosmosdb_postgresql_cluster #21090

Merged
merged 35 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
96b99b5
New Resource: azurerm_postgresql_hyperscale_cluster
neil-yechenwei Mar 20, 2023
80092b6
update code
neil-yechenwei Mar 20, 2023
03a59db
update code
neil-yechenwei Mar 21, 2023
186c47c
update code
neil-yechenwei Mar 21, 2023
af31b95
update code
neil-yechenwei Mar 21, 2023
53345bf
update code
neil-yechenwei Mar 22, 2023
9719b5a
update code
neil-yechenwei Mar 22, 2023
9be0125
update code
neil-yechenwei Mar 22, 2023
89366c2
update code
neil-yechenwei Mar 22, 2023
451c76f
update code
neil-yechenwei Mar 22, 2023
5f6ff20
update code
neil-yechenwei Mar 22, 2023
414c060
update code
neil-yechenwei Mar 23, 2023
f2af8c1
update code
neil-yechenwei Mar 23, 2023
6679052
update code
neil-yechenwei Mar 23, 2023
90df429
update code
neil-yechenwei Mar 23, 2023
472c141
update code
neil-yechenwei Mar 23, 2023
911e7cc
Merge remote-tracking branch 'upstream/main' into postgresqlhsccluster
neil-yechenwei Mar 23, 2023
61ebdb4
update code
neil-yechenwei Mar 23, 2023
941ded0
update code
neil-yechenwei Mar 23, 2023
0ae412d
update code
neil-yechenwei Mar 23, 2023
fbd8d87
update code
neil-yechenwei Mar 28, 2023
925f88b
update code
neil-yechenwei Mar 28, 2023
871ba4a
update code
neil-yechenwei Mar 29, 2023
8583dc7
update code
neil-yechenwei Mar 29, 2023
5eb9d99
update code
neil-yechenwei Mar 29, 2023
3aa5279
update code
neil-yechenwei Apr 14, 2023
2bf32cf
update code
neil-yechenwei Apr 14, 2023
03b5c19
Merge remote-tracking branch 'upstream/main' into postgresqlhsccluster
neil-yechenwei Apr 14, 2023
e4080de
update code
neil-yechenwei Apr 14, 2023
8821b8e
update code
neil-yechenwei Apr 17, 2023
3cb9449
update code
neil-yechenwei Apr 17, 2023
ba4f254
update code
neil-yechenwei Apr 21, 2023
69575bd
update code
neil-yechenwei Apr 26, 2023
e995746
update code
neil-yechenwei Apr 26, 2023
be071ff
update code
neil-yechenwei Apr 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions internal/services/cosmos/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import (
"github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-10-15/documentdb" // nolint: staticcheck
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/managedcassandras"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway"
"github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
)

type Client struct {
CassandraClient *documentdb.CassandraResourcesClient
CassandraClustersClient *managedcassandras.ManagedCassandrasClient
CassandraDatacentersClient *documentdb.CassandraDataCentersClient
ClustersClient *clusters.ClustersClient
DatabaseClient *documentdb.DatabaseAccountsClient
GremlinClient *documentdb.GremlinResourcesClient
MongoDbClient *documentdb.MongoDBResourcesClient
Expand All @@ -32,6 +34,9 @@ func NewClient(o *common.ClientOptions) *Client {
cassandraDatacentersClient := documentdb.NewCassandraDataCentersClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&cassandraDatacentersClient.Client, o.ResourceManagerAuthorizer)

clustersClient := clusters.NewClustersClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&clustersClient.Client, o.ResourceManagerAuthorizer)

databaseClient := documentdb.NewDatabaseAccountsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&databaseClient.Client, o.ResourceManagerAuthorizer)

Expand Down Expand Up @@ -63,6 +68,7 @@ func NewClient(o *common.ClientOptions) *Client {
CassandraClient: &cassandraClient,
CassandraClustersClient: &cassandraClustersClient,
CassandraDatacentersClient: &cassandraDatacentersClient,
ClustersClient: &clustersClient,
DatabaseClient: &databaseClient,
GremlinClient: &gremlinClient,
MongoDbClient: &mongoDbClient,
Expand Down
Loading