Skip to content

Commit c55d4c0

Browse files
fix: Omit empty values from the API request payload except the service monitoring attribute
1 parent bc2216d commit c55d4c0

File tree

8 files changed

+128
-122
lines changed

8 files changed

+128
-122
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes of the StatusPal Terraform provider will be documented in th
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.2.9] - 2024-09-09
9+
10+
### Fixed
11+
12+
- Omit empty values from the API request payload except the service `monitoring` attribute.
13+
814
## [0.2.8] - 2024-07-19
915

1016
### Fixed

docs/data-sources/services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Read-Only:
9999
**Configure this field only if the `monitoring` is set to `webhook`.**
100100
Webhook Monitoring types:
101101
- `status-cake` - StatusCake monitoring service.
102-
- `internal` - UptimeRobot monitoring service.
102+
- `uptime-robot` - UptimeRobot monitoring service.
103103
- `3rd_party` - Custom JSONPath.
104104

105105
<a id="nestedatt--services--translations"></a>

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ terraform {
1818
required_providers {
1919
statuspal = {
2020
source = "statuspal/statuspal"
21-
version = "0.2.8"
21+
version = "0.2.9"
2222
}
2323
}
2424
}

docs/resources/service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Optional:
9090
**Configure this field only if the `monitoring` is set to `webhook`.**
9191
Webhook Monitoring types:
9292
- `status-cake` - StatusCake monitoring service.
93-
- `internal` - UptimeRobot monitoring service.
93+
- `uptime-robot` - UptimeRobot monitoring service.
9494
- `3rd_party` - Custom JSONPath.
9595

9696
Read-Only:

examples/provider/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
required_providers {
44
statuspal = {
55
source = "statuspal/statuspal"
6-
version = "0.2.8"
6+
version = "0.2.9"
77
}
88
}
99
}

internal/client/models.go

Lines changed: 116 additions & 116 deletions
Large diffs are not rendered by default.

internal/provider/service_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (r *serviceResource) Schema(_ context.Context, _ resource.SchemaRequest, re
163163
" **Configure this field only if the `monitoring` is set to `webhook`.**\n" +
164164
" Webhook Monitoring types:\n" +
165165
" - `status-cake` - StatusCake monitoring service.\n" +
166-
" - `internal` - UptimeRobot monitoring service.\n" +
166+
" - `uptime-robot` - UptimeRobot monitoring service.\n" +
167167
" - `3rd_party` - Custom JSONPath.",
168168
Optional: true,
169169
Computed: true,

internal/provider/services_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (d *servicesDataSource) Schema(_ context.Context, _ datasource.SchemaReques
141141
" **Configure this field only if the `monitoring` is set to `webhook`.**\n" +
142142
" Webhook Monitoring types:\n" +
143143
" - `status-cake` - StatusCake monitoring service.\n" +
144-
" - `internal` - UptimeRobot monitoring service.\n" +
144+
" - `uptime-robot` - UptimeRobot monitoring service.\n" +
145145
" - `3rd_party` - Custom JSONPath.",
146146
Computed: true,
147147
},

0 commit comments

Comments
 (0)