Skip to content

Commit

Permalink
azurerm_graph_services_account - remove deprecation message (#25391)
Browse files Browse the repository at this point in the history
  • Loading branch information
teowa authored Mar 26, 2024
1 parent 56ac56d commit 581ac9e
Showing 1 changed file with 42 additions and 8 deletions.
50 changes: 42 additions & 8 deletions internal/services/graphservices/graph_services_account_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,56 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
)

var _ sdk.Resource = ServicesAccountResource{}
var _ sdk.ResourceWithUpdate = ServicesAccountResource{}
var (
_ sdk.Resource = ServicesAccountResource{}
_ sdk.ResourceWithUpdate = ServicesAccountResource{}
)

type ServicesAccountResource struct{}

func (r ServicesAccountResource) ModelObject() interface{} {
return &AccountResourceSchema{}
}

type ServicesAccountResource struct {
AccountResource
func (r ServicesAccountResource) IDValidationFunc() pluginsdk.SchemaValidateFunc {
return graphservicesprods.ValidateAccountID
}

func (r ServicesAccountResource) ResourceType() string {
return "azurerm_graph_services_account"
}

var _ sdk.Resource = AccountResource{}
var _ sdk.ResourceWithUpdate = AccountResource{}
var _ sdk.ResourceWithDeprecationReplacedBy = AccountResource{}
func (r ServicesAccountResource) Arguments() map[string]*pluginsdk.Schema {
return AccountResource{}.Arguments()
}

func (r ServicesAccountResource) Attributes() map[string]*pluginsdk.Schema {
return AccountResource{}.Attributes()
}

func (r ServicesAccountResource) Create() sdk.ResourceFunc {
return AccountResource{}.Create()
}

func (r ServicesAccountResource) Read() sdk.ResourceFunc {
return AccountResource{}.Read()
}

func (r ServicesAccountResource) Delete() sdk.ResourceFunc {
return AccountResource{}.Delete()
}

func (r ServicesAccountResource) Update() sdk.ResourceFunc {
return AccountResource{}.Update()
}

var (
_ sdk.Resource = AccountResource{}
_ sdk.ResourceWithUpdate = AccountResource{}
_ sdk.ResourceWithDeprecationReplacedBy = AccountResource{}
)

// AccountResource remove this in 4.0
// AccountResource remove this in 4.0, the resource is renamed
type AccountResource struct{}

func (r AccountResource) DeprecatedInFavourOfResource() string {
Expand Down

0 comments on commit 581ac9e

Please sign in to comment.