Skip to content

Commit

Permalink
deprecate request_defintion.http_version instead of removing it
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzou committed Jul 3, 2024
1 parent 079814b commit 2c6f899
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions datadog/resource_datadog_synthetics_test_.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ func syntheticsTestRequest() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"http_version": {
Description: "HTTP version to use for an HTTP request in an API test or step.",
Deprecated: "Use `http_version` in the `options_list` field instead.",
Type: schema.TypeString,
Optional: true,
},
},
}
}
Expand Down
1 change: 1 addition & 0 deletions docs/resources/synthetics_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,7 @@ Optional:
- `dns_server` (String) DNS server to use for DNS tests (`subtype = "dns"`).
- `dns_server_port` (Number) DNS server port to use for DNS tests.
- `host` (String) Host name to perform the test with.
- `http_version` (String, Deprecated) HTTP version to use for an HTTP request in an API test or step. **Deprecated.** Use `http_version` in the `options_list` field instead.
- `message` (String) For UDP and websocket tests, message to send with the request.
- `method` (String) Either the HTTP method/verb to use or a gRPC method available on the service set in the `service` field. Required if `subtype` is `HTTP` or if `subtype` is `grpc` and `callType` is `unary`.
- `no_saving_response_body` (Boolean) Determines whether or not to save the response body.
Expand Down

0 comments on commit 2c6f899

Please sign in to comment.