Skip to content

Commit

Permalink
fix phone user resource (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: Tadayuki Onishi <[email protected]>
Co-authored-by: Tadayuki Onishi <[email protected]>
  • Loading branch information
kenchan0130 and Tadayuki Onishi authored Aug 24, 2024
1 parent b318fab commit e462380
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 37 deletions.
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (p *zoomProvider) Resources(_ context.Context) []func() resource.Resource {
sharedlinegroupgroup.NewPhoneSharedLineGroupResource,
sharedlinegroupgroupmembers.NewPhoneSharedLineGroupMembersResource,
sharedlinegroupgroupphonenumbers.NewPhoneSharedLineGroupPhoneNumbersResource,
phoneuser.NewUserResource,
phoneuser.NewPhoneUserResource,
userphonenumber.NewPhoneUserPhoneNumbersResource,
}
}
Expand Down
32 changes: 0 additions & 32 deletions internal/schema/customplanmodifier/null_to_empty_string.go

This file was deleted.

5 changes: 1 addition & 4 deletions internal/services/phone/user/user_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"github.com/folio-sec/terraform-provider-zoom/generated/api/zoomphone"
"github.com/folio-sec/terraform-provider-zoom/internal/provider/shared"
"github.com/folio-sec/terraform-provider-zoom/internal/schema/customplanmodifier"
"github.com/folio-sec/terraform-provider-zoom/internal/schema/customvalidator"
"github.com/folio-sec/terraform-provider-zoom/internal/util"
"github.com/hashicorp/terraform-plugin-framework/path"
Expand Down Expand Up @@ -41,7 +40,7 @@ type resourceModel struct {
TemplateID types.String `tfsdk:"template_id"`
}

func NewUserResource() resource.Resource {
func NewPhoneUserResource() resource.Resource {
return &tfResource{}
}

Expand Down Expand Up @@ -94,7 +93,6 @@ This resource requires the ` + strings.Join([]string{
"cost_center": schema.StringAttribute{
Computed: true,
PlanModifiers: []planmodifier.String{
customplanmodifier.EmptyIfNull(),
stringplanmodifier.UseStateForUnknown(),
},
MarkdownDescription: "The cost center name.",
Expand Down Expand Up @@ -136,7 +134,6 @@ This resource requires the ` + strings.Join([]string{
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.String{
customplanmodifier.EmptyIfNull(),
stringplanmodifier.UseStateForUnknown(),
},
MarkdownDescription: "The unique identifier of the [site](https://support.zoom.us/hc/en-us/articles/360020809672z) where the user should be moved or assigned.",
Expand Down

0 comments on commit e462380

Please sign in to comment.