Skip to content

Commit cda9f1b

Browse files
committed
goodbye type field
1 parent b98ebc4 commit cda9f1b

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

docs/resources/lineage.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ resource "marmot_asset" "target" {
3939
- `source` (String) Source asset
4040
- `target` (String) Target asset
4141

42-
### Optional
43-
44-
- `type` (String) Lineage type
45-
4642
### Read-Only
4743

4844
- `resource_id` (String) Resource ID

internal/provider/lineage_resource.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ type LineageResourceModel struct {
3838
Source types.String `tfsdk:"source"`
3939
Target types.String `tfsdk:"target"`
4040
ResourceID types.String `tfsdk:"resource_id"`
41-
Type types.String `tfsdk:"type"`
4241
}
4342

4443
func (r *LineageResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -65,11 +64,6 @@ func (r *LineageResource) Schema(ctx context.Context, req resource.SchemaRequest
6564
stringplanmodifier.UseStateForUnknown(),
6665
},
6766
},
68-
"type": schema.StringAttribute{
69-
MarkdownDescription: "Lineage type",
70-
Computed: true,
71-
Optional: true,
72-
},
7367
},
7468
}
7569
}
@@ -111,7 +105,6 @@ func (r *LineageResource) Create(ctx context.Context, req resource.CreateRequest
111105
}
112106

113107
data.ResourceID = types.StringValue(result.Payload.ID)
114-
data.Type = types.StringValue(result.Payload.Type)
115108

116109
resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
117110
}
@@ -133,7 +126,6 @@ func (r *LineageResource) Read(ctx context.Context, req resource.ReadRequest, re
133126

134127
data.Source = types.StringValue(result.Payload.Source)
135128
data.Target = types.StringValue(result.Payload.Target)
136-
data.Type = types.StringValue(result.Payload.Type)
137129

138130
resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
139131
}

0 commit comments

Comments
 (0)