Skip to content

Commit

Permalink
feat: add service key to vxc input
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaportPhilipBrowne committed Sep 4, 2024
1 parent 89f3316 commit 10d5193
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/provider/vxc_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ type vxcResourceModel struct {
DistanceBand types.String `tfsdk:"distance_band"`
ProvisioningStatus types.String `tfsdk:"provisioning_status"`
PromoCode types.String `tfsdk:"promo_code"`
ServiceKey types.String `tfsdk:"service_key"`

SecondaryName types.String `tfsdk:"secondary_name"`
UsageAlgorithm types.String `tfsdk:"usage_algorithm"`
Expand Down Expand Up @@ -596,6 +597,13 @@ func (r *vxcResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *
int64planmodifier.UseStateForUnknown(),
},
},
"service_key": schema.StringAttribute{
Description: "The service key of the VXC.",
Optional: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.RequiresReplace(),
},
},
"product_name": schema.StringAttribute{
Description: "The name of the product.",
Required: true,
Expand Down Expand Up @@ -2025,6 +2033,7 @@ func (r *vxcResource) Create(ctx context.Context, req resource.CreateRequest, re
RateLimit: int(plan.RateLimit.ValueInt64()),
PromoCode: plan.PromoCode.ValueString(),
CostCentre: plan.CostCentre.ValueString(),
ServiceKey: plan.ServiceKey.ValueString(),

WaitForProvision: true,
WaitForTime: waitForTime,
Expand Down

0 comments on commit 10d5193

Please sign in to comment.