Skip to content

Commit

Permalink
fix: updates attributes for market and marketplace_visibility to bett…
Browse files Browse the repository at this point in the history
…er reflect API
  • Loading branch information
mega-alex committed May 15, 2024
1 parent e7d3d02 commit 24a7cba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions internal/provider/lag_port_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (r *lagPortResource) Schema(_ context.Context, _ resource.SchemaRequest, re
},
"market": schema.StringAttribute{
Description: "The market the product is in.",
Required: true,
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.RequiresReplace(),
},
Expand Down Expand Up @@ -283,7 +283,8 @@ func (r *lagPortResource) Schema(_ context.Context, _ resource.SchemaRequest, re
},
"marketplace_visibility": schema.BoolAttribute{
Description: "Whether the product is visible in the marketplace.",
Required: true,
Optional: true,
Computed: true,
},
"vxc_permitted": schema.BoolAttribute{
Description: "Whether VXC is permitted on this product.",
Expand Down
5 changes: 3 additions & 2 deletions internal/provider/mcr_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (r *mcrResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *
},
"market": schema.StringAttribute{
Description: "Market the product is in.",
Required: true,
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.RequiresReplace(),
},
Expand Down Expand Up @@ -350,7 +350,8 @@ func (r *mcrResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *
},
"marketplace_visibility": schema.BoolAttribute{
Description: "Whether the product is visible in the Marketplace.",
Required: true,
Optional: true,
Computed: true,
},
"asn": schema.Int64Attribute{
Description: "ASN in the MCR order configuration.",
Expand Down
1 change: 1 addition & 0 deletions internal/provider/mve_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ func (r *mveResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *
},
"marketplace_visibility": schema.BoolAttribute{
Description: "Whether the MVE is visible in the marketplace.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Bool{
boolplanmodifier.UseStateForUnknown(),
Expand Down
5 changes: 3 additions & 2 deletions internal/provider/single_port_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (r *portResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
},
"market": schema.StringAttribute{
Description: "The market the product is in.",
Required: true,
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.RequiresReplace(),
},
Expand Down Expand Up @@ -362,7 +362,8 @@ func (r *portResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
},
"marketplace_visibility": schema.BoolAttribute{
Description: "Whether the product is visible in the marketplace.",
Required: true,
Optional: true,
Computed: true,
},
"vxc_permitted": schema.BoolAttribute{
Description: "Whether VXC is permitted on this product.",
Expand Down

0 comments on commit 24a7cba

Please sign in to comment.