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_hdinsight_cluster_pool #25937

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions internal/clients/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
eventgrid_v2022_06_15 "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15"
fluidrelay_2022_05_26 "github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26"
hdinsight_v2021_06_01 "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01"
hdinsight_v2024_05_01 "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2024-05-01"
nginx_2024_01_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-01-01-preview"
redis_2023_08_01 "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01"
servicenetworking_2023_11_01 "github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01"
Expand Down Expand Up @@ -215,6 +216,7 @@ type Client struct {
Graph *graph.Client
HSM *hsm.Client
HDInsight *hdinsight_v2021_06_01.Client
HDInsight2024 *hdinsight_v2024_05_01.Client
HybridCompute *hybridcompute.Client
HealthCare *healthcare.Client
IoTCentral *iotcentral.Client
Expand Down Expand Up @@ -460,6 +462,9 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error
if client.HDInsight, err = hdinsight.NewClient(o); err != nil {
return fmt.Errorf("building clients for HDInsight: %+v", err)
}
if client.HDInsight2024, err = hdinsight.NewHDInsightOnArksClient(o); err != nil {
return fmt.Errorf("building clients for HDInsight: %+v", err)
}
if client.HealthCare, err = healthcare.NewClient(o); err != nil {
return fmt.Errorf("building clients for HealthCare: %+v", err)
}
Expand Down
1 change: 1 addition & 0 deletions internal/provider/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ func SupportedTypedServices() []sdk.TypedServiceRegistration {
fluidrelay.Registration{},
graphservices.Registration{},
storagecache.Registration{},
hdinsight.Registration{},
hybridcompute.Registration{},
iothub.Registration{},
iotcentral.Registration{},
Expand Down
18 changes: 18 additions & 0 deletions internal/services/hdinsight/client/hdinsight_on_arks_client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package client

import (
hdinsight_v2024_05_01 "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2024-05-01"
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
)

func NewHDInsightOnArksClient(o *common.ClientOptions) (*hdinsight_v2024_05_01.Client, error) {
return hdinsight_v2024_05_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) {
o.Configure(c, o.Authorizers.ResourceManager)

c.CorrelationId = ""
})
}
Loading
Loading