Skip to content

Commit

Permalink
merging hashicorp#11626
Browse files Browse the repository at this point in the history
* Upgrade to latest version of databox

* Updated SKUs and Documentation
  • Loading branch information
WodansSon authored and favoretti committed May 26, 2021
1 parent f273e24 commit 538f43f
Show file tree
Hide file tree
Showing 35 changed files with 5,625 additions and 1,463 deletions.
2 changes: 1 addition & 1 deletion azurerm/internal/services/databoxedge/client/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2019-08-01/databoxedge"
"github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2020-12-01/databoxedge"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"time"

"github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2019-08-01/databoxedge"
"github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2020-12-01/databoxedge"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ resource "azurerm_databox_edge_device" "test" {
resource_group_name = azurerm_resource_group.test.name
location = azurerm_resource_group.test.location
sku_name = "Edge-Standard"
sku_name = "EdgeP_Base-Standard"
}
`, r.template(data), data.RandomString)
}
Expand All @@ -149,7 +149,7 @@ resource "azurerm_databox_edge_device" "import" {
resource_group_name = azurerm_databox_edge_device.test.resource_group_name
location = azurerm_databox_edge_device.test.location
sku_name = "Edge-Standard"
sku_name = "EdgeP_Base-Standard"
}
`, r.basic(data))
}
Expand All @@ -163,7 +163,7 @@ resource "azurerm_databox_edge_device" "test" {
resource_group_name = azurerm_resource_group.test.name
location = azurerm_resource_group.test.location
sku_name = "Edge-Standard"
sku_name = "EdgeP_Base-Standard"
tags = {
ENV = "Test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"time"

"github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2019-08-01/databoxedge"
"github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2020-12-01/databoxedge"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ resource "azurerm_databox_edge_device" "test" {
resource_group_name = azurerm_resource_group.test.name
location = azurerm_resource_group.test.location
sku_name = "Edge-Standard"
sku_name = "EdgeP_Base-Standard"
}
`, data.RandomInteger, "eastus", data.RandomString)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2019-08-01/databoxedge"
"github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2020-12-01/databoxedge"
)

// DataboxEdgeDeviceSku type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2019-08-01/databoxedge"
"github.com/Azure/azure-sdk-for-go/services/databoxedge/mgmt/2020-12-01/databoxedge"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure"
)

Expand Down Expand Up @@ -53,7 +53,21 @@ func DataboxEdgeDeviceSkuName(v interface{}, k string) (warnings []string, error
func getValidSkus() []string {
return []string{
string(databoxedge.Gateway),
string(databoxedge.Edge),
// notified that the Edge SKU has been deprecated per the
// service team as via a communication on Thursday, March 11, 2021
// and been replaced by the below new SKUs: EdgePBase is the new Edge SKU
string(databoxedge.EdgeMRMini),
string(databoxedge.EdgePBase),
string(databoxedge.EdgePHigh),
string(databoxedge.EdgePRBase),
string(databoxedge.EdgePRBaseUPS),
string(databoxedge.GPU),
string(databoxedge.RCALarge),
string(databoxedge.RCASmall),
string(databoxedge.RDC),
string(databoxedge.TCALarge),
string(databoxedge.TCASmall),
string(databoxedge.TDC),
string(databoxedge.TEA1Node),
string(databoxedge.TEA1NodeUPS),
string(databoxedge.TEA1NodeHeater),
Expand Down

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 538f43f

Please sign in to comment.