Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stephybun committed Jan 23, 2024
1 parent 946fff3 commit 2312af1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 35 deletions.
32 changes: 3 additions & 29 deletions internal/services/chaosstudio/chaos_studio_target_resource_gen.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package chaosstudio

import (
"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
)
// NOTE: this placeholder below is just to keep the compiler happy until the upstream
// PR https://github.com/hashicorp/pandora/pull/3671 is merged

var _ sdk.Resource = ChaosStudioTargetResource{}
var _ = ChaosStudioTargetResource{} // to keep the unused linter happy

type ChaosStudioTargetResource struct{}

Expand All @@ -15,30 +13,6 @@ type ChaosStudioTargetResourceSchema struct {
TargetResourceId string `tfschema:"target_resource_id"`
}

func (r ChaosStudioTargetResource) ModelObject() interface{} {
return nil
}

func (r ChaosStudioTargetResource) IDValidationFunc() pluginsdk.SchemaValidateFunc {
return nil
}

func (r ChaosStudioTargetResource) ResourceType() string {
return ""
}

func (r ChaosStudioTargetResource) Arguments() map[string]*pluginsdk.Schema {
return nil
}

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

func (r ChaosStudioTargetResource) Read() sdk.ResourceFunc {
return sdk.ResourceFunc{}
}

func (r ChaosStudioTargetResource) Delete() sdk.ResourceFunc {
return sdk.ResourceFunc{}
}
8 changes: 2 additions & 6 deletions internal/services/chaosstudio/registration_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ func (autoRegistration) DataSources() []sdk.DataSource {
}

func (autoRegistration) Resources() []sdk.Resource {
return []sdk.Resource{
ChaosStudioTargetResource{},
}
return []sdk.Resource{}
}

func (autoRegistration) WebsiteCategories() []string {
return []string{
"Chaos Studio",
}
return []string{}
}

0 comments on commit 2312af1

Please sign in to comment.