Skip to content

Commit

Permalink
comment out unneeded HCL
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpitman committed Sep 5, 2024
1 parent d787492 commit 6d2b6b0
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 137 deletions.
50 changes: 25 additions & 25 deletions dynatrace/api/openpipeline/settings/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ func (d *Configuration) Schema() map[string]*schema.Schema {
Description: "The base path for custom ingest endpoints.",
Required: true,
},
"editable": {
Type: schema.TypeBool,
Description: "Indicates if the user is allowed to edit this object based on permissions and builtin property.",
Optional: true,
},
// "editable": {
// Type: schema.TypeBool,
// Description: "Indicates if the user is allowed to edit this object based on permissions and builtin property.",
// Optional: true,
// },
"endpoints": {
Type: schema.TypeList,
Description: "List of all ingest sources of the configuration.",
Expand All @@ -38,11 +38,11 @@ func (d *Configuration) Schema() map[string]*schema.Schema {
Elem: &schema.Resource{Schema: new(Endpoints).Schema()},
Required: true,
},
"kind": {
Type: schema.TypeString,
Description: "Identifier of the configuration.",
Required: true,
},
// "kind": {
// Type: schema.TypeString,
// Description: "Identifier of the configuration.",
// Required: true,
// },
"routing": {
Type: schema.TypeList,
Description: "Dynamic routing definition.",
Expand All @@ -59,11 +59,11 @@ func (d *Configuration) Schema() map[string]*schema.Schema {
Elem: &schema.Resource{Schema: new(Pipelines).Schema()},
Required: true,
},
"version": {
Type: schema.TypeString,
Description: "The current version of the configuration.",
Optional: true,
},
// "version": {
// Type: schema.TypeString,
// Description: "The current version of the configuration.",
// Optional: true,
// },
}
}

Expand All @@ -72,11 +72,11 @@ func (d *Configuration) MarshalHCL(properties hcl.Properties) error {
if err := properties.EncodeAll(map[string]any{
"custom_base_path": d.CustomBasePath,
"endpoints": d.Endpoints,
"editable": d.Editable,
"kind": d.Kind,
"version": d.Version,
"pipelines": d.Pipelines,
"routing": d.Routing,
//"editable": d.Editable,
//"kind": d.Kind,
//"version": d.Version,
"pipelines": d.Pipelines,
"routing": d.Routing,
}); err != nil {
return err
}
Expand All @@ -87,11 +87,11 @@ func (d *Configuration) UnmarshalHCL(decoder hcl.Decoder) error {
return decoder.DecodeAll(map[string]any{
"custom_base_path": &d.CustomBasePath,
"endpoints": &d.Endpoints,
"editable": &d.Editable,
"kind": &d.Kind,
"version": &d.Version,
"pipelines": &d.Pipelines,
"routing": &d.Routing,
//"editable": &d.Editable,
//"kind": &d.Kind,
//"version": &d.Version,
"pipelines": &d.Pipelines,
"routing": &d.Routing,
})
}

Expand Down
44 changes: 22 additions & 22 deletions dynatrace/api/openpipeline/settings/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ func (d *EndpointDefinition) Schema() map[string]*schema.Schema {
Description: "The base path of the ingest source.",
Required: true,
},
"builtin": {
Type: schema.TypeString,
Description: "Indicates if the object is provided by Dynatrace or customer defined.",
Optional: true,
},
// "builtin": {
// Type: schema.TypeString,
// Description: "Indicates if the object is provided by Dynatrace or customer defined.",
// Optional: true,
// },
"default_bucket": {
Type: schema.TypeString,
Description: "The default bucket assigned to records for the ingest source.",
Expand All @@ -71,11 +71,11 @@ func (d *EndpointDefinition) Schema() map[string]*schema.Schema {
Description: "Display name of the ingest source.",
Optional: true,
},
"editable": {
Type: schema.TypeBool,
Description: "Indicates if the user is allowed to edit this object based on permissions and builtin property.",
Optional: true,
},
// "editable": {
// Type: schema.TypeBool,
// Description: "Indicates if the user is allowed to edit this object based on permissions and builtin property.",
// Optional: true,
// },
"enabled": {
Type: schema.TypeBool,
Description: "Indicates if the object is active.",
Expand Down Expand Up @@ -107,26 +107,26 @@ func (d *EndpointDefinition) Schema() map[string]*schema.Schema {

func (d *EndpointDefinition) MarshalHCL(properties hcl.Properties) error {
return properties.EncodeAll(map[string]any{
"base_path": d.BasePath,
"builtin": d.Builtin,
"base_path": d.BasePath,
// "builtin": d.Builtin,
"default_bucket": d.DefaultBucket,
"display_name": d.DisplayName,
"editable": d.Editable,
"enabled": d.Enabled,
"segment": d.Segment,
"routing": d.Routing,
"processors": d.Processors,
// "editable": d.Editable,
"enabled": d.Enabled,
"segment": d.Segment,
"routing": d.Routing,
"processors": d.Processors,
})
}

func (d *EndpointDefinition) UnmarshalHCL(decoder hcl.Decoder) error {

return decoder.DecodeAll(map[string]any{
"base_path": &d.BasePath,
"builtin": &d.Builtin,
"default_bucket": &d.DefaultBucket,
"display_name": &d.DisplayName,
"editable": &d.Editable,
"base_path": &d.BasePath,
// "builtin": &d.Builtin,
"default_bucket": &d.DefaultBucket,
"display_name": &d.DisplayName,
// "editable": &d.Editable,
"enabled": d.Enabled,
"segment": d.Segment,
"routing": d.Routing,
Expand Down
36 changes: 18 additions & 18 deletions dynatrace/api/openpipeline/settings/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ type BasePipeline struct {

func (ep *BasePipeline) Schema() map[string]*schema.Schema {
return map[string]*schema.Schema{
"builtin": {
Type: schema.TypeBool,
Description: "todo.",
Required: true,
},
// "builtin": {
// Type: schema.TypeBool,
// Description: "todo.",
// Required: true,
// },
"data_extraction": {
Type: schema.TypeList,
Description: "todo",
Expand Down Expand Up @@ -190,11 +190,11 @@ func (ep *BasePipeline) Schema() map[string]*schema.Schema {
Description: "Display name of the pipeline.",
Optional: true,
},
"editable": {
Type: schema.TypeBool,
Description: "Indicates if the user is allowed to edit this object based on permissions and builtin property.",
Optional: true,
},
// "editable": {
// Type: schema.TypeBool,
// Description: "Indicates if the user is allowed to edit this object based on permissions and builtin property.",
// Optional: true,
// },
"enabled": {
Type: schema.TypeBool,
Description: "Indicates if the object is active.",
Expand All @@ -210,23 +210,23 @@ func (ep *BasePipeline) Schema() map[string]*schema.Schema {

func (ep *BasePipeline) MarshalHCL(properties hcl.Properties) error {
return properties.EncodeAll(map[string]any{
"builtin": ep.Builtin,
// "builtin": ep.Builtin,
"data_extraction": ep.DataExtraction,
"display_name": ep.DisplayName,
"editable": ep.Editable,
"enabled": ep.Enabled,
"id": ep.Id,
// "editable": ep.Editable,
"enabled": ep.Enabled,
"id": ep.Id,
})
}

func (ep *BasePipeline) UnmarshalHCL(decoder hcl.Decoder) error {
return decoder.DecodeAll(map[string]any{
"builtin": ep.Builtin,
// "builtin": ep.Builtin,
"data_extraction": ep.DataExtraction,
"display_name": ep.DisplayName,
"editable": ep.Editable,
"enabled": ep.Enabled,
"id": ep.Id,
// "editable": ep.Editable,
"enabled": ep.Enabled,
"id": ep.Id,
})
}

Expand Down
14 changes: 7 additions & 7 deletions dynatrace/api/openpipeline/settings/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ func (p *Processor) Schema() map[string]*schema.Schema {
Description: "Name or description of the processor",
Required: true,
},
"editable": {
Type: schema.TypeBool,
Description: "Indicates if the user is allowed to edit this object based on permissions and builtin property.",
Optional: true,
},
// "editable": {
// Type: schema.TypeBool,
// Description: "Indicates if the user is allowed to edit this object based on permissions and builtin property.",
// Optional: true,
// },
"enabled": {
Type: schema.TypeBool,
Description: "Indicates if the object is active.",
Expand All @@ -59,7 +59,7 @@ func (p *Processor) Schema() map[string]*schema.Schema {
func (p *Processor) MarshalHCL(properties hcl.Properties) error {
return properties.EncodeAll(map[string]any{
"description": p.Description,
"editable": p.Editable,
// "editable": p.Editable,
"enabled": p.Enabled,
"id": p.Id,
"matcher": p.Matcher,
Expand All @@ -70,7 +70,7 @@ func (p *Processor) MarshalHCL(properties hcl.Properties) error {
func (p *Processor) UnmarshalHCL(decoder hcl.Decoder) error {
return decoder.DecodeAll(map[string]any{
"description": &p.Description,
"editable": &p.Editable,
// "editable": &p.Editable,
"enabled": &p.Enabled,
"id": &p.Id,
"matcher": &p.Matcher,
Expand Down
46 changes: 23 additions & 23 deletions dynatrace/api/openpipeline/settings/routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ func (t *RoutingTable) Schema() map[string]*schema.Schema {
Elem: &schema.Resource{Schema: new(RoutingTableEntryTarget).Schema()},
Optional: true,
},
"editable": {
Type: schema.TypeBool,
Description: "todo",
Optional: true,
},
// "editable": {
// Type: schema.TypeBool,
// Description: "todo",
// Optional: true,
// },
"entries": {
Type: schema.TypeList,
Description: "todo",
Expand All @@ -47,16 +47,16 @@ func (t *RoutingTable) Schema() map[string]*schema.Schema {
func (t *RoutingTable) MarshalHCL(properties hcl.Properties) error {
return properties.EncodeAll(map[string]any{
"catch_all_pipeline": t.CatchAllPipeline,
"editable": t.Editable,
"entries": t.Entries,
// "editable": t.Editable,
"entries": t.Entries,
})
}

func (t *RoutingTable) UnmarshalHCL(decoder hcl.Decoder) error {
return decoder.DecodeAll(map[string]any{
"catch_all_pipeline": &t.CatchAllPipeline,
"editable": &t.Editable,
"entries": &t.Entries,
// "editable": &t.Editable,
"entries": &t.Entries,
})
}

Expand Down Expand Up @@ -185,16 +185,16 @@ type RoutingTableEntry struct {

func (e *RoutingTableEntry) Schema() map[string]*schema.Schema {
return map[string]*schema.Schema{
"builtin": {
Type: schema.TypeBool,
Description: "todo",
Required: true,
},
"editable": {
Type: schema.TypeBool,
Description: "todo",
Required: true,
},
// "builtin": {
// Type: schema.TypeBool,
// Description: "todo",
// Required: true,
// },
// "editable": {
// Type: schema.TypeBool,
// Description: "todo",
// Required: true,
// },
"enabled": {
Type: schema.TypeBool,
Description: "todo",
Expand All @@ -220,8 +220,8 @@ func (e *RoutingTableEntry) Schema() map[string]*schema.Schema {

func (t *RoutingTableEntry) MarshalHCL(properties hcl.Properties) error {
return properties.EncodeAll(map[string]any{
"builtin": t.Builtin,
"editable": t.Editable,
// "builtin": t.Builtin,
// "editable": t.Editable,
"enabled": t.Enabled,
"matcher": t.Matcher,
"note": t.Note,
Expand All @@ -231,8 +231,8 @@ func (t *RoutingTableEntry) MarshalHCL(properties hcl.Properties) error {

func (t *RoutingTableEntry) UnmarshalHCL(decoder hcl.Decoder) error {
return decoder.DecodeAll(map[string]any{
"builtin": t.Builtin,
"editable": t.Editable,
// "builtin": t.Builtin,
// "editable": t.Editable,
"enabled": t.Enabled,
"matcher": t.Matcher,
"note": t.Note,
Expand Down
Loading

0 comments on commit 6d2b6b0

Please sign in to comment.