Skip to content

Commit

Permalink
Rename attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
seconroy committed Nov 21, 2024
1 parent e14036f commit ca4df89
Show file tree
Hide file tree
Showing 18 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ data "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv4_feature" "ex

### Read-Only

- `transport_routing_ospf_feature_id` (String) Transport Routing OSPFv4 IPv4 Feature ID
- `transport_routing_ospfv3_ipv4_feature_id` (String) Transport Routing OSPFv4 IPv4 Feature ID
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ data "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv6_feature" "ex

### Read-Only

- `transport_routing_ospf_feature_id` (String) Transport Routing OSPFv4 IPv6 Feature ID
- `transport_routing_ospfv3_ipv6_feature_id` (String) Transport Routing OSPFv4 IPv6 Feature ID
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ This resource can manage a Transport WAN VPN Feature Associate Routing OSPFv3 IP

```terraform
resource "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv4_feature" "example" {
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
transport_wan_vpn_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
transport_routing_ospf_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
transport_wan_vpn_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
transport_routing_ospfv3_ipv4_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
}
```

Expand All @@ -28,7 +28,7 @@ resource "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv4_feature"
### Required

- `feature_profile_id` (String) Feature Profile ID
- `transport_routing_ospf_feature_id` (String) Transport Routing OSPFv4 IPv4 Feature ID
- `transport_routing_ospfv3_ipv4_feature_id` (String) Transport Routing OSPFv4 IPv4 Feature ID
- `transport_wan_vpn_feature_id` (String) Transport WAN VPN Feature ID

### Read-Only
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ This resource can manage a Transport WAN VPN Feature Associate Routing OSPFv3 IP

```terraform
resource "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv6_feature" "example" {
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
transport_wan_vpn_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
transport_routing_ospf_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
transport_wan_vpn_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
transport_routing_ospfv3_ipv6_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
}
```

Expand All @@ -28,7 +28,7 @@ resource "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv6_feature"
### Required

- `feature_profile_id` (String) Feature Profile ID
- `transport_routing_ospf_feature_id` (String) Transport Routing OSPFv4 IPv6 Feature ID
- `transport_routing_ospfv3_ipv6_feature_id` (String) Transport Routing OSPFv4 IPv6 Feature ID
- `transport_wan_vpn_feature_id` (String) Transport WAN VPN Feature ID

### Read-Only
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv4_feature" "example" {
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
transport_wan_vpn_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
transport_routing_ospf_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
transport_wan_vpn_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
transport_routing_ospfv3_ipv4_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv6_feature" "example" {
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
transport_wan_vpn_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
transport_routing_ospf_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
transport_wan_vpn_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
transport_routing_ospfv3_ipv6_feature_id = "140331f6-5418-4755-a059-13c77eb96037"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ attributes:
example: 140331f6-5418-4755-a059-13c77eb96037
test_value: sdwan_transport_wan_vpn_feature.test.id
- model_name: parcelId
tf_name: transport_routing_ospf_feature_id
tf_name: transport_routing_ospfv3_ipv4_feature_id
type: String
mandatory: true
description: Transport Routing OSPFv4 IPv4 Feature ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ attributes:
example: 140331f6-5418-4755-a059-13c77eb96037
test_value: sdwan_transport_wan_vpn_feature.test.id
- model_name: parcelId
tf_name: transport_routing_ospf_feature_id
tf_name: transport_routing_ospfv3_ipv6_feature_id
type: String
mandatory: true
description: Transport Routing OSPFv4 IPv6 Feature ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (d *TransportWANVPNFeatureAssociateRoutingOSPFv3IPv4FeatureDataSource) Sche
MarkdownDescription: "Transport WAN VPN Feature ID",
Required: true,
},
"transport_routing_ospf_feature_id": schema.StringAttribute{
"transport_routing_ospfv3_ipv4_feature_id": schema.StringAttribute{
MarkdownDescription: "Transport Routing OSPFv4 IPv4 Feature ID",
Computed: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func testAccDataSourceSdwanTransportWANVPNFeatureAssociateRoutingOSPFv3IPv4Featu
config += `resource "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv4_feature" "test" {` + "\n"
config += ` feature_profile_id = sdwan_transport_feature_profile.test.id` + "\n"
config += ` transport_wan_vpn_feature_id = sdwan_transport_wan_vpn_feature.test.id` + "\n"
config += ` transport_routing_ospf_feature_id = sdwan_transport_routing_ospfv3_ipv4_feature.test.id` + "\n"
config += ` transport_routing_ospfv3_ipv4_feature_id = sdwan_transport_routing_ospfv3_ipv4_feature.test.id` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (d *TransportWANVPNFeatureAssociateRoutingOSPFv3IPv6FeatureDataSource) Sche
MarkdownDescription: "Transport WAN VPN Feature ID",
Required: true,
},
"transport_routing_ospf_feature_id": schema.StringAttribute{
"transport_routing_ospfv3_ipv6_feature_id": schema.StringAttribute{
MarkdownDescription: "Transport Routing OSPFv4 IPv6 Feature ID",
Computed: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func testAccDataSourceSdwanTransportWANVPNFeatureAssociateRoutingOSPFv3IPv6Featu
config += `resource "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv6_feature" "test" {` + "\n"
config += ` feature_profile_id = sdwan_transport_feature_profile.test.id` + "\n"
config += ` transport_wan_vpn_feature_id = sdwan_transport_wan_vpn_feature.test.id` + "\n"
config += ` transport_routing_ospf_feature_id = sdwan_transport_routing_ospfv3_ipv6_feature.test.id` + "\n"
config += ` transport_routing_ospfv3_ipv6_feature_id = sdwan_transport_routing_ospfv3_ipv6_feature.test.id` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import (

// Section below is generated&owned by "gen/generator.go". //template:begin types
type TransportWANVPNFeatureAssociateRoutingOSPFv3IPv4Feature struct {
Id types.String `tfsdk:"id"`
FeatureProfileId types.String `tfsdk:"feature_profile_id"`
TransportWanVpnFeatureId types.String `tfsdk:"transport_wan_vpn_feature_id"`
TransportRoutingOspfFeatureId types.String `tfsdk:"transport_routing_ospf_feature_id"`
Id types.String `tfsdk:"id"`
FeatureProfileId types.String `tfsdk:"feature_profile_id"`
TransportWanVpnFeatureId types.String `tfsdk:"transport_wan_vpn_feature_id"`
TransportRoutingOspfv3Ipv4FeatureId types.String `tfsdk:"transport_routing_ospfv3_ipv4_feature_id"`
}

// End of section. //template:end types
Expand All @@ -50,8 +50,8 @@ func (data TransportWANVPNFeatureAssociateRoutingOSPFv3IPv4Feature) getPath() st
// Section below is generated&owned by "gen/generator.go". //template:begin toBody
func (data TransportWANVPNFeatureAssociateRoutingOSPFv3IPv4Feature) toBody(ctx context.Context) string {
body := ""
if !data.TransportRoutingOspfFeatureId.IsNull() {
body, _ = sjson.Set(body, "parcelId", data.TransportRoutingOspfFeatureId.ValueString())
if !data.TransportRoutingOspfv3Ipv4FeatureId.IsNull() {
body, _ = sjson.Set(body, "parcelId", data.TransportRoutingOspfv3Ipv4FeatureId.ValueString())
}
return body
}
Expand All @@ -61,9 +61,9 @@ func (data TransportWANVPNFeatureAssociateRoutingOSPFv3IPv4Feature) toBody(ctx c
// Section below is generated&owned by "gen/generator.go". //template:begin fromBody
func (data *TransportWANVPNFeatureAssociateRoutingOSPFv3IPv4Feature) fromBody(ctx context.Context, res gjson.Result) {
if value := res.Get("parcelId"); value.Exists() {
data.TransportRoutingOspfFeatureId = types.StringValue(value.String())
data.TransportRoutingOspfv3Ipv4FeatureId = types.StringValue(value.String())
} else {
data.TransportRoutingOspfFeatureId = types.StringNull()
data.TransportRoutingOspfv3Ipv4FeatureId = types.StringNull()
}
}

Expand All @@ -78,7 +78,7 @@ func (data *TransportWANVPNFeatureAssociateRoutingOSPFv3IPv4Feature) hasChanges(
if !data.TransportWanVpnFeatureId.Equal(state.TransportWanVpnFeatureId) {
hasChanges = true
}
if !data.TransportRoutingOspfFeatureId.Equal(state.TransportRoutingOspfFeatureId) {
if !data.TransportRoutingOspfv3Ipv4FeatureId.Equal(state.TransportRoutingOspfv3Ipv4FeatureId) {
hasChanges = true
}
return hasChanges
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import (

// Section below is generated&owned by "gen/generator.go". //template:begin types
type TransportWANVPNFeatureAssociateRoutingOSPFv3IPv6Feature struct {
Id types.String `tfsdk:"id"`
FeatureProfileId types.String `tfsdk:"feature_profile_id"`
TransportWanVpnFeatureId types.String `tfsdk:"transport_wan_vpn_feature_id"`
TransportRoutingOspfFeatureId types.String `tfsdk:"transport_routing_ospf_feature_id"`
Id types.String `tfsdk:"id"`
FeatureProfileId types.String `tfsdk:"feature_profile_id"`
TransportWanVpnFeatureId types.String `tfsdk:"transport_wan_vpn_feature_id"`
TransportRoutingOspfv3Ipv6FeatureId types.String `tfsdk:"transport_routing_ospfv3_ipv6_feature_id"`
}

// End of section. //template:end types
Expand All @@ -50,8 +50,8 @@ func (data TransportWANVPNFeatureAssociateRoutingOSPFv3IPv6Feature) getPath() st
// Section below is generated&owned by "gen/generator.go". //template:begin toBody
func (data TransportWANVPNFeatureAssociateRoutingOSPFv3IPv6Feature) toBody(ctx context.Context) string {
body := ""
if !data.TransportRoutingOspfFeatureId.IsNull() {
body, _ = sjson.Set(body, "parcelId", data.TransportRoutingOspfFeatureId.ValueString())
if !data.TransportRoutingOspfv3Ipv6FeatureId.IsNull() {
body, _ = sjson.Set(body, "parcelId", data.TransportRoutingOspfv3Ipv6FeatureId.ValueString())
}
return body
}
Expand All @@ -61,9 +61,9 @@ func (data TransportWANVPNFeatureAssociateRoutingOSPFv3IPv6Feature) toBody(ctx c
// Section below is generated&owned by "gen/generator.go". //template:begin fromBody
func (data *TransportWANVPNFeatureAssociateRoutingOSPFv3IPv6Feature) fromBody(ctx context.Context, res gjson.Result) {
if value := res.Get("parcelId"); value.Exists() {
data.TransportRoutingOspfFeatureId = types.StringValue(value.String())
data.TransportRoutingOspfv3Ipv6FeatureId = types.StringValue(value.String())
} else {
data.TransportRoutingOspfFeatureId = types.StringNull()
data.TransportRoutingOspfv3Ipv6FeatureId = types.StringNull()
}
}

Expand All @@ -78,7 +78,7 @@ func (data *TransportWANVPNFeatureAssociateRoutingOSPFv3IPv6Feature) hasChanges(
if !data.TransportWanVpnFeatureId.Equal(state.TransportWanVpnFeatureId) {
hasChanges = true
}
if !data.TransportRoutingOspfFeatureId.Equal(state.TransportRoutingOspfFeatureId) {
if !data.TransportRoutingOspfv3Ipv6FeatureId.Equal(state.TransportRoutingOspfv3Ipv6FeatureId) {
hasChanges = true
}
return hasChanges
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (r *TransportWANVPNFeatureAssociateRoutingOSPFv3IPv4FeatureResource) Schema
MarkdownDescription: helpers.NewAttributeDescription("Transport WAN VPN Feature ID").String,
Required: true,
},
"transport_routing_ospf_feature_id": schema.StringAttribute{
"transport_routing_ospfv3_ipv4_feature_id": schema.StringAttribute{
MarkdownDescription: helpers.NewAttributeDescription("Transport Routing OSPFv4 IPv4 Feature ID").String,
Required: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func testAccSdwanTransportWANVPNFeatureAssociateRoutingOSPFv3IPv4FeatureConfig_a
config := `resource "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv4_feature" "test" {` + "\n"
config += ` feature_profile_id = sdwan_transport_feature_profile.test.id` + "\n"
config += ` transport_wan_vpn_feature_id = sdwan_transport_wan_vpn_feature.test.id` + "\n"
config += ` transport_routing_ospf_feature_id = sdwan_transport_routing_ospfv3_ipv4_feature.test.id` + "\n"
config += ` transport_routing_ospfv3_ipv4_feature_id = sdwan_transport_routing_ospfv3_ipv4_feature.test.id` + "\n"
config += `}` + "\n"
return config
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (r *TransportWANVPNFeatureAssociateRoutingOSPFv3IPv6FeatureResource) Schema
MarkdownDescription: helpers.NewAttributeDescription("Transport WAN VPN Feature ID").String,
Required: true,
},
"transport_routing_ospf_feature_id": schema.StringAttribute{
"transport_routing_ospfv3_ipv6_feature_id": schema.StringAttribute{
MarkdownDescription: helpers.NewAttributeDescription("Transport Routing OSPFv4 IPv6 Feature ID").String,
Required: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func testAccSdwanTransportWANVPNFeatureAssociateRoutingOSPFv3IPv6FeatureConfig_a
config := `resource "sdwan_transport_wan_vpn_feature_associate_routing_ospfv3_ipv6_feature" "test" {` + "\n"
config += ` feature_profile_id = sdwan_transport_feature_profile.test.id` + "\n"
config += ` transport_wan_vpn_feature_id = sdwan_transport_wan_vpn_feature.test.id` + "\n"
config += ` transport_routing_ospf_feature_id = sdwan_transport_routing_ospfv3_ipv6_feature.test.id` + "\n"
config += ` transport_routing_ospfv3_ipv6_feature_id = sdwan_transport_routing_ospfv3_ipv6_feature.test.id` + "\n"
config += `}` + "\n"
return config
}
Expand Down

0 comments on commit ca4df89

Please sign in to comment.