Skip to content

Commit

Permalink
Including #21250
Browse files Browse the repository at this point in the history
* Initial Check-in...

* Fix lint errors...

* Add validation and refactor code base...

* Fix lint error...

* Remove unused meta...

* Remove code changes...
  • Loading branch information
WodansSon authored Apr 5, 2023
1 parent 04499e3 commit 6595652
Show file tree
Hide file tree
Showing 70 changed files with 1,951 additions and 31 deletions.
8 changes: 4 additions & 4 deletions internal/services/search/client/client.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package client

import (
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/adminkeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/querykeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/services"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-08-01/sharedprivatelinkresources"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/adminkeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/querykeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/sharedprivatelinkresources"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/services/search/search_service_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-helpers/resourcemanager/identity"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/adminkeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/querykeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/services"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/adminkeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/querykeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
Expand Down
10 changes: 5 additions & 5 deletions internal/services/search/search_service_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/identity"
"github.com/hashicorp/go-azure-helpers/resourcemanager/location"
"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/adminkeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/querykeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/services"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/adminkeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/querykeys"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services"
"github.com/hashicorp/terraform-provider-azurerm/helpers/azure"
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
"github.com/hashicorp/terraform-provider-azurerm/helpers/validate"
Expand Down Expand Up @@ -168,7 +168,7 @@ func resourceSearchServiceCreateUpdate(d *pluginsdk.ResourceData, meta interface

skuName := services.SkuName(d.Get("sku").(string))
properties := services.SearchService{
Location: utils.String(location),
Location: location,
Sku: &services.Sku{
Name: &skuName,
},
Expand Down Expand Up @@ -226,7 +226,7 @@ func resourceSearchServiceRead(d *pluginsdk.ResourceData, meta interface{}) erro
d.Set("resource_group_name", id.ResourceGroupName)

if model := resp.Model; model != nil {
d.Set("location", location.NormalizeNilable(model.Location))
d.Set("location", location.Normalize(model.Location))

skuName := ""
if sku := model.Sku; sku != nil && sku.Name != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/search/search_service_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/services"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"time"

"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/services"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-08-01/sharedprivatelinkresources"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/sharedprivatelinkresources"
"github.com/hashicorp/terraform-provider-azurerm/helpers/azure"
"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
networkValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-08-01/sharedprivatelinkresources"
"github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/sharedprivatelinkresources"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down

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

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

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

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

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

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

Loading

0 comments on commit 6595652

Please sign in to comment.