Skip to content

Commit

Permalink
fix: Omit empty values from the API request payload except the servic…
Browse files Browse the repository at this point in the history
…e `monitoring` attribute
  • Loading branch information
FabianDaniel00 committed Sep 9, 2024
1 parent 8a6b8b3 commit ea4120d
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 122 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes of the StatusPal Terraform provider will be documented in th
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.9] - 2024-09-09

### Fixed

- Omit empty values from the API request payload except the service `monitoring` attribute.

## [0.2.8] - 2024-07-19

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Read-Only:
**Configure this field only if the `monitoring` is set to `webhook`.**
Webhook Monitoring types:
- `status-cake` - StatusCake monitoring service.
- `internal` - UptimeRobot monitoring service.
- `uptime-robot` - UptimeRobot monitoring service.
- `3rd_party` - Custom JSONPath.

<a id="nestedatt--services--translations"></a>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ terraform {
required_providers {
statuspal = {
source = "statuspal/statuspal"
version = "0.2.8"
version = "0.2.9"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Optional:
**Configure this field only if the `monitoring` is set to `webhook`.**
Webhook Monitoring types:
- `status-cake` - StatusCake monitoring service.
- `internal` - UptimeRobot monitoring service.
- `uptime-robot` - UptimeRobot monitoring service.
- `3rd_party` - Custom JSONPath.

Read-Only:
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
statuspal = {
source = "statuspal/statuspal"
version = "0.2.8"
version = "0.2.9"
}
}
}
Expand Down
232 changes: 116 additions & 116 deletions internal/client/models.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion internal/provider/service_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (r *serviceResource) Schema(_ context.Context, _ resource.SchemaRequest, re
" **Configure this field only if the `monitoring` is set to `webhook`.**\n" +
" Webhook Monitoring types:\n" +
" - `status-cake` - StatusCake monitoring service.\n" +
" - `internal` - UptimeRobot monitoring service.\n" +
" - `uptime-robot` - UptimeRobot monitoring service.\n" +
" - `3rd_party` - Custom JSONPath.",
Optional: true,
Computed: true,
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/services_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (d *servicesDataSource) Schema(_ context.Context, _ datasource.SchemaReques
" **Configure this field only if the `monitoring` is set to `webhook`.**\n" +
" Webhook Monitoring types:\n" +
" - `status-cake` - StatusCake monitoring service.\n" +
" - `internal` - UptimeRobot monitoring service.\n" +
" - `uptime-robot` - UptimeRobot monitoring service.\n" +
" - `3rd_party` - Custom JSONPath.",
Computed: true,
},
Expand Down

0 comments on commit ea4120d

Please sign in to comment.