From 014b3defa4c49d2e33ad4f97a1adca46aeceb590 Mon Sep 17 00:00:00 2001 From: Chris Marget Date: Wed, 25 Sep 2024 16:39:30 -0400 Subject: [PATCH] remove `type` attribute from `freeform.Link` struct --- apstra/freeform/link.go | 13 ------------- docs/data-sources/freeform_link.md | 3 --- docs/resources/freeform_link.md | 2 -- .../data-sources/apstra_freeform_link/example.tf | 2 -- 4 files changed, 20 deletions(-) diff --git a/apstra/freeform/link.go b/apstra/freeform/link.go index 3be0c3b0..dbb105b3 100644 --- a/apstra/freeform/link.go +++ b/apstra/freeform/link.go @@ -25,7 +25,6 @@ type Link struct { BlueprintId types.String `tfsdk:"blueprint_id"` Id types.String `tfsdk:"id"` Speed types.String `tfsdk:"speed"` - Type types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` AggregateLinkId types.String `tfsdk:"aggregate_link_id"` Endpoints types.Map `tfsdk:"endpoints"` @@ -65,12 +64,6 @@ func (o Link) DataSourceAttributes() map[string]dataSourceSchema.Attribute { "| 150G | 10m | 100g | 1g | 40G", Computed: true, }, - "type": dataSourceSchema.StringAttribute{ - MarkdownDescription: "`aggregate_link` | `ethernet`\n" + - "An 'ethernet' link is a normal front-panel interface. " + - "An 'aggregate_link' is a bonded interface which is typically used for LACP or Static LAGs.", - Computed: true, - }, "aggregate_link_id": dataSourceSchema.StringAttribute{ MarkdownDescription: "ID of Aggregate Link node to which this Link belongs, if any.", Computed: true, @@ -114,12 +107,6 @@ func (o Link) ResourceAttributes() map[string]resourceSchema.Attribute { MarkdownDescription: "Speed of the Freeform Link.", Computed: true, }, - "type": resourceSchema.StringAttribute{ - MarkdownDescription: "`aggregate_link` | `ethernet`\n" + - "An 'ethernet' link is a normal front-panel interface. " + - "An 'aggregate_link' is a bonded interface which is typically used for LACP or Static LAGs.", - Computed: true, - }, "aggregate_link_id": resourceSchema.StringAttribute{ MarkdownDescription: "This field always `null` in resource context. Ignore. " + "This information can be learned by invoking the complimentary data source.", diff --git a/docs/data-sources/freeform_link.md b/docs/data-sources/freeform_link.md index ce18b73b..3ea8e066 100644 --- a/docs/data-sources/freeform_link.md +++ b/docs/data-sources/freeform_link.md @@ -52,7 +52,6 @@ output "test_Link_out" { value = data.apstra_freeform_link.test } # "a", # "b", # ]) -# "type" = "ethernet" #} ``` @@ -74,8 +73,6 @@ output "test_Link_out" { value = data.apstra_freeform_link.test } - `endpoints` (Attributes Map) Endpoints of the Link, a Map keyed by System ID. (see [below for nested schema](#nestedatt--endpoints)) - `speed` (String) Speed of the Link 200G | 5G | 1G | 100G | 150g | 40g | 2500M | 25G | 25g | 10G | 50G | 800G | 10M | 100m | 2500m | 50g | 400g | 400G | 200g | 5g | 800g | 100M | 10g | 150G | 10m | 100g | 1g | 40G - `tags` (Set of String) Set of unique case-insensitive tag labels -- `type` (String) `aggregate_link` | `ethernet` -An 'ethernet' link is a normal front-panel interface. An 'aggregate_link' is a bonded interface which is typically used for LACP or Static LAGs. ### Nested Schema for `endpoints` diff --git a/docs/resources/freeform_link.md b/docs/resources/freeform_link.md index 1f25b37d..29b6c82d 100644 --- a/docs/resources/freeform_link.md +++ b/docs/resources/freeform_link.md @@ -53,8 +53,6 @@ resource "apstra_freeform_link" "test" { - `aggregate_link_id` (String) This field always `null` in resource context. Ignore. This information can be learned by invoking the complimentary data source. - `id` (String) ID of the Freeform Link. - `speed` (String) Speed of the Freeform Link. -- `type` (String) `aggregate_link` | `ethernet` -An 'ethernet' link is a normal front-panel interface. An 'aggregate_link' is a bonded interface which is typically used for LACP or Static LAGs. ### Nested Schema for `endpoints` diff --git a/examples/data-sources/apstra_freeform_link/example.tf b/examples/data-sources/apstra_freeform_link/example.tf index 49e2da15..63df03f1 100644 --- a/examples/data-sources/apstra_freeform_link/example.tf +++ b/examples/data-sources/apstra_freeform_link/example.tf @@ -34,6 +34,4 @@ output "test_Link_out" { value = data.apstra_freeform_link.test } # "a", # "b", # ]) -# "type" = "ethernet" #} -