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 Datasource: azurerm_hybrid_compute_machine #20211

Merged
merged 27 commits into from
Feb 13, 2023
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b1aa897
hybrid compute datasource
liuwuliuyun Jan 29, 2023
78b5b32
update on dependencies
liuwuliuyun Jan 29, 2023
f18c412
Add document template for hybridcompute
liuwuliuyun Jan 29, 2023
633c001
Update document and testcase
liuwuliuyun Jan 30, 2023
94e581e
Update on settings file and test case
liuwuliuyun Jan 30, 2023
99752d8
Update on property name and script format
liuwuliuyun Jan 30, 2023
c7e8e86
Update based on CI report
liuwuliuyun Jan 30, 2023
0cbdd54
Update based on CI report
liuwuliuyun Jan 30, 2023
6de631b
Update website/docs/d/hybrid_compute_machine.html.markdown
liuwuliuyun Jan 31, 2023
ff93404
Update website/docs/d/hybrid_compute_machine.html.markdown
liuwuliuyun Jan 31, 2023
9b35493
Remove forcenew for datasource
liuwuliuyun Jan 31, 2023
43e3b42
Update property type to Bool
liuwuliuyun Jan 31, 2023
4fb5627
Update internal/services/hybridcompute/hybrid_compute_machine_data_so…
liuwuliuyun Feb 8, 2023
f20d916
Update internal/services/hybridcompute/scripts/install_arc.sh.tmpl
liuwuliuyun Feb 8, 2023
0fc5af7
Update internal/services/hybridcompute/hybrid_compute_machine_data_so…
liuwuliuyun Feb 8, 2023
1aedb5c
Update internal/services/hybridcompute/hybrid_compute_machine_data_so…
liuwuliuyun Feb 8, 2023
103763e
Remove extension property and change mssql_discovered to bool
liuwuliuyun Feb 8, 2023
b40f0cd
Update internal/services/hybridcompute/hybrid_compute_machine_data_so…
liuwuliuyun Feb 8, 2023
218a9dd
Update internal/services/hybridcompute/hybrid_compute_machine_data_so…
liuwuliuyun Feb 8, 2023
8229ae5
Update internal/services/hybridcompute/hybrid_compute_machine_data_so…
liuwuliuyun Feb 8, 2023
5df3e76
Update internal/services/hybridcompute/hybrid_compute_machine_data_so…
liuwuliuyun Feb 8, 2023
bbcdce0
Update internal/services/hybridcompute/scripts/install_arc.sh.tmpl
liuwuliuyun Feb 8, 2023
7eef55a
Update template file
liuwuliuyun Feb 8, 2023
487e09f
Merge branch 'main' into hcinit
liuwuliuyun Feb 13, 2023
d292d03
Add testcase and improve security
liuwuliuyun Feb 13, 2023
8ec2a17
Fix golint error
liuwuliuyun Feb 13, 2023
936789c
Update internal/services/hybridcompute/scripts/install_arc.sh.tftpl
manicminer Feb 13, 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
3 changes: 3 additions & 0 deletions .github/labeler-pull-request-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ service/hpc-cache:
service/hsm:
- internal/services/hsm/**/*

service/hybrid-compute:
- internal/services/hybridcompute/**/*

service/iot-central:
- internal/services/iotcentral/**/*

Expand Down
1 change: 1 addition & 0 deletions .teamcity/components/generated/services.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ var services = mapOf(
"hpccache" to "HPC Cache",
"hsm" to "Hardware Security Module",
"healthcare" to "Health Care",
"hybridcompute" to "Hybrid Compute",
"iotcentral" to "IoT Central",
"iothub" to "IoT Hub",
"keyvault" to "KeyVault",
Expand Down
3 changes: 3 additions & 0 deletions internal/clients/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import (
healthcare "github.com/hashicorp/terraform-provider-azurerm/internal/services/healthcare/client"
hpccache "github.com/hashicorp/terraform-provider-azurerm/internal/services/hpccache/client"
hsm "github.com/hashicorp/terraform-provider-azurerm/internal/services/hsm/client"
hybridcompute "github.com/hashicorp/terraform-provider-azurerm/internal/services/hybridcompute/client"
iotcentral "github.com/hashicorp/terraform-provider-azurerm/internal/services/iotcentral/client"
iothub "github.com/hashicorp/terraform-provider-azurerm/internal/services/iothub/client"
timeseriesinsights "github.com/hashicorp/terraform-provider-azurerm/internal/services/iottimeseriesinsights/client"
Expand Down Expand Up @@ -179,6 +180,7 @@ type Client struct {
HPCCache *hpccache.Client
HSM *hsm.Client
HDInsight *hdinsight.Client
HybridCompute *hybridcompute.Client
HealthCare *healthcare.Client
IoTCentral *iotcentral.Client
IoTHub *iothub.Client
Expand Down Expand Up @@ -301,6 +303,7 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error
client.HSM = hsm.NewClient(o)
client.HDInsight = hdinsight.NewClient(o)
client.HealthCare = healthcare.NewClient(o)
client.HybridCompute = hybridcompute.NewClient(o)
client.IoTCentral = iotcentral.NewClient(o)
client.IoTHub = iothub.NewClient(o)
client.IoTTimeSeriesInsights = timeseriesinsights.NewClient(o)
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/services/healthcare"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/hpccache"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/hsm"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/hybridcompute"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/iotcentral"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/iothub"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/iottimeseriesinsights"
Expand Down Expand Up @@ -138,6 +139,7 @@ func SupportedTypedServices() []sdk.TypedServiceRegistration {
domainservices.Registration{},
eventhub.Registration{},
fluidrelay.Registration{},
hybridcompute.Registration{},
iothub.Registration{},
iotcentral.Registration{},
keyvault.Registration{},
Expand Down
32 changes: 32 additions & 0 deletions internal/services/hybridcompute/client/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package client

import (
"github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-03-10/machineextensions"
"github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-03-10/machines"
"github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-03-10/privateendpointconnections"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
)

type Client struct {
MachineExtensionsClient *machineextensions.MachineExtensionsClient
MachinesClient *machines.MachinesClient
PrivateEndpointConnectionsClient *privateendpointconnections.PrivateEndpointConnectionsClient
}

func NewClient(o *common.ClientOptions) *Client {

machineExtensionsClient := machineextensions.NewMachineExtensionsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&machineExtensionsClient.Client, o.ResourceManagerAuthorizer)

machinesClient := machines.NewMachinesClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&machinesClient.Client, o.ResourceManagerAuthorizer)

privateEndpointConnectionsClient := privateendpointconnections.NewPrivateEndpointConnectionsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&privateEndpointConnectionsClient.Client, o.ResourceManagerAuthorizer)

return &Client{
MachineExtensionsClient: &machineExtensionsClient,
MachinesClient: &machinesClient,
PrivateEndpointConnectionsClient: &privateEndpointConnectionsClient,
}
}
Loading