Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix phone user resource #29

Merged
merged 1 commit into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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