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: 2 additions & 5 deletions src/libs/HeyGen/Generated/HeyGen.AssetsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ public AssetsClient(
{

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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