Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
golang 1.21.8
golang 1.23.6
2 changes: 0 additions & 2 deletions ovh/resource_dbaas_logs_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,11 @@ func resourceDbaasLogsInputSchema() map[string]*schema.Schema {
Description: "IP blocks",
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
Computed: true,
},
"exposed_port": {
Type: schema.TypeString,
Description: "Port",
Optional: true,
Computed: true,
},
"nb_instance": {
Type: schema.TypeInt,
Expand Down
12 changes: 0 additions & 12 deletions ovh/resource_dbaas_logs_output_graylog_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func resourceDbaasLogsOutputGraylogStream() *schema.Resource {
"retention_id": {
Type: schema.TypeString,
Description: "Retention ID",
Computed: true,
Optional: true,
ForceNew: true,
},
Expand All @@ -59,7 +58,6 @@ func resourceDbaasLogsOutputGraylogStream() *schema.Resource {
Type: schema.TypeString,
Description: "Cold storage compression method",
Optional: true,
Computed: true,
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
err := helpers.ValidateStringEnum(strings.ToUpper(v.(string)), []string{
"LZMA",
Expand All @@ -77,7 +75,6 @@ func resourceDbaasLogsOutputGraylogStream() *schema.Resource {
Type: schema.TypeString,
Description: "ColdStorage content",
Optional: true,
Computed: true,
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
err := helpers.ValidateStringEnum(strings.ToUpper(v.(string)), []string{
"ALL",
Expand All @@ -93,25 +90,21 @@ func resourceDbaasLogsOutputGraylogStream() *schema.Resource {
"cold_storage_enabled": {
Type: schema.TypeBool,
Description: "Is Cold storage enabled?",
Computed: true,
Optional: true,
},
"cold_storage_notify_enabled": {
Type: schema.TypeBool,
Description: "Notify on new Cold storage archive",
Computed: true,
Optional: true,
},
"cold_storage_retention": {
Type: schema.TypeInt,
Description: "Cold storage retention in year",
Computed: true,
Optional: true,
},
"cold_storage_target": {
Type: schema.TypeString,
Description: "ColdStorage destination",
Computed: true,
Optional: true,
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
err := helpers.ValidateStringEnum(strings.ToUpper(v.(string)), []string{
Expand All @@ -127,31 +120,26 @@ func resourceDbaasLogsOutputGraylogStream() *schema.Resource {
"indexing_enabled": {
Type: schema.TypeBool,
Description: "Enable ES indexing",
Computed: true,
Optional: true,
},
"indexing_max_size": {
Type: schema.TypeInt,
Description: "Maximum indexing size (in GB)",
Computed: true,
Optional: true,
},
"indexing_notify_enabled": {
Type: schema.TypeBool,
Description: "If set, notify when size is near 80, 90 or 100 % of the maximum configured setting",
Computed: true,
Optional: true,
},
"pause_indexing_on_max_size": {
Type: schema.TypeBool,
Description: "If set, pause indexing when maximum size is reach",
Computed: true,
Optional: true,
},
"web_socket_enabled": {
Type: schema.TypeBool,
Description: "Enable Websocket",
Computed: true,
Optional: true,
},

Expand Down
6 changes: 3 additions & 3 deletions ovh/resource_dbaas_logs_output_opensearch_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ func resourceDbaasLogsOutputOpensearchIndex() *schema.Resource {
Description: "Index suffix",
Required: true,
},

// computed
"alert_notify_enabled": {
Type: schema.TypeBool,
Computed: true,
Optional: true,
Description: "If set, notify when size is near 80, 90 or 100 % of its maximum capacity",
},

// computed
"created_at": {
Type: schema.TypeString,
Computed: true,
Expand Down
2 changes: 1 addition & 1 deletion ovh/resource_dbaas_logs_token_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.