diff --git a/specification/cognitiveservices/data-plane/AnomalyDetector/readme.go.md b/specification/cognitiveservices/data-plane/AnomalyDetector/readme.go.md index aa12b8411edd..1bc1a9c13a10 100644 --- a/specification/cognitiveservices/data-plane/AnomalyDetector/readme.go.md +++ b/specification/cognitiveservices/data-plane/AnomalyDetector/readme.go.md @@ -7,6 +7,15 @@ go: license-header: MICROSOFT_APACHE_NO_VERSION namespace: anomalydetector clear-output-folder: true + +directive: + # Replace the default client constructor with the one that enables TLS renegotiation. + - from: client.go + where: $ + transform: >- + return $. + replace( /"context"/g, "\"context\"\n\"crypto/tls\"" ). + replace( /autorest\.NewClientWithUserAgent\(UserAgent\(\)\)/g, "autorest.NewClientWithOptions(autorest.ClientOptions{UserAgent: UserAgent(), Renegotiation: tls.RenegotiateFreelyAsClient})" ) ``` ### Go multi-api @@ -23,4 +32,4 @@ Please also specify `--go-sdk-folder=