|
|
@@ -40,15 +40,12 @@ fields("put") ->
|
|
|
fields("get") ->
|
|
|
emqx_bridge_schema:status_fields() ++ fields("post");
|
|
|
fields("creation_opts") ->
|
|
|
- [
|
|
|
- hidden_request_timeout()
|
|
|
- | lists:filter(
|
|
|
- fun({K, _V}) ->
|
|
|
- not lists:member(K, unsupported_opts())
|
|
|
- end,
|
|
|
- emqx_resource_schema:fields("creation_opts")
|
|
|
- )
|
|
|
- ].
|
|
|
+ lists:filter(
|
|
|
+ fun({K, _V}) ->
|
|
|
+ not lists:member(K, unsupported_opts())
|
|
|
+ end,
|
|
|
+ emqx_resource_schema:fields("creation_opts")
|
|
|
+ ).
|
|
|
|
|
|
desc("config") ->
|
|
|
?DESC("desc_config");
|
|
|
@@ -144,6 +141,7 @@ request_config() ->
|
|
|
emqx_schema:duration_ms(),
|
|
|
#{
|
|
|
default => <<"15s">>,
|
|
|
+ deprecated => {since, "v5.0.26"},
|
|
|
desc => ?DESC("config_request_timeout")
|
|
|
}
|
|
|
)}
|
|
|
@@ -166,8 +164,7 @@ unsupported_opts() ->
|
|
|
[
|
|
|
enable_batch,
|
|
|
batch_size,
|
|
|
- batch_time,
|
|
|
- request_timeout
|
|
|
+ batch_time
|
|
|
].
|
|
|
|
|
|
%%======================================================================================
|
|
|
@@ -194,13 +191,3 @@ name_field() ->
|
|
|
|
|
|
method() ->
|
|
|
enum([post, put, get, delete]).
|
|
|
-
|
|
|
-hidden_request_timeout() ->
|
|
|
- {request_timeout,
|
|
|
- mk(
|
|
|
- hoconsc:union([infinity, emqx_schema:duration_ms()]),
|
|
|
- #{
|
|
|
- required => false,
|
|
|
- importance => ?IMPORTANCE_HIDDEN
|
|
|
- }
|
|
|
- )}.
|