From 435da3dc44d6ebf3f0c8732950dec9092a0677b1 Mon Sep 17 00:00:00 2001 From: AnshitAgrawal Date: Mon, 18 Aug 2025 10:13:16 +0000 Subject: [PATCH] Adding a new function to override the client args from terraform provider --- syntheticsclientv2/synthetics.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/syntheticsclientv2/synthetics.go b/syntheticsclientv2/synthetics.go index 00f7e7d..57e8722 100644 --- a/syntheticsclientv2/synthetics.go +++ b/syntheticsclientv2/synthetics.go @@ -121,6 +121,13 @@ func (c Client) makePublicAPICall(method string, endpoint string, requestBody io return &details, nil } +func NewClientArgs(timeout int, baseUrl string) ClientArgs { + return ClientArgs{ + timeoutSeconds: timeout, + publicBaseUrl: baseUrl, + } +} + func NewClient(apiKey string, realm string) *Client { args := ClientArgs{timeoutSeconds: 30} return NewConfigurableClient(apiKey, realm, args)