Skip to content

Commit

Permalink
update dataprotection sdk to 2021-01-01
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed May 26, 2021
1 parent df7d7c7 commit 2d19f55
Show file tree
Hide file tree
Showing 20 changed files with 9,458 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azurerm/internal/clients/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
databricks "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/databricks/client"
datafactory "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/datafactory/client"
datalake "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/datalake/client"
dataprotection "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/dataprotection/client"
datashare "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/datashare/client"
desktopvirtualization "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/desktopvirtualization/client"
devspace "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/devspace/client"
Expand Down Expand Up @@ -134,6 +135,7 @@ type Client struct {
DataboxEdge *databoxedge.Client
DataFactory *datafactory.Client
Datalake *datalake.Client
DataProtection *dataprotection.Client
DataShare *datashare.Client
DesktopVirtualization *desktopvirtualization.Client
DevSpace *devspace.Client
Expand Down Expand Up @@ -237,6 +239,7 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error
client.DataboxEdge = databoxedge.NewClient(o)
client.DataFactory = datafactory.NewClient(o)
client.Datalake = datalake.NewClient(o)
client.DataProtection = dataprotection.NewClient(o)
client.DataShare = datashare.NewClient(o)
client.DesktopVirtualization = desktopvirtualization.NewClient(o)
client.DevSpace = devspace.NewClient(o)
Expand Down
19 changes: 19 additions & 0 deletions azurerm/internal/services/dataprotection/client/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package client

import (
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/dataprotection/legacysdk/dataprotection"
)

type Client struct {
BackupVaultClient *dataprotection.BackupVaultsClient
}

func NewClient(o *common.ClientOptions) *Client {
backupVaultClient := dataprotection.NewBackupVaultsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&backupVaultClient.Client, o.ResourceManagerAuthorizer)

return &Client{
BackupVaultClient: &backupVaultClient,
}
}

Large diffs are not rendered by default.

Loading

0 comments on commit 2d19f55

Please sign in to comment.