Skip to content

Commit 207231d

Browse files
committed
Generator updates
1 parent 90f01d0 commit 207231d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

internal/provider/model_sdwan_transport_wan_vpn_interface_ethernet_feature.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,6 +2237,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
22372237
} else if t.String() == "global" {
22382238
data.PerTunnelQos = types.BoolValue(va.Bool())
22392239
}
2240+
data.TunnelInterface = types.BoolValue(true)
22402241
}
22412242
data.TunnelQosMode = types.StringNull()
22422243
data.TunnelQosModeVariable = types.StringNull()
@@ -2247,6 +2248,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
22472248
} else if t.String() == "global" {
22482249
data.TunnelQosMode = types.StringValue(va.String())
22492250
}
2251+
data.TunnelInterface = types.BoolValue(true)
22502252
}
22512253
data.TunnelBandwidthPercent = types.Int64Null()
22522254
data.TunnelBandwidthPercentVariable = types.StringNull()
@@ -2257,6 +2259,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
22572259
} else if t.String() == "global" {
22582260
data.TunnelBandwidthPercent = types.Int64Value(va.Int())
22592261
}
2262+
data.TunnelInterface = types.BoolValue(true)
22602263
}
22612264
data.TunnelInterfaceBindLoopbackTunnel = types.StringNull()
22622265
data.TunnelInterfaceBindLoopbackTunnelVariable = types.StringNull()
@@ -2267,6 +2270,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
22672270
} else if t.String() == "global" {
22682271
data.TunnelInterfaceBindLoopbackTunnel = types.StringValue(va.String())
22692272
}
2273+
data.TunnelInterface = types.BoolValue(true)
22702274
}
22712275
data.TunnelInterfaceCarrier = types.StringNull()
22722276
data.TunnelInterfaceCarrierVariable = types.StringNull()
@@ -2277,6 +2281,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
22772281
} else if t.String() == "global" {
22782282
data.TunnelInterfaceCarrier = types.StringValue(va.String())
22792283
}
2284+
data.TunnelInterface = types.BoolValue(true)
22802285
}
22812286
data.TunnelInterfaceColor = types.StringNull()
22822287
data.TunnelInterfaceColorVariable = types.StringNull()
@@ -2287,6 +2292,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
22872292
} else if t.String() == "global" {
22882293
data.TunnelInterfaceColor = types.StringValue(va.String())
22892294
}
2295+
data.TunnelInterface = types.BoolValue(true)
22902296
}
22912297
data.TunnelInterfaceHelloInterval = types.Int64Null()
22922298
data.TunnelInterfaceHelloIntervalVariable = types.StringNull()
@@ -2297,6 +2303,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
22972303
} else if t.String() == "global" {
22982304
data.TunnelInterfaceHelloInterval = types.Int64Value(va.Int())
22992305
}
2306+
data.TunnelInterface = types.BoolValue(true)
23002307
}
23012308
data.TunnelInterfaceHelloTolerance = types.Int64Null()
23022309
data.TunnelInterfaceHelloToleranceVariable = types.StringNull()
@@ -2307,6 +2314,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
23072314
} else if t.String() == "global" {
23082315
data.TunnelInterfaceHelloTolerance = types.Int64Value(va.Int())
23092316
}
2317+
data.TunnelInterface = types.BoolValue(true)
23102318
}
23112319
data.TunnelInterfaceLastResortCircuit = types.BoolNull()
23122320
data.TunnelInterfaceLastResortCircuitVariable = types.StringNull()
@@ -2317,6 +2325,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
23172325
} else if t.String() == "global" {
23182326
data.TunnelInterfaceLastResortCircuit = types.BoolValue(va.Bool())
23192327
}
2328+
data.TunnelInterface = types.BoolValue(true)
23202329
}
23212330
data.TunnelInterfaceGreTunnelDestinationIp = types.StringNull()
23222331
data.TunnelInterfaceGreTunnelDestinationIpVariable = types.StringNull()
@@ -2327,6 +2336,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
23272336
} else if t.String() == "global" {
23282337
data.TunnelInterfaceGreTunnelDestinationIp = types.StringValue(va.String())
23292338
}
2339+
data.TunnelInterface = types.BoolValue(true)
23302340
}
23312341
data.TunnelInterfaceColorRestrict = types.BoolNull()
23322342
data.TunnelInterfaceColorRestrictVariable = types.StringNull()
@@ -2337,6 +2347,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
23372347
} else if t.String() == "global" {
23382348
data.TunnelInterfaceColorRestrict = types.BoolValue(va.Bool())
23392349
}
2350+
data.TunnelInterface = types.BoolValue(true)
23402351
}
23412352
data.TunnelInterfaceGroups = types.Int64Null()
23422353
data.TunnelInterfaceGroupsVariable = types.StringNull()
@@ -2347,6 +2358,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
23472358
} else if t.String() == "global" {
23482359
data.TunnelInterfaceGroups = types.Int64Value(va.Int())
23492360
}
2361+
data.TunnelInterface = types.BoolValue(true)
23502362
}
23512363
data.TunnelInterfaceBorder = types.BoolNull()
23522364
data.TunnelInterfaceBorderVariable = types.StringNull()
@@ -2357,6 +2369,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
23572369
} else if t.String() == "global" {
23582370
data.TunnelInterfaceBorder = types.BoolValue(va.Bool())
23592371
}
2372+
data.TunnelInterface = types.BoolValue(true)
23602373
}
23612374
data.TunnelInterfaceMaxControlConnections = types.Int64Null()
23622375
data.TunnelInterfaceMaxControlConnectionsVariable = types.StringNull()
@@ -2367,6 +2380,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
23672380
} else if t.String() == "global" {
23682381
data.TunnelInterfaceMaxControlConnections = types.Int64Value(va.Int())
23692382
}
2383+
data.TunnelInterface = types.BoolValue(true)
23702384
}
23712385
data.TunnelInterfaceNatRefreshInterval = types.Int64Null()
23722386
data.TunnelInterfaceNatRefreshIntervalVariable = types.StringNull()
@@ -2377,6 +2391,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
23772391
} else if t.String() == "global" {
23782392
data.TunnelInterfaceNatRefreshInterval = types.Int64Value(va.Int())
23792393
}
2394+
data.TunnelInterface = types.BoolValue(true)
23802395
}
23812396
data.TunnelInterfaceVbondAsStunServer = types.BoolNull()
23822397
data.TunnelInterfaceVbondAsStunServerVariable = types.StringNull()
@@ -2387,6 +2402,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
23872402
} else if t.String() == "global" {
23882403
data.TunnelInterfaceVbondAsStunServer = types.BoolValue(va.Bool())
23892404
}
2405+
data.TunnelInterface = types.BoolValue(true)
23902406
}
23912407
data.TunnelInterfaceExcludeControllerGroupList = types.SetNull(types.Int64Type)
23922408
data.TunnelInterfaceExcludeControllerGroupListVariable = types.StringNull()
@@ -2397,6 +2413,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
23972413
} else if t.String() == "global" {
23982414
data.TunnelInterfaceExcludeControllerGroupList = helpers.GetInt64Set(va.Array())
23992415
}
2416+
data.TunnelInterface = types.BoolValue(true)
24002417
}
24012418
data.TunnelInterfaceVmanageConnectionPreference = types.Int64Null()
24022419
data.TunnelInterfaceVmanageConnectionPreferenceVariable = types.StringNull()
@@ -2407,6 +2424,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
24072424
} else if t.String() == "global" {
24082425
data.TunnelInterfaceVmanageConnectionPreference = types.Int64Value(va.Int())
24092426
}
2427+
data.TunnelInterface = types.BoolValue(true)
24102428
}
24112429
data.TunnelInterfacePortHop = types.BoolNull()
24122430
data.TunnelInterfacePortHopVariable = types.StringNull()
@@ -2417,6 +2435,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
24172435
} else if t.String() == "global" {
24182436
data.TunnelInterfacePortHop = types.BoolValue(va.Bool())
24192437
}
2438+
data.TunnelInterface = types.BoolValue(true)
24202439
}
24212440
data.TunnelInterfaceLowBandwidthLink = types.BoolNull()
24222441
data.TunnelInterfaceLowBandwidthLinkVariable = types.StringNull()
@@ -2427,6 +2446,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
24272446
} else if t.String() == "global" {
24282447
data.TunnelInterfaceLowBandwidthLink = types.BoolValue(va.Bool())
24292448
}
2449+
data.TunnelInterface = types.BoolValue(true)
24302450
}
24312451
data.TunnelInterfaceTunnelTcpMss = types.Int64Null()
24322452
data.TunnelInterfaceTunnelTcpMssVariable = types.StringNull()
@@ -2437,6 +2457,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
24372457
} else if t.String() == "global" {
24382458
data.TunnelInterfaceTunnelTcpMss = types.Int64Value(va.Int())
24392459
}
2460+
data.TunnelInterface = types.BoolValue(true)
24402461
}
24412462
data.TunnelInterfaceClearDontFragment = types.BoolNull()
24422463
data.TunnelInterfaceClearDontFragmentVariable = types.StringNull()
@@ -2447,6 +2468,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
24472468
} else if t.String() == "global" {
24482469
data.TunnelInterfaceClearDontFragment = types.BoolValue(va.Bool())
24492470
}
2471+
data.TunnelInterface = types.BoolValue(true)
24502472
}
24512473
data.TunnelInterfaceCtsSgtPropagation = types.BoolNull()
24522474
data.TunnelInterfaceCtsSgtPropagationVariable = types.StringNull()
@@ -2457,6 +2479,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
24572479
} else if t.String() == "global" {
24582480
data.TunnelInterfaceCtsSgtPropagation = types.BoolValue(va.Bool())
24592481
}
2482+
data.TunnelInterface = types.BoolValue(true)
24602483
}
24612484
data.TunnelInterfaceNetworkBroadcast = types.BoolNull()
24622485
data.TunnelInterfaceNetworkBroadcastVariable = types.StringNull()
@@ -2467,6 +2490,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
24672490
} else if t.String() == "global" {
24682491
data.TunnelInterfaceNetworkBroadcast = types.BoolValue(va.Bool())
24692492
}
2493+
data.TunnelInterface = types.BoolValue(true)
24702494
}
24712495
data.TunnelInterfaceAllowAll = types.BoolNull()
24722496
data.TunnelInterfaceAllowAllVariable = types.StringNull()

internal/provider/resource_sdwan_policy_group.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,8 @@ func (r *PolicyGroupResource) Delete(ctx context.Context, req resource.DeleteReq
501501
// Section below is generated&owned by "gen/generator.go". //template:begin import
502502
func (r *PolicyGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
503503
resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp)
504+
505+
helpers.SetFlagImporting(ctx, true, resp.Private, &resp.Diagnostics)
504506
}
505507

506508
// End of section. //template:end import

0 commit comments

Comments
 (0)