Skip to content

Commit c982012

Browse files
committed
feat: correctly set ForceNew for dynatrace_openpipeline_v2_* resources
Some fields of `dynatrace_openpipeline_v2_*` resources can't be changed. Like custom_id, group_role, and routing of pipelines and path_segment of ingest sources. Therefore, adding the `ForceNew: true` option there.
1 parent a0712b8 commit c982012

File tree

26 files changed

+52
-0
lines changed

26 files changed

+52
-0
lines changed

dynatrace/api/builtin/openpipeline/bizevents/ingestsources/settings/settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
6565
"path_segment": {
6666
Type: schema.TypeString,
6767
Description: "Endpoint segment",
68+
ForceNew: true,
6869
Optional: true, // precondition
6970
},
7071
"processing": {

dynatrace/api/builtin/openpipeline/bizevents/pipelines/settings/settings.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
5353
"custom_id": {
5454
Type: schema.TypeString,
5555
Description: "Custom pipeline id",
56+
ForceNew: true,
5657
Required: true,
5758
},
5859
"data_extraction": {
@@ -79,6 +80,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
7980
"group_role": {
8081
Type: schema.TypeString,
8182
Description: "Group role. Possible values: `compositionPipeline`, `memberPipeline`",
83+
ForceNew: true,
8284
Optional: true, // nullable
8385
},
8486
"metadata_list": {
@@ -116,6 +118,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
116118
"routing": {
117119
Type: schema.TypeString,
118120
Description: "Routing. Possible values: `notRoutable`, `routable`",
121+
ForceNew: true,
119122
Optional: true, // nullable
120123
},
121124
"security_context": {

dynatrace/api/builtin/openpipeline/davis/events/ingestsources/settings/settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
6565
"path_segment": {
6666
Type: schema.TypeString,
6767
Description: "Endpoint segment",
68+
ForceNew: true,
6869
Optional: true, // precondition
6970
},
7071
"processing": {

dynatrace/api/builtin/openpipeline/davis/events/pipelines/settings/settings.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
5353
"custom_id": {
5454
Type: schema.TypeString,
5555
Description: "Custom pipeline id",
56+
ForceNew: true,
5657
Required: true,
5758
},
5859
"data_extraction": {
@@ -79,6 +80,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
7980
"group_role": {
8081
Type: schema.TypeString,
8182
Description: "Group role. Possible values: `compositionPipeline`, `memberPipeline`",
83+
ForceNew: true,
8284
Optional: true, // nullable
8385
},
8486
"metadata_list": {
@@ -116,6 +118,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
116118
"routing": {
117119
Type: schema.TypeString,
118120
Description: "Routing. Possible values: `notRoutable`, `routable`",
121+
ForceNew: true,
119122
Optional: true, // nullable
120123
},
121124
"security_context": {

dynatrace/api/builtin/openpipeline/davis/problems/ingestsources/settings/settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
6565
"path_segment": {
6666
Type: schema.TypeString,
6767
Description: "Endpoint segment",
68+
ForceNew: true,
6869
Optional: true, // precondition
6970
},
7071
"processing": {

dynatrace/api/builtin/openpipeline/davis/problems/pipelines/settings/settings.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
5353
"custom_id": {
5454
Type: schema.TypeString,
5555
Description: "Custom pipeline id",
56+
ForceNew: true,
5657
Required: true,
5758
},
5859
"data_extraction": {
@@ -79,6 +80,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
7980
"group_role": {
8081
Type: schema.TypeString,
8182
Description: "Group role. Possible values: `compositionPipeline`, `memberPipeline`",
83+
ForceNew: true,
8284
Optional: true, // nullable
8385
},
8486
"metadata_list": {
@@ -116,6 +118,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
116118
"routing": {
117119
Type: schema.TypeString,
118120
Description: "Routing. Possible values: `notRoutable`, `routable`",
121+
ForceNew: true,
119122
Optional: true, // nullable
120123
},
121124
"security_context": {

dynatrace/api/builtin/openpipeline/events/ingestsources/settings/settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
6565
"path_segment": {
6666
Type: schema.TypeString,
6767
Description: "Endpoint segment",
68+
ForceNew: true,
6869
Optional: true, // precondition
6970
},
7071
"processing": {

dynatrace/api/builtin/openpipeline/events/pipelines/settings/settings.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
5353
"custom_id": {
5454
Type: schema.TypeString,
5555
Description: "Custom pipeline id",
56+
ForceNew: true,
5657
Required: true,
5758
},
5859
"data_extraction": {
@@ -79,6 +80,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
7980
"group_role": {
8081
Type: schema.TypeString,
8182
Description: "Group role. Possible values: `compositionPipeline`, `memberPipeline`",
83+
ForceNew: true,
8284
Optional: true, // nullable
8385
},
8486
"metadata_list": {
@@ -116,6 +118,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
116118
"routing": {
117119
Type: schema.TypeString,
118120
Description: "Routing. Possible values: `notRoutable`, `routable`",
121+
ForceNew: true,
119122
Optional: true, // nullable
120123
},
121124
"security_context": {

dynatrace/api/builtin/openpipeline/events/sdlc/ingestsources/settings/settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
6565
"path_segment": {
6666
Type: schema.TypeString,
6767
Description: "Endpoint segment",
68+
ForceNew: true,
6869
Optional: true, // precondition
6970
},
7071
"processing": {

dynatrace/api/builtin/openpipeline/events/sdlc/pipelines/settings/settings.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
5353
"custom_id": {
5454
Type: schema.TypeString,
5555
Description: "Custom pipeline id",
56+
ForceNew: true,
5657
Required: true,
5758
},
5859
"data_extraction": {
@@ -79,6 +80,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
7980
"group_role": {
8081
Type: schema.TypeString,
8182
Description: "Group role. Possible values: `compositionPipeline`, `memberPipeline`",
83+
ForceNew: true,
8284
Optional: true, // nullable
8385
},
8486
"metadata_list": {
@@ -116,6 +118,7 @@ func (me *Settings) Schema() map[string]*schema.Schema {
116118
"routing": {
117119
Type: schema.TypeString,
118120
Description: "Routing. Possible values: `notRoutable`, `routable`",
121+
ForceNew: true,
119122
Optional: true, // nullable
120123
},
121124
"security_context": {

0 commit comments

Comments
 (0)