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_lab_service_lab #19852

Merged
merged 21 commits into from
Jan 10, 2023
Merged
Changes from 1 commit
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
Next Next commit
New Resource: azurerm_lab_service_lab
  • Loading branch information
neil-yechenwei committed Nov 15, 2022

Verified

This commit was signed with the committer’s verified signature.
codebytere Shelley Vohr
commit 209ac173dc50ea903d1197a91e83f99b4483c116
3 changes: 3 additions & 0 deletions internal/clients/client.go
Original file line number Diff line number Diff line change
@@ -66,6 +66,7 @@ import (
timeseriesinsights "github.com/hashicorp/terraform-provider-azurerm/internal/services/iottimeseriesinsights/client"
keyvault "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/client"
kusto "github.com/hashicorp/terraform-provider-azurerm/internal/services/kusto/client"
labservice "github.com/hashicorp/terraform-provider-azurerm/internal/services/labservice/client"
legacy "github.com/hashicorp/terraform-provider-azurerm/internal/services/legacy/client"
lighthouse "github.com/hashicorp/terraform-provider-azurerm/internal/services/lighthouse/client"
loadbalancers "github.com/hashicorp/terraform-provider-azurerm/internal/services/loadbalancer/client"
@@ -184,6 +185,7 @@ type Client struct {
IoTTimeSeriesInsights *timeseriesinsights.Client
KeyVault *keyvault.Client
Kusto *kusto.Client
LabService *labservice.Client
Legacy *legacy.Client
Lighthouse *lighthouse.Client
LoadBalancers *loadbalancers.Client
@@ -306,6 +308,7 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error
client.IoTTimeSeriesInsights = timeseriesinsights.NewClient(o)
client.KeyVault = keyvault.NewClient(o)
client.Kusto = kusto.NewClient(o)
client.LabService = labservice.NewClient(o)
client.Legacy = legacy.NewClient(o)
client.Lighthouse = lighthouse.NewClient(o)
client.LogAnalytics = loganalytics.NewClient(o)
2 changes: 2 additions & 0 deletions internal/provider/services.go
Original file line number Diff line number Diff line change
@@ -57,6 +57,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/services/iottimeseriesinsights"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/kusto"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/labservice"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/legacy"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/lighthouse"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/loadbalancer"
@@ -137,6 +138,7 @@ func SupportedTypedServices() []sdk.TypedServiceRegistration {
iothub.Registration{},
iotcentral.Registration{},
keyvault.Registration{},
labservice.Registration{},
loadbalancer.Registration{},
loganalytics.Registration{},
monitor.Registration{},
19 changes: 19 additions & 0 deletions internal/services/labservice/client/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package client

import (
"github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2022-08-01/lab"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
)

type Client struct {
LabClient *lab.LabClient
}

func NewClient(o *common.ClientOptions) *Client {
LabClient := lab.NewLabClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&LabClient.Client, o.ResourceManagerAuthorizer)

return &Client{
LabClient: &LabClient,
}
}
Loading