Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/libs/DeepL/Generated/DeepL.AdminApiClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ public AdminApiClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -246,7 +249,7 @@ private void SelectServer(global::DeepL.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/DeepL/Generated/DeepL.DeepLClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ public DeepLClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -382,7 +385,7 @@ private void SelectServer(global::DeepL.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/DeepL/Generated/DeepL.ManageGlossariesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ public ManageGlossariesClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -252,7 +255,7 @@ private void SelectServer(global::DeepL.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ public ManageMultilingualGlossariesClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -261,7 +264,7 @@ private void SelectServer(global::DeepL.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/DeepL/Generated/DeepL.MetaInformationClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ public MetaInformationClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -246,7 +249,7 @@ private void SelectServer(global::DeepL.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/DeepL/Generated/DeepL.RephraseTextClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ public RephraseTextClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -246,7 +249,7 @@ private void SelectServer(global::DeepL.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/DeepL/Generated/DeepL.TranslateDocumentsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ public TranslateDocumentsClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -255,7 +258,7 @@ private void SelectServer(global::DeepL.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/DeepL/Generated/DeepL.TranslateTextClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ public TranslateTextClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -246,7 +249,7 @@ private void SelectServer(global::DeepL.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/DeepL/Generated/DeepL.TranslationMemoriesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ public TranslationMemoriesClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -250,7 +253,7 @@ private void SelectServer(global::DeepL.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
5 changes: 4 additions & 1 deletion src/libs/DeepL/Generated/DeepL.VoiceAPIClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ public VoiceAPIClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down
7 changes: 5 additions & 2 deletions src/libs/DeepL/Generated/DeepL.VoiceTranslateJobClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ public VoiceTranslateJobClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::DeepL.EndPointAuthorization>();
Options = options ?? new global::DeepL.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -246,7 +249,7 @@ private void SelectServer(global::DeepL.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
Loading