diff --git a/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.CreateApiKey.g.cs b/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.CreateApiKey.g.cs
index bbcd13c..60a6b01 100644
--- a/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.CreateApiKey.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.CreateApiKey.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateApiKeyResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateApiKeyResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.GetApiKey.g.cs b/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.GetApiKey.g.cs
index c95bb9f..12d2972 100644
--- a/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.GetApiKey.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.GetApiKey.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetApiKeyResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetApiKeyResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.ListApiKeys.g.cs b/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.ListApiKeys.g.cs
index be874fc..0f18860 100644
--- a/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.ListApiKeys.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.ListApiKeys.g.cs
@@ -347,17 +347,15 @@ partial void ProcessListApiKeysResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessListApiKeysResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.RevokeApiKey.g.cs b/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.RevokeApiKey.g.cs
index c81be00..8ed5e3b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.RevokeApiKey.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.APIKeysClient.RevokeApiKey.g.cs
@@ -342,17 +342,15 @@ await RevokeApiKeyAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await RevokeApiKeyAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AccountsClient.CreateAccount.g.cs b/src/libs/Dataloop/Generated/Dataloop.AccountsClient.CreateAccount.g.cs
index 82480d3..59a2f0d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AccountsClient.CreateAccount.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AccountsClient.CreateAccount.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateAccountResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateAccountResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetAccount.g.cs b/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetAccount.g.cs
index 306d3b9..990a94c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetAccount.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetAccount.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetAccountResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetAccountResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetAccountProjects.g.cs b/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetAccountProjects.g.cs
index 9fdfaff..2e7444b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetAccountProjects.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetAccountProjects.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetAccountProjectsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetAccountProjectsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetMyAccounts.g.cs b/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetMyAccounts.g.cs
index fdbbcf4..aea0895 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetMyAccounts.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AccountsClient.GetMyAccounts.g.cs
@@ -347,17 +347,15 @@ partial void ProcessGetMyAccountsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessGetMyAccountsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ActivitiesClient.GetUiActivities.g.cs b/src/libs/Dataloop/Generated/Dataloop.ActivitiesClient.GetUiActivities.g.cs
index 467c750..be9c83c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ActivitiesClient.GetUiActivities.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ActivitiesClient.GetUiActivities.g.cs
@@ -359,17 +359,15 @@ partial void ProcessGetUiActivitiesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -406,17 +404,15 @@ partial void ProcessGetUiActivitiesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationLogsClient.ListDatasetItemAnnotationLogs.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationLogsClient.ListDatasetItemAnnotationLogs.g.cs
index da85195..5bab37d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationLogsClient.ListDatasetItemAnnotationLogs.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationLogsClient.ListDatasetItemAnnotationLogs.g.cs
@@ -365,17 +365,15 @@ partial void ProcessListDatasetItemAnnotationLogsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessListDatasetItemAnnotationLogsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.AddItemsToAnnotationTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.AddItemsToAnnotationTask.g.cs
index b634132..d910683 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.AddItemsToAnnotationTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.AddItemsToAnnotationTask.g.cs
@@ -422,17 +422,15 @@ partial void ProcessAddItemsToAnnotationTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -469,17 +467,15 @@ partial void ProcessAddItemsToAnnotationTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.CreateAnnotationTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.CreateAnnotationTask.g.cs
index 508d414..c14491f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.CreateAnnotationTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.CreateAnnotationTask.g.cs
@@ -455,17 +455,15 @@ partial void ProcessCreateAnnotationTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -502,17 +500,15 @@ partial void ProcessCreateAnnotationTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.DeleteAnnotationTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.DeleteAnnotationTask.g.cs
index 922bc11..eb91b7c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.DeleteAnnotationTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.DeleteAnnotationTask.g.cs
@@ -410,17 +410,15 @@ partial void ProcessDeleteAnnotationTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -457,17 +455,15 @@ partial void ProcessDeleteAnnotationTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.FindAnnotationTasks.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.FindAnnotationTasks.g.cs
index ae24b8b..0ede533 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.FindAnnotationTasks.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.FindAnnotationTasks.g.cs
@@ -499,17 +499,15 @@ partial void ProcessFindAnnotationTasksResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -546,17 +544,15 @@ partial void ProcessFindAnnotationTasksResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTask.g.cs
index b20d8d3..4fca3da 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTask.g.cs
@@ -375,17 +375,16 @@ partial void ProcessGetAnnotationTaskResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -408,17 +407,16 @@ partial void ProcessGetAnnotationTaskResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -452,17 +450,15 @@ partial void ProcessGetAnnotationTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -499,17 +495,15 @@ partial void ProcessGetAnnotationTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTaskQueueDetails.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTaskQueueDetails.g.cs
index 0435f7d..c9679f8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTaskQueueDetails.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTaskQueueDetails.g.cs
@@ -345,17 +345,16 @@ partial void ProcessGetAnnotationTaskQueueDetailsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -378,17 +377,16 @@ partial void ProcessGetAnnotationTaskQueueDetailsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -422,17 +420,15 @@ partial void ProcessGetAnnotationTaskQueueDetailsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -469,17 +465,15 @@ partial void ProcessGetAnnotationTaskQueueDetailsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTaskRelatives.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTaskRelatives.g.cs
index 7234134..ef12d71 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTaskRelatives.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetAnnotationTaskRelatives.g.cs
@@ -345,17 +345,16 @@ partial void ProcessGetAnnotationTaskRelativesResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -378,17 +377,16 @@ partial void ProcessGetAnnotationTaskRelativesResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -422,17 +420,15 @@ partial void ProcessGetAnnotationTaskRelativesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -469,17 +465,15 @@ partial void ProcessGetAnnotationTaskRelativesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetCountersForProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetCountersForProject.g.cs
index 9794cdc..7b84bae 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetCountersForProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetCountersForProject.g.cs
@@ -376,17 +376,15 @@ partial void ProcessGetCountersForProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessGetCountersForProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetDatasetActions.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetDatasetActions.g.cs
index 7cba4ec..2a25701 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetDatasetActions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetDatasetActions.g.cs
@@ -354,17 +354,16 @@ partial void ProcessGetDatasetActionsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -387,17 +386,16 @@ partial void ProcessGetDatasetActionsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -431,17 +429,15 @@ partial void ProcessGetDatasetActionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -478,17 +474,15 @@ partial void ProcessGetDatasetActionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetProjectsActiveCounters.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetProjectsActiveCounters.g.cs
index 4c3b5c9..3b563c3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetProjectsActiveCounters.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.GetProjectsActiveCounters.g.cs
@@ -369,17 +369,15 @@ partial void ProcessGetProjectsActiveCountersResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -416,17 +414,15 @@ partial void ProcessGetProjectsActiveCountersResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.QueryAnnotationTasks.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.QueryAnnotationTasks.g.cs
index 2e4cf3a..f4531a7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.QueryAnnotationTasks.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.QueryAnnotationTasks.g.cs
@@ -413,17 +413,15 @@ partial void ProcessQueryAnnotationTasksResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -460,17 +458,15 @@ partial void ProcessQueryAnnotationTasksResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.RemoveItemsFromAnnotationTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.RemoveItemsFromAnnotationTask.g.cs
index 7a136fc..b53aa25 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.RemoveItemsFromAnnotationTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.RemoveItemsFromAnnotationTask.g.cs
@@ -376,17 +376,15 @@ partial void ProcessRemoveItemsFromAnnotationTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessRemoveItemsFromAnnotationTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.UpdateAnnotationTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.UpdateAnnotationTask.g.cs
index 84a1853..daa1dcc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.UpdateAnnotationTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.UpdateAnnotationTask.g.cs
@@ -406,17 +406,15 @@ partial void ProcessUpdateAnnotationTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -453,17 +451,15 @@ partial void ProcessUpdateAnnotationTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.UpdateAnnotationTaskContributors.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.UpdateAnnotationTaskContributors.g.cs
index 3fe20b6..a5dba85 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.UpdateAnnotationTaskContributors.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationTasksClient.UpdateAnnotationTaskContributors.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateAnnotationTaskContributorsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateAnnotationTaskContributorsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.AnnotationIssues.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.AnnotationIssues.g.cs
index 33d3b27..8e00b37 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.AnnotationIssues.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.AnnotationIssues.g.cs
@@ -356,17 +356,15 @@ partial void ProcessAnnotationIssuesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessAnnotationIssuesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.ArchiveAnnotationToStorage.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.ArchiveAnnotationToStorage.g.cs
index 63dd255..dca69b4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.ArchiveAnnotationToStorage.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.ArchiveAnnotationToStorage.g.cs
@@ -367,17 +367,15 @@ partial void ProcessArchiveAnnotationToStorageResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessArchiveAnnotationToStorageResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.DeleteAnnotation.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.DeleteAnnotation.g.cs
index 30f5d1d..a9ee862 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.DeleteAnnotation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.DeleteAnnotation.g.cs
@@ -376,17 +376,15 @@ await DeleteAnnotationAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ await DeleteAnnotationAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.GetAnnotation.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.GetAnnotation.g.cs
index d3ab271..7fb10f7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.GetAnnotation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.GetAnnotation.g.cs
@@ -388,17 +388,15 @@ partial void ProcessGetAnnotationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -435,17 +433,15 @@ partial void ProcessGetAnnotationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.RestoreArchivedAnnotationToDb.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.RestoreArchivedAnnotationToDb.g.cs
index 87058cd..88bd9b6 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.RestoreArchivedAnnotationToDb.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.RestoreArchivedAnnotationToDb.g.cs
@@ -367,17 +367,15 @@ partial void ProcessRestoreArchivedAnnotationToDbResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessRestoreArchivedAnnotationToDbResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.UpdateAnnotation.g.cs b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.UpdateAnnotation.g.cs
index c2bdd35..9609224 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.UpdateAnnotation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AnnotationsClient.UpdateAnnotation.g.cs
@@ -432,17 +432,15 @@ partial void ProcessUpdateAnnotationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -479,17 +477,15 @@ partial void ProcessUpdateAnnotationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Activate.g.cs b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Activate.g.cs
index aebfc71..fa70c42 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Activate.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Activate.g.cs
@@ -358,17 +358,15 @@ partial void ProcessActivateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -405,17 +403,15 @@ partial void ProcessActivateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Deactivate.g.cs b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Deactivate.g.cs
index 5ee8056..1e78a0c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Deactivate.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Deactivate.g.cs
@@ -358,17 +358,15 @@ partial void ProcessDeactivateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -405,17 +403,15 @@ partial void ProcessDeactivateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Get.g.cs b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Get.g.cs
index ff7146a..b11daca 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Get.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Get.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Install.g.cs b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Install.g.cs
index 4f8d0bd..97cb4a1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Install.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Install.g.cs
@@ -369,17 +369,15 @@ partial void ProcessInstallResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -416,17 +414,15 @@ partial void ProcessInstallResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AppsClient.ResolveTemplate.g.cs b/src/libs/Dataloop/Generated/Dataloop.AppsClient.ResolveTemplate.g.cs
index 31e43cd..23b6bca 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AppsClient.ResolveTemplate.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AppsClient.ResolveTemplate.g.cs
@@ -376,17 +376,15 @@ partial void ProcessResolveTemplateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -421,17 +419,15 @@ partial void ProcessResolveTemplateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Uninstall.g.cs b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Uninstall.g.cs
index 6752953..558731f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Uninstall.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Uninstall.g.cs
@@ -358,17 +358,15 @@ partial void ProcessUninstallResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -405,17 +403,15 @@ partial void ProcessUninstallResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Update.g.cs b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Update.g.cs
index ca9ae5b..1d22eac 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AppsClient.Update.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AppsClient.Update.g.cs
@@ -378,17 +378,15 @@ partial void ProcessUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -425,17 +423,15 @@ partial void ProcessUpdateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.ClearAssignmentBatch.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.ClearAssignmentBatch.g.cs
index cb170b9..6434f7e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.ClearAssignmentBatch.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.ClearAssignmentBatch.g.cs
@@ -376,17 +376,15 @@ partial void ProcessClearAssignmentBatchResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessClearAssignmentBatchResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.FindAssignments.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.FindAssignments.g.cs
index 0d56c5f..3e24694 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.FindAssignments.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.FindAssignments.g.cs
@@ -439,17 +439,15 @@ partial void ProcessFindAssignmentsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -486,17 +484,15 @@ partial void ProcessFindAssignmentsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetAssignment.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetAssignment.g.cs
index 5eb63fb..b44a88a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetAssignment.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetAssignment.g.cs
@@ -371,17 +371,16 @@ partial void ProcessGetAssignmentResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -404,17 +403,16 @@ partial void ProcessGetAssignmentResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -448,17 +446,15 @@ partial void ProcessGetAssignmentResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -495,17 +491,15 @@ partial void ProcessGetAssignmentResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetAssignmentFields.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetAssignmentFields.g.cs
index 4d19e7e..62c68a4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetAssignmentFields.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetAssignmentFields.g.cs
@@ -365,17 +365,16 @@ partial void ProcessGetAssignmentFieldsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -398,17 +397,16 @@ partial void ProcessGetAssignmentFieldsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -442,17 +440,15 @@ partial void ProcessGetAssignmentFieldsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -489,17 +485,15 @@ partial void ProcessGetAssignmentFieldsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetReassignAssignment.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetReassignAssignment.g.cs
index 0ced63f..d8b6442 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetReassignAssignment.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.GetReassignAssignment.g.cs
@@ -368,17 +368,15 @@ partial void ProcessGetReassignAssignmentResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -415,17 +413,15 @@ partial void ProcessGetReassignAssignmentResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.LoadAssignmentBatch.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.LoadAssignmentBatch.g.cs
index 45923f3..73a7baf 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.LoadAssignmentBatch.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.LoadAssignmentBatch.g.cs
@@ -376,17 +376,15 @@ partial void ProcessLoadAssignmentBatchResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessLoadAssignmentBatchResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.ReassignAssignment.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.ReassignAssignment.g.cs
index 683e829..254e3c5 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.ReassignAssignment.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.ReassignAssignment.g.cs
@@ -414,17 +414,15 @@ partial void ProcessReassignAssignmentResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -461,17 +459,15 @@ partial void ProcessReassignAssignmentResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.RedistributeAssignment.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.RedistributeAssignment.g.cs
index 24727b1..90d0627 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.RedistributeAssignment.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.RedistributeAssignment.g.cs
@@ -416,17 +416,15 @@ partial void ProcessRedistributeAssignmentResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -463,17 +461,15 @@ partial void ProcessRedistributeAssignmentResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatus.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatus.g.cs
index d1714ca..11bc20a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatus.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatus.g.cs
@@ -385,17 +385,15 @@ partial void ProcessSetItemStatusResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessSetItemStatusResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatusBulkAssignment.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatusBulkAssignment.g.cs
index ab84901..36a1f8f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatusBulkAssignment.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatusBulkAssignment.g.cs
@@ -374,17 +374,15 @@ partial void ProcessSetItemStatusBulkAssignmentResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -419,17 +417,15 @@ partial void ProcessSetItemStatusBulkAssignmentResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatusBulkTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatusBulkTask.g.cs
index 713dd01..7fcd244 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatusBulkTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.SetItemStatusBulkTask.g.cs
@@ -374,17 +374,15 @@ partial void ProcessSetItemStatusBulkTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -419,17 +417,15 @@ partial void ProcessSetItemStatusBulkTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.UpdateAssignment.g.cs b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.UpdateAssignment.g.cs
index 4ec4311..28dff14 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.UpdateAssignment.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AssignmentsClient.UpdateAssignment.g.cs
@@ -406,17 +406,15 @@ partial void ProcessUpdateAssignmentResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -453,17 +451,15 @@ partial void ProcessUpdateAssignmentResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AuditClient.GetAuditLogsCsv.g.cs b/src/libs/Dataloop/Generated/Dataloop.AuditClient.GetAuditLogsCsv.g.cs
index 2ca089d..39f5ee9 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AuditClient.GetAuditLogsCsv.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AuditClient.GetAuditLogsCsv.g.cs
@@ -445,17 +445,15 @@ await GetAuditLogsCsvAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -483,17 +481,15 @@ await GetAuditLogsCsvAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.AuditClient.QueryAuditLogs.g.cs b/src/libs/Dataloop/Generated/Dataloop.AuditClient.QueryAuditLogs.g.cs
index 1e9c42c..8bf6f9d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.AuditClient.QueryAuditLogs.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.AuditClient.QueryAuditLogs.g.cs
@@ -367,17 +367,15 @@ partial void ProcessQueryAuditLogsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessQueryAuditLogsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.CreateBillingAccount.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.CreateBillingAccount.g.cs
index 230743d..5ebebcc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.CreateBillingAccount.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.CreateBillingAccount.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateBillingAccountResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateBillingAccountResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.DeletePaymentMethod.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.DeletePaymentMethod.g.cs
index 8656b0c..4573056 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.DeletePaymentMethod.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.DeletePaymentMethod.g.cs
@@ -351,17 +351,15 @@ await DeletePaymentMethodAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await DeletePaymentMethodAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.EditBillingAccount.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.EditBillingAccount.g.cs
index 39b8f66..8c26fb3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.EditBillingAccount.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.EditBillingAccount.g.cs
@@ -376,17 +376,15 @@ partial void ProcessEditBillingAccountResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessEditBillingAccountResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAccountApiCallsCsv.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAccountApiCallsCsv.g.cs
index fb80b79..f5246c6 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAccountApiCallsCsv.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAccountApiCallsCsv.g.cs
@@ -384,17 +384,15 @@ await GetAccountApiCallsCsvAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -422,17 +420,15 @@ await GetAccountApiCallsCsvAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAccountApiCallsJson.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAccountApiCallsJson.g.cs
index c62f4ee..690a64b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAccountApiCallsJson.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAccountApiCallsJson.g.cs
@@ -374,17 +374,15 @@ await GetAccountApiCallsJsonAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ await GetAccountApiCallsJsonAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAlert.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAlert.g.cs
index 30daf77..e5472ed 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAlert.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetAlert.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetAlertResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessGetAlertResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetBillingAccount.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetBillingAccount.g.cs
index 4b8439b..be66030 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetBillingAccount.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetBillingAccount.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetBillingAccountResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetBillingAccountResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetBillingAccountByDLAccount.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetBillingAccountByDLAccount.g.cs
index 6759680..e4fb515 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetBillingAccountByDLAccount.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetBillingAccountByDLAccount.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetBillingAccountByDLAccountResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetBillingAccountByDLAccountResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetPaymentMethod.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetPaymentMethod.g.cs
index 1508580..1ee3209 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetPaymentMethod.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetPaymentMethod.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetPaymentMethodResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessGetPaymentMethodResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetUsageEntry.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetUsageEntry.g.cs
index d2ebfb4..476b64a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetUsageEntry.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.GetUsageEntry.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetUsageEntryResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetUsageEntryResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListAccountAlerts.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListAccountAlerts.g.cs
index 937d1d6..04a81bc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListAccountAlerts.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListAccountAlerts.g.cs
@@ -376,17 +376,15 @@ partial void ProcessListAccountAlertsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessListAccountAlertsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListPaymentDrivers.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListPaymentDrivers.g.cs
index 0321903..7d81dc1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListPaymentDrivers.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListPaymentDrivers.g.cs
@@ -378,17 +378,15 @@ partial void ProcessListPaymentDriversResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -425,17 +423,15 @@ partial void ProcessListPaymentDriversResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListPaymentMethods.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListPaymentMethods.g.cs
index 56e3f2b..fd5e640 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListPaymentMethods.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListPaymentMethods.g.cs
@@ -378,17 +378,15 @@ partial void ProcessListPaymentMethodsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -425,17 +423,15 @@ partial void ProcessListPaymentMethodsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageCsv.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageCsv.g.cs
index c5725f8..2ba72a0 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageCsv.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageCsv.g.cs
@@ -374,17 +374,15 @@ await ListUsageCsvAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ await ListUsageCsvAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageEntries.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageEntries.g.cs
index 8dbb017..24a8a2c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageEntries.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageEntries.g.cs
@@ -389,17 +389,15 @@ partial void ProcessListUsageEntriesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -436,17 +434,15 @@ partial void ProcessListUsageEntriesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageEntries2.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageEntries2.g.cs
index c140d7a..74900c7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageEntries2.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.ListUsageEntries2.g.cs
@@ -388,17 +388,15 @@ partial void ProcessListUsageEntries2ResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -435,17 +433,15 @@ partial void ProcessListUsageEntries2ResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.BillingClient.UpdateAlert.g.cs b/src/libs/Dataloop/Generated/Dataloop.BillingClient.UpdateAlert.g.cs
index 4206551..7d6b218 100644
--- a/src/libs/Dataloop/Generated/Dataloop.BillingClient.UpdateAlert.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.BillingClient.UpdateAlert.g.cs
@@ -385,17 +385,15 @@ partial void ProcessUpdateAlertResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessUpdateAlertResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Create.g.cs b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Create.g.cs
index 5d0cff4..5cd82bb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Create.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Create.g.cs
@@ -369,17 +369,15 @@ partial void ProcessCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -416,17 +414,15 @@ partial void ProcessCreateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Get.g.cs b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Get.g.cs
index 4a7718e..1ec0b33 100644
--- a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Get.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Get.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Install.g.cs b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Install.g.cs
index 51e9381..72dc80f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Install.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Install.g.cs
@@ -376,17 +376,15 @@ partial void ProcessInstallResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessInstallResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.List.g.cs b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.List.g.cs
index 0a6a0fe..138df3b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.List.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.List.g.cs
@@ -391,17 +391,15 @@ partial void ProcessListResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -438,17 +436,15 @@ partial void ProcessListResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Terminate.g.cs b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Terminate.g.cs
index b8dc5b8..d5da876 100644
--- a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Terminate.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Terminate.g.cs
@@ -354,17 +354,15 @@ partial void ProcessTerminateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -399,17 +397,15 @@ partial void ProcessTerminateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Uninstall.g.cs b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Uninstall.g.cs
index e5c19f8..41dd01e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Uninstall.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Uninstall.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUninstallResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUninstallResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Update.g.cs b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Update.g.cs
index b3719ab..109edcb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Update.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.CompositionsClient.Update.g.cs
@@ -378,17 +378,15 @@ partial void ProcessUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -425,17 +423,15 @@ partial void ProcessUpdateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.CleanupOrg.g.cs b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.CleanupOrg.g.cs
index 9cd9c24..b98d15d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.CleanupOrg.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.CleanupOrg.g.cs
@@ -342,17 +342,15 @@ await CleanupOrgAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await CleanupOrgAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.DeleteCompute.g.cs b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.DeleteCompute.g.cs
index 87a9238..da45045 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.DeleteCompute.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.DeleteCompute.g.cs
@@ -372,17 +372,15 @@ partial void ProcessDeleteComputeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -419,17 +417,15 @@ partial void ProcessDeleteComputeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.DeleteRegistryCred.g.cs b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.DeleteRegistryCred.g.cs
index 6becef8..5f91756 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.DeleteRegistryCred.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.DeleteRegistryCred.g.cs
@@ -351,17 +351,15 @@ await DeleteRegistryCredAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await DeleteRegistryCredAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.GetCompute.g.cs b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.GetCompute.g.cs
index e6b6ab1..2716a31 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.GetCompute.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.GetCompute.g.cs
@@ -372,17 +372,15 @@ partial void ProcessGetComputeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -419,17 +417,15 @@ partial void ProcessGetComputeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.ListGlobalComputes.g.cs b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.ListGlobalComputes.g.cs
index 948a24d..adbe94c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.ListGlobalComputes.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.ListGlobalComputes.g.cs
@@ -347,17 +347,15 @@ partial void ProcessListGlobalComputesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessListGlobalComputesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.RegisterCompute.g.cs b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.RegisterCompute.g.cs
index c3dd2e3..b9578fa 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.RegisterCompute.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.RegisterCompute.g.cs
@@ -367,17 +367,15 @@ partial void ProcessRegisterComputeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessRegisterComputeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.RegistryCred.g.cs b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.RegistryCred.g.cs
index f9dc9b1..87926bc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.RegistryCred.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.RegistryCred.g.cs
@@ -351,17 +351,15 @@ await RegistryCredAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await RegistryCredAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.UpdateCompute.g.cs b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.UpdateCompute.g.cs
index ced2ca6..54e6869 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.UpdateCompute.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.UpdateCompute.g.cs
@@ -374,17 +374,15 @@ partial void ProcessUpdateComputeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -421,17 +419,15 @@ partial void ProcessUpdateComputeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.ValidateCompute.g.cs b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.ValidateCompute.g.cs
index afbdb5b..f5fb3ee 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ComputeClient.ValidateCompute.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ComputeClient.ValidateCompute.g.cs
@@ -356,17 +356,15 @@ partial void ProcessValidateComputeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessValidateComputeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.CreateDatasetsByIdItemsBulkUpdateMetadata.g.cs b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.CreateDatasetsByIdItemsBulkUpdateMetadata.g.cs
index 4805924..b88d4f3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.CreateDatasetsByIdItemsBulkUpdateMetadata.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.CreateDatasetsByIdItemsBulkUpdateMetadata.g.cs
@@ -366,17 +366,15 @@ await CreateDatasetsByIdItemsBulkUpdateMetadataAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -404,17 +402,15 @@ await CreateDatasetsByIdItemsBulkUpdateMetadataAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.CreatePipelinesValidate.g.cs b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.CreatePipelinesValidate.g.cs
index 7106406..bb9044d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.CreatePipelinesValidate.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.CreatePipelinesValidate.g.cs
@@ -361,17 +361,15 @@ await CreatePipelinesValidateAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -399,17 +397,15 @@ await CreatePipelinesValidateAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.DeletePackagesById.g.cs b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.DeletePackagesById.g.cs
index 927ae15..5bbb317 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.DeletePackagesById.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.DeletePackagesById.g.cs
@@ -374,17 +374,15 @@ await DeletePackagesByIdAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ await DeletePackagesByIdAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.EditFeaturesSetById.g.cs b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.EditFeaturesSetById.g.cs
index 8cdfdc1..701811d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.EditFeaturesSetById.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.EditFeaturesSetById.g.cs
@@ -370,17 +370,15 @@ await EditFeaturesSetByIdAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -408,17 +406,15 @@ await EditFeaturesSetByIdAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.GetPipelinesByIdStatistics.g.cs b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.GetPipelinesByIdStatistics.g.cs
index a39c455..2d391de 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.GetPipelinesByIdStatistics.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.GetPipelinesByIdStatistics.g.cs
@@ -374,17 +374,15 @@ await GetPipelinesByIdStatisticsAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ await GetPipelinesByIdStatisticsAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.ListPastLogins.g.cs b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.ListPastLogins.g.cs
index dd2b7ac..1bea7e2 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DataloopClient.ListPastLogins.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DataloopClient.ListPastLogins.g.cs
@@ -367,17 +367,15 @@ partial void ProcessListPastLoginsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessListPastLoginsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.ArchiveDatasetItemAnnotationToStorage.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.ArchiveDatasetItemAnnotationToStorage.g.cs
index a8cea42..f27ab24 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.ArchiveDatasetItemAnnotationToStorage.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.ArchiveDatasetItemAnnotationToStorage.g.cs
@@ -385,17 +385,15 @@ partial void ProcessArchiveDatasetItemAnnotationToStorageResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessArchiveDatasetItemAnnotationToStorageResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.CreateAnnotations.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.CreateAnnotations.g.cs
index da107fc..d0b9a89 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.CreateAnnotations.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.CreateAnnotations.g.cs
@@ -383,17 +383,15 @@ partial void ProcessCreateAnnotationsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -430,17 +428,15 @@ partial void ProcessCreateAnnotationsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.DatasetItemAnnotationIssues.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.DatasetItemAnnotationIssues.g.cs
index 5a79402..56f8075 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.DatasetItemAnnotationIssues.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.DatasetItemAnnotationIssues.g.cs
@@ -374,17 +374,15 @@ partial void ProcessDatasetItemAnnotationIssuesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -421,17 +419,15 @@ partial void ProcessDatasetItemAnnotationIssuesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.DeleteDatasetItemAnnotation.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.DeleteDatasetItemAnnotation.g.cs
index 309fe26..a0c0abe 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.DeleteDatasetItemAnnotation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.DeleteDatasetItemAnnotation.g.cs
@@ -360,17 +360,15 @@ await DeleteDatasetItemAnnotationAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -398,17 +396,15 @@ await DeleteDatasetItemAnnotationAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.GetDatasetItemAnnotation.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.GetDatasetItemAnnotation.g.cs
index 8d763d8..bc2ebc4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.GetDatasetItemAnnotation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.GetDatasetItemAnnotation.g.cs
@@ -374,17 +374,15 @@ partial void ProcessGetDatasetItemAnnotationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -421,17 +419,15 @@ partial void ProcessGetDatasetItemAnnotationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.ListDatasetItemAnnotations.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.ListDatasetItemAnnotations.g.cs
index 62e84bb..afcd849 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.ListDatasetItemAnnotations.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.ListDatasetItemAnnotations.g.cs
@@ -365,17 +365,15 @@ partial void ProcessListDatasetItemAnnotationsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessListDatasetItemAnnotationsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.RestoreArchivedDatasetItemAnnotationToDb.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.RestoreArchivedDatasetItemAnnotationToDb.g.cs
index 57abe1f..46d1ef1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.RestoreArchivedDatasetItemAnnotationToDb.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.RestoreArchivedDatasetItemAnnotationToDb.g.cs
@@ -385,17 +385,15 @@ partial void ProcessRestoreArchivedDatasetItemAnnotationToDbResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessRestoreArchivedDatasetItemAnnotationToDbResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.UpdateDatasetItemAnnotation.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.UpdateDatasetItemAnnotation.g.cs
index 267da5a..4129962 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.UpdateDatasetItemAnnotation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemAnnotationsClient.UpdateDatasetItemAnnotation.g.cs
@@ -416,17 +416,15 @@ partial void ProcessUpdateDatasetItemAnnotationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -463,17 +461,15 @@ partial void ProcessUpdateDatasetItemAnnotationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.AddItemsToItemCollections.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.AddItemsToItemCollections.g.cs
index 8ea544b..e6a622c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.AddItemsToItemCollections.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.AddItemsToItemCollections.g.cs
@@ -376,17 +376,15 @@ partial void ProcessAddItemsToItemCollectionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessAddItemsToItemCollectionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.BulkUpdateMetadata.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.BulkUpdateMetadata.g.cs
index 0c4af78..056fdde 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.BulkUpdateMetadata.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.BulkUpdateMetadata.g.cs
@@ -376,17 +376,15 @@ partial void ProcessBulkUpdateMetadataResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessBulkUpdateMetadataResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.BullkGenerateAnnotationThumbnails.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.BullkGenerateAnnotationThumbnails.g.cs
index e5d6cdc..54d2772 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.BullkGenerateAnnotationThumbnails.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.BullkGenerateAnnotationThumbnails.g.cs
@@ -376,17 +376,15 @@ partial void ProcessBullkGenerateAnnotationThumbnailsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessBullkGenerateAnnotationThumbnailsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CloneDatasetItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CloneDatasetItem.g.cs
index 06f9e47..0bc6a4b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CloneDatasetItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CloneDatasetItem.g.cs
@@ -385,17 +385,15 @@ partial void ProcessCloneDatasetItemResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessCloneDatasetItemResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateDatasetItemRevision.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateDatasetItemRevision.g.cs
index 49995b9..162ddeb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateDatasetItemRevision.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateDatasetItemRevision.g.cs
@@ -365,17 +365,15 @@ partial void ProcessCreateDatasetItemRevisionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessCreateDatasetItemRevisionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateDatasetItemSnapshot.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateDatasetItemSnapshot.g.cs
index cd99442..3f7a8df 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateDatasetItemSnapshot.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateDatasetItemSnapshot.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateDatasetItemSnapshotResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateDatasetItemSnapshotResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateItem.g.cs
index 516a382..da4e0e9 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateItem.g.cs
@@ -370,17 +370,15 @@ partial void ProcessCreateItemResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -417,17 +415,15 @@ partial void ProcessCreateItemResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateItemCollection.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateItemCollection.g.cs
index 6c60d6f..b3821ec 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateItemCollection.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.CreateItemCollection.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCreateItemCollectionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessCreateItemCollectionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.DeleteItemCollections.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.DeleteItemCollections.g.cs
index da30d85..8ffbfc8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.DeleteItemCollections.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.DeleteItemCollections.g.cs
@@ -365,17 +365,15 @@ partial void ProcessDeleteItemCollectionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessDeleteItemCollectionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.EditDatasetItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.EditDatasetItem.g.cs
index 7a1552c..b23476a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.EditDatasetItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.EditDatasetItem.g.cs
@@ -397,17 +397,15 @@ partial void ProcessEditDatasetItemResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -444,17 +442,15 @@ partial void ProcessEditDatasetItemResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDatasetItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDatasetItem.g.cs
index 1013c75..ecd6f73 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDatasetItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDatasetItem.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetDatasetItemResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessGetDatasetItemResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDatasetItems.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDatasetItems.g.cs
index b803155..a2eeedb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDatasetItems.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDatasetItems.g.cs
@@ -398,17 +398,15 @@ partial void ProcessGetDatasetItemsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -445,17 +443,15 @@ partial void ProcessGetDatasetItemsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDirectoryChildDatasetItems.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDirectoryChildDatasetItems.g.cs
index fa51a98..9778365 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDirectoryChildDatasetItems.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetDirectoryChildDatasetItems.g.cs
@@ -387,17 +387,15 @@ partial void ProcessGetDirectoryChildDatasetItemsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -434,17 +432,15 @@ partial void ProcessGetDirectoryChildDatasetItemsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetItemCollections.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetItemCollections.g.cs
index 7c42e4c..374d48c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetItemCollections.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.GetItemCollections.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetItemCollectionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetItemCollectionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.InvalidateAnnotationThumbnails.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.InvalidateAnnotationThumbnails.g.cs
index b64a749..9967161 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.InvalidateAnnotationThumbnails.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.InvalidateAnnotationThumbnails.g.cs
@@ -376,17 +376,15 @@ partial void ProcessInvalidateAnnotationThumbnailsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessInvalidateAnnotationThumbnailsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.MoveItems.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.MoveItems.g.cs
index 895fe68..752fbde 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.MoveItems.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.MoveItems.g.cs
@@ -383,17 +383,15 @@ partial void ProcessMoveItemsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -430,17 +428,15 @@ partial void ProcessMoveItemsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveDatasetItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveDatasetItem.g.cs
index 834317e..f61d9c5 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveDatasetItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveDatasetItem.g.cs
@@ -351,17 +351,15 @@ await RemoveDatasetItemAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await RemoveDatasetItemAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveItemsByQuery.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveItemsByQuery.g.cs
index 45aabac..7ad2324 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveItemsByQuery.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveItemsByQuery.g.cs
@@ -376,17 +376,15 @@ partial void ProcessRemoveItemsByQueryResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessRemoveItemsByQueryResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveItemsFromItemCollections.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveItemsFromItemCollections.g.cs
index 1911f14..a738d47 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveItemsFromItemCollections.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RemoveItemsFromItemCollections.g.cs
@@ -376,17 +376,15 @@ partial void ProcessRemoveItemsFromItemCollectionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessRemoveItemsFromItemCollectionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RenameItemCollection.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RenameItemCollection.g.cs
index e9bf455..8338672 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RenameItemCollection.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.RenameItemCollection.g.cs
@@ -385,17 +385,15 @@ partial void ProcessRenameItemCollectionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessRenameItemCollectionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.StreamDatasetItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.StreamDatasetItem.g.cs
index da55c33..8d6a824 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.StreamDatasetItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.StreamDatasetItem.g.cs
@@ -351,17 +351,15 @@ await StreamDatasetItemAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await StreamDatasetItemAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.StreamDatasetItemThumbnail.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.StreamDatasetItemThumbnail.g.cs
index 83e27d9..7c47839 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.StreamDatasetItemThumbnail.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetItemsClient.StreamDatasetItemThumbnail.g.cs
@@ -403,17 +403,15 @@ await StreamDatasetItemThumbnailAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -441,17 +439,15 @@ await StreamDatasetItemThumbnailAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetStorageClient.GetProjectSizeInBytes.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetStorageClient.GetProjectSizeInBytes.g.cs
index 101024a..567d25f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetStorageClient.GetProjectSizeInBytes.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetStorageClient.GetProjectSizeInBytes.g.cs
@@ -367,17 +367,15 @@ partial void ProcessGetProjectSizeInBytesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessGetProjectSizeInBytesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.AnnotateItemsByDql.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.AnnotateItemsByDql.g.cs
index 310c698..ada4d62 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.AnnotateItemsByDql.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.AnnotateItemsByDql.g.cs
@@ -362,17 +362,15 @@ await AnnotateItemsByDqlAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -400,17 +398,15 @@ await AnnotateItemsByDqlAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CloneDataset.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CloneDataset.g.cs
index ad97cbf..d059734 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CloneDataset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CloneDataset.g.cs
@@ -415,17 +415,16 @@ partial void ProcessCloneDatasetResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -459,17 +458,15 @@ partial void ProcessCloneDatasetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -506,17 +503,15 @@ partial void ProcessCloneDatasetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CountAnnotationsByProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CountAnnotationsByProject.g.cs
index d583b14..899aed8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CountAnnotationsByProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CountAnnotationsByProject.g.cs
@@ -360,17 +360,15 @@ partial void ProcessCountAnnotationsByProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -407,17 +405,15 @@ partial void ProcessCountAnnotationsByProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CountDatasetStatsByProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CountDatasetStatsByProject.g.cs
index d32aa28..e88faaf 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CountDatasetStatsByProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CountDatasetStatsByProject.g.cs
@@ -358,17 +358,15 @@ partial void ProcessCountDatasetStatsByProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -405,17 +403,15 @@ partial void ProcessCountDatasetStatsByProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CreateDataset.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CreateDataset.g.cs
index b52f8ec..dd46fbc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CreateDataset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.CreateDataset.g.cs
@@ -402,17 +402,16 @@ partial void ProcessCreateDatasetResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -446,17 +445,15 @@ partial void ProcessCreateDatasetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -493,17 +490,15 @@ partial void ProcessCreateDatasetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DeleteDataset.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DeleteDataset.g.cs
index 7046c76..78dd225 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DeleteDataset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DeleteDataset.g.cs
@@ -412,17 +412,15 @@ partial void ProcessDeleteDatasetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -459,17 +457,15 @@ partial void ProcessDeleteDatasetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DeleteExpiredItems.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DeleteExpiredItems.g.cs
index 013d66a..59954cf 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DeleteExpiredItems.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DeleteExpiredItems.g.cs
@@ -353,17 +353,15 @@ partial void ProcessDeleteExpiredItemsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -400,17 +398,15 @@ partial void ProcessDeleteExpiredItemsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DetachItemsFromDataset.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DetachItemsFromDataset.g.cs
index 5406a30..ce50026 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DetachItemsFromDataset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.DetachItemsFromDataset.g.cs
@@ -362,17 +362,15 @@ await DetachItemsFromDatasetAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -400,17 +398,15 @@ await DetachItemsFromDatasetAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ExportDatasetAsZip.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ExportDatasetAsZip.g.cs
index ae8b540..0cd583f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ExportDatasetAsZip.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ExportDatasetAsZip.g.cs
@@ -570,17 +570,15 @@ partial void ProcessExportDatasetAsZipResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -615,17 +613,15 @@ partial void ProcessExportDatasetAsZipResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsJson.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsJson.g.cs
index b48b153..e95f648 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsJson.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsJson.g.cs
@@ -354,17 +354,15 @@ await GetDatasetAnnotationsJsonAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -392,17 +390,15 @@ await GetDatasetAnnotationsJsonAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsZip.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsZip.g.cs
index b9009a3..86ebf7a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsZip.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsZip.g.cs
@@ -358,17 +358,15 @@ await GetDatasetAnnotationsZipAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -396,17 +394,15 @@ await GetDatasetAnnotationsZipAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsZipChunks.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsZipChunks.g.cs
index 13a47e7..717f108 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsZipChunks.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetAnnotationsZipChunks.g.cs
@@ -342,17 +342,15 @@ await GetDatasetAnnotationsZipChunksAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await GetDatasetAnnotationsZipChunksAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetById.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetById.g.cs
index aff94f7..464051d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetById.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetById.g.cs
@@ -394,17 +394,15 @@ partial void ProcessGetDatasetByIdResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -441,17 +439,15 @@ partial void ProcessGetDatasetByIdResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetDirectoryTree.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetDirectoryTree.g.cs
index c34a671..40194b1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetDirectoryTree.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetDirectoryTree.g.cs
@@ -392,17 +392,15 @@ partial void ProcessGetDatasetDirectoryTreeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -439,17 +437,15 @@ partial void ProcessGetDatasetDirectoryTreeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetLabelAggregation.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetLabelAggregation.g.cs
index dae126c..b130233 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetLabelAggregation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetLabelAggregation.g.cs
@@ -378,17 +378,15 @@ partial void ProcessGetDatasetLabelAggregationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -425,17 +423,15 @@ partial void ProcessGetDatasetLabelAggregationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetSchemaInformation.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetSchemaInformation.g.cs
index 640a45e..37feff9 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetSchemaInformation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetSchemaInformation.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetDatasetSchemaInformationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetDatasetSchemaInformationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetsByProjectIds.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetsByProjectIds.g.cs
index 338fcf7..9b4116a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetsByProjectIds.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetDatasetsByProjectIds.g.cs
@@ -371,17 +371,15 @@ partial void ProcessGetDatasetsByProjectIdsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -418,17 +416,15 @@ partial void ProcessGetDatasetsByProjectIdsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetFilteredDatasetLabelAggregation.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetFilteredDatasetLabelAggregation.g.cs
index 784ebf0..6937460 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetFilteredDatasetLabelAggregation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetFilteredDatasetLabelAggregation.g.cs
@@ -376,17 +376,15 @@ partial void ProcessGetFilteredDatasetLabelAggregationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessGetFilteredDatasetLabelAggregationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetFilteredDatasetTypeAggregation.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetFilteredDatasetTypeAggregation.g.cs
index 4c166b8..b692943 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetFilteredDatasetTypeAggregation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.GetFilteredDatasetTypeAggregation.g.cs
@@ -376,17 +376,15 @@ partial void ProcessGetFilteredDatasetTypeAggregationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessGetFilteredDatasetTypeAggregationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ImportItemsToDataset.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ImportItemsToDataset.g.cs
index 8951ad8..2500f02 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ImportItemsToDataset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ImportItemsToDataset.g.cs
@@ -374,17 +374,15 @@ partial void ProcessImportItemsToDatasetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -421,17 +419,15 @@ partial void ProcessImportItemsToDatasetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ListDatasets.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ListDatasets.g.cs
index 761184f..5fca982 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ListDatasets.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ListDatasets.g.cs
@@ -413,17 +413,15 @@ partial void ProcessListDatasetsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -460,17 +458,15 @@ partial void ProcessListDatasetsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ListExportHistory.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ListExportHistory.g.cs
index ae413e4..f52b661 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ListExportHistory.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ListExportHistory.g.cs
@@ -367,17 +367,15 @@ partial void ProcessListExportHistoryResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessListExportHistoryResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.MergeDatasets.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.MergeDatasets.g.cs
index f3c56e9..c5870f1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.MergeDatasets.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.MergeDatasets.g.cs
@@ -404,17 +404,16 @@ partial void ProcessMergeDatasetsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -448,17 +447,15 @@ partial void ProcessMergeDatasetsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -495,17 +492,15 @@ partial void ProcessMergeDatasetsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.PatchDataset.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.PatchDataset.g.cs
index 067a319..9c384f1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.PatchDataset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.PatchDataset.g.cs
@@ -420,17 +420,15 @@ partial void ProcessPatchDatasetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -467,17 +465,15 @@ partial void ProcessPatchDatasetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDataset.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDataset.g.cs
index 653b8ce..f8374b0 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDataset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDataset.g.cs
@@ -408,17 +408,15 @@ partial void ProcessQueryDatasetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -455,17 +453,15 @@ partial void ProcessQueryDatasetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDatasets.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDatasets.g.cs
index 42b38a9..434d9c6 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDatasets.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDatasets.g.cs
@@ -401,17 +401,15 @@ partial void ProcessQueryDatasetsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -448,17 +446,15 @@ partial void ProcessQueryDatasetsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDatasets2.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDatasets2.g.cs
index 9cc3015..635e270 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDatasets2.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.QueryDatasets2.g.cs
@@ -367,17 +367,15 @@ partial void ProcessQueryDatasets2ResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessQueryDatasets2ResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ResetDatasetCounters.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ResetDatasetCounters.g.cs
index 2625d5f..4a8241b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ResetDatasetCounters.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.ResetDatasetCounters.g.cs
@@ -342,17 +342,15 @@ await ResetDatasetCountersAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await ResetDatasetCountersAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.RestoreDataset.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.RestoreDataset.g.cs
index 972d662..fd2dbdb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.RestoreDataset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.RestoreDataset.g.cs
@@ -367,17 +367,15 @@ partial void ProcessRestoreDatasetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessRestoreDatasetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SchemaCleanup.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SchemaCleanup.g.cs
index ad6e895..efef09f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SchemaCleanup.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SchemaCleanup.g.cs
@@ -367,17 +367,15 @@ partial void ProcessSchemaCleanupResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessSchemaCleanupResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SplitMlOperation.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SplitMlOperation.g.cs
index 110d123..effee8c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SplitMlOperation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SplitMlOperation.g.cs
@@ -400,17 +400,15 @@ partial void ProcessSplitMlOperationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -447,17 +445,15 @@ partial void ProcessSplitMlOperationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SyncDataset.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SyncDataset.g.cs
index 4c7258b..2d1941e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SyncDataset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.SyncDataset.g.cs
@@ -386,17 +386,15 @@ partial void ProcessSyncDatasetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -433,17 +431,15 @@ partial void ProcessSyncDatasetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UnlockDataset.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UnlockDataset.g.cs
index 68761e6..114c85b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UnlockDataset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UnlockDataset.g.cs
@@ -384,17 +384,15 @@ partial void ProcessUnlockDatasetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -431,17 +429,15 @@ partial void ProcessUnlockDatasetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UpdateDatasetItemsSchema.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UpdateDatasetItemsSchema.g.cs
index 41432dd..60afd48 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UpdateDatasetItemsSchema.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UpdateDatasetItemsSchema.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateDatasetItemsSchemaResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateDatasetItemsSchemaResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UpdateDatasetItemsSchemaMode.g.cs b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UpdateDatasetItemsSchemaMode.g.cs
index c5f4cd2..b146546 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UpdateDatasetItemsSchemaMode.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DatasetsClient.UpdateDatasetItemsSchemaMode.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateDatasetItemsSchemaModeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateDatasetItemsSchemaModeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.DeleteOne.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.DeleteOne.g.cs
index 875f339..63a12af 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.DeleteOne.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.DeleteOne.g.cs
@@ -342,17 +342,15 @@ await DeleteOneAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await DeleteOneAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.DeleteWithRevisions.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.DeleteWithRevisions.g.cs
index f42a44b..2b441bb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.DeleteWithRevisions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.DeleteWithRevisions.g.cs
@@ -342,17 +342,15 @@ await DeleteWithRevisionsAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await DeleteWithRevisionsAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.Get.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.Get.g.cs
index 0e1ce9c..bf1cec7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.Get.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.Get.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetAttributes.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetAttributes.g.cs
index 615f6b9..f14b22e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetAttributes.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetAttributes.g.cs
@@ -347,17 +347,15 @@ partial void ProcessGetAttributesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessGetAttributesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetDpkRequirements.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetDpkRequirements.g.cs
index e72219d..b3a4f47 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetDpkRequirements.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetDpkRequirements.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetDpkRequirementsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetDpkRequirementsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetPreview.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetPreview.g.cs
index 7bc65ed..107935a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetPreview.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetPreview.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetPreviewResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetPreviewResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetRevision.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetRevision.g.cs
index 069a5e7..b54adf4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetRevision.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetRevision.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetRevisionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessGetRevisionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetRevisions.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetRevisions.g.cs
index 779fab8..90407db 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetRevisions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.GetRevisions.g.cs
@@ -376,17 +376,15 @@ partial void ProcessGetRevisionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessGetRevisionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.Publish.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.Publish.g.cs
index 3d1c01f..cb9217b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.Publish.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.Publish.g.cs
@@ -369,17 +369,15 @@ partial void ProcessPublishResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -416,17 +414,15 @@ partial void ProcessPublishResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.Query.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.Query.g.cs
index b1a341c..7e49a18 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.Query.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.Query.g.cs
@@ -367,17 +367,15 @@ partial void ProcessQueryResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessQueryResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.DpkClient.Update.g.cs b/src/libs/Dataloop/Generated/Dataloop.DpkClient.Update.g.cs
index 8c19d35..440a0cf 100644
--- a/src/libs/Dataloop/Generated/Dataloop.DpkClient.Update.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.DpkClient.Update.g.cs
@@ -378,17 +378,15 @@ partial void ProcessUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -425,17 +423,15 @@ partial void ProcessUpdateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.Exceptions.g.cs b/src/libs/Dataloop/Generated/Dataloop.Exceptions.g.cs
index 1ae8447..3f34b2f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.Exceptions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.Exceptions.g.cs
@@ -12,16 +12,19 @@ public partial class ApiException : global::System.Exception
/// The HTTP status code of the response.
///
public global::System.Net.HttpStatusCode StatusCode { get; }
+
///
/// The response body as a string, or null if the body could not be read.
/// This is always populated for error responses regardless of the ReadResponseAsString setting.
/// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read.
///
public string? ResponseBody { get; set; }
+
///
/// The response headers.
///
public global::System.Collections.Generic.Dictionary>? ResponseHeaders { get; set; }
+
///
/// Initializes a new instance of the class.
///
@@ -49,6 +52,103 @@ public ApiException(string message, global::System.Exception? innerException, gl
{
StatusCode = statusCode;
}
+
+ ///
+ /// Constructs an instance whose runtime type matches the response status code when the typed exception hierarchy is enabled. Always returns a plain when the hierarchy is disabled.
+ ///
+ /// The HTTP status code of the response.
+ /// The error message.
+ /// An inner exception, when one is available.
+ /// The response headers; consulted for 429 Retry-After parsing when present.
+ public static global::Dataloop.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::Dataloop.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body and headers populated.
+ ///
+ public static global::Dataloop.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException,
+ string? responseBody,
+ global::System.Collections.Generic.Dictionary>? responseHeaders)
+ {
+ var exception = global::Dataloop.ApiException.Create(statusCode, message, innerException, responseHeaders);
+ exception.ResponseBody = responseBody;
+ exception.ResponseHeaders = responseHeaders;
+ return exception;
+ }
+
+ ///
+ /// Parses a Retry-After response header (delta-seconds or HTTP-date) into a .
+ /// Returns null when the header is missing or unparseable. Public so consumer code that observes
+ /// directly can recover the value without re-implementing the parser.
+ ///
+ public static global::System.TimeSpan? TryParseRetryAfter(
+ global::System.Collections.Generic.IDictionary>? headers)
+ {
+ if (headers == null)
+ {
+ return null;
+ }
+
+ global::System.Collections.Generic.IEnumerable? values = null;
+ foreach (var entry in headers)
+ {
+ if (string.Equals(entry.Key, "Retry-After", global::System.StringComparison.OrdinalIgnoreCase))
+ {
+ values = entry.Value;
+ break;
+ }
+ }
+
+ if (values == null)
+ {
+ return null;
+ }
+
+ string? raw = null;
+ foreach (var value in values)
+ {
+ if (!string.IsNullOrWhiteSpace(value))
+ {
+ raw = value.Trim();
+ break;
+ }
+ }
+
+ if (string.IsNullOrEmpty(raw))
+ {
+ return null;
+ }
+
+ if (int.TryParse(
+ raw,
+ global::System.Globalization.NumberStyles.Integer,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ out var seconds) && seconds >= 0)
+ {
+ return global::System.TimeSpan.FromSeconds(seconds);
+ }
+
+ if (global::System.DateTimeOffset.TryParse(
+ raw,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal,
+ out var when))
+ {
+ var delta = when - global::System.DateTimeOffset.UtcNow;
+ return delta > global::System.TimeSpan.Zero ? delta : global::System.TimeSpan.Zero;
+ }
+
+ return null;
+ }
}
///
@@ -88,5 +188,39 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode
public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode)
{
}
+
+ ///
+ /// Constructs an whose runtime type matches the response status code when the typed exception hierarchy is enabled.
+ ///
+ /// The HTTP status code of the response.
+ /// The error message.
+ /// An inner exception, when one is available.
+ /// The response headers; consulted for 429 Retry-After parsing when present.
+ public static new global::Dataloop.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException = null,
+ global::System.Collections.Generic.IDictionary>? responseHeaders = null)
+ {
+ return new global::Dataloop.ApiException(message, innerException, statusCode);
+ }
+
+ ///
+ /// Convenience overload that constructs an with response body, object, and headers populated.
+ ///
+ public static global::Dataloop.ApiException Create(
+ global::System.Net.HttpStatusCode statusCode,
+ string message,
+ global::System.Exception? innerException,
+ string? responseBody,
+ T? responseObject,
+ global::System.Collections.Generic.Dictionary>? responseHeaders)
+ {
+ var exception = global::Dataloop.ApiException.Create(statusCode, message, innerException, responseHeaders);
+ exception.ResponseBody = responseBody;
+ exception.ResponseObject = responseObject;
+ exception.ResponseHeaders = responseHeaders;
+ return exception;
+ }
}
}
\ No newline at end of file
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.CreateExecution.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.CreateExecution.g.cs
index 5bf65ab..654c031 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.CreateExecution.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.CreateExecution.g.cs
@@ -430,17 +430,15 @@ partial void ProcessCreateExecutionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -477,17 +475,15 @@ partial void ProcessCreateExecutionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetExecution.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetExecution.g.cs
index 62083a5..3645077 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetExecution.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetExecution.g.cs
@@ -398,17 +398,15 @@ partial void ProcessGetExecutionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -445,17 +443,15 @@ partial void ProcessGetExecutionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetExecutionCounters.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetExecutionCounters.g.cs
index cbb6eb6..c246e80 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetExecutionCounters.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetExecutionCounters.g.cs
@@ -359,17 +359,15 @@ partial void ProcessGetExecutionCountersResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -406,17 +404,15 @@ partial void ProcessGetExecutionCountersResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetWorkload.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetWorkload.g.cs
index 963a38a..bf079cd 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetWorkload.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.GetWorkload.g.cs
@@ -367,17 +367,15 @@ partial void ProcessGetWorkloadResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessGetWorkloadResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.IncrementExecutionAttempts.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.IncrementExecutionAttempts.g.cs
index 84001f1..e050786 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.IncrementExecutionAttempts.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.IncrementExecutionAttempts.g.cs
@@ -356,17 +356,15 @@ partial void ProcessIncrementExecutionAttemptsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessIncrementExecutionAttemptsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.ListExecutions.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.ListExecutions.g.cs
index 4319f15..2a12180 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.ListExecutions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.ListExecutions.g.cs
@@ -479,17 +479,15 @@ partial void ProcessListExecutionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -526,17 +524,15 @@ partial void ProcessListExecutionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.Nack.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.Nack.g.cs
index 0b31f2e..28be381 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.Nack.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.Nack.g.cs
@@ -376,17 +376,15 @@ partial void ProcessNackResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessNackResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.PushProgress.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.PushProgress.g.cs
index e7f880a..fef0c36 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.PushProgress.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.PushProgress.g.cs
@@ -376,17 +376,15 @@ partial void ProcessPushProgressResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessPushProgressResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.RerunExecution.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.RerunExecution.g.cs
index 89c8549..60bb9c7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.RerunExecution.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.RerunExecution.g.cs
@@ -398,17 +398,15 @@ partial void ProcessRerunExecutionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -445,17 +443,15 @@ partial void ProcessRerunExecutionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.RerunExecutionQuery.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.RerunExecutionQuery.g.cs
index 61c3371..334e1b8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.RerunExecutionQuery.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.RerunExecutionQuery.g.cs
@@ -401,17 +401,15 @@ partial void ProcessRerunExecutionQueryResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -448,17 +446,15 @@ partial void ProcessRerunExecutionQueryResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.TerminateExecution.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.TerminateExecution.g.cs
index 0eabb65..d1b143d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.TerminateExecution.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.TerminateExecution.g.cs
@@ -404,17 +404,15 @@ partial void ProcessTerminateExecutionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessTerminateExecutionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.UpdateExecution.g.cs b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.UpdateExecution.g.cs
index f1a538d..d9d87d8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.UpdateExecution.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ExecutionsClient.UpdateExecution.g.cs
@@ -404,17 +404,15 @@ partial void ProcessUpdateExecutionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessUpdateExecutionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.AddFeatureSets.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.AddFeatureSets.g.cs
index d4034de..31c7325 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.AddFeatureSets.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.AddFeatureSets.g.cs
@@ -382,17 +382,16 @@ partial void ProcessAddFeatureSetsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -426,17 +425,15 @@ partial void ProcessAddFeatureSetsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -473,17 +470,15 @@ partial void ProcessAddFeatureSetsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.DeleteFeatureSet.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.DeleteFeatureSet.g.cs
index 2997466..cf3586c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.DeleteFeatureSet.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.DeleteFeatureSet.g.cs
@@ -372,17 +372,15 @@ partial void ProcessDeleteFeatureSetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -417,17 +415,15 @@ partial void ProcessDeleteFeatureSetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.EditFeatureSets.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.EditFeatureSets.g.cs
index dd2e83f..894d55e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.EditFeatureSets.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.EditFeatureSets.g.cs
@@ -376,17 +376,15 @@ partial void ProcessEditFeatureSetsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessEditFeatureSetsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.GetFeatureSet.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.GetFeatureSet.g.cs
index 714a1d0..4b8fdd1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.GetFeatureSet.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.GetFeatureSet.g.cs
@@ -374,17 +374,15 @@ partial void ProcessGetFeatureSetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -421,17 +419,15 @@ partial void ProcessGetFeatureSetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.ListFeatureSets.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.ListFeatureSets.g.cs
index 0d743b6..031a536 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.ListFeatureSets.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureSetsClient.ListFeatureSets.g.cs
@@ -383,17 +383,15 @@ partial void ProcessListFeatureSetsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -430,17 +428,15 @@ partial void ProcessListFeatureSetsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.AddFeatureVectors.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.AddFeatureVectors.g.cs
index 5711940..dd55175 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.AddFeatureVectors.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.AddFeatureVectors.g.cs
@@ -382,17 +382,16 @@ partial void ProcessAddFeatureVectorsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -426,17 +425,15 @@ partial void ProcessAddFeatureVectorsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -473,17 +470,15 @@ partial void ProcessAddFeatureVectorsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.AggregateFeatureVectorsInProjectByFeaturSetsAndDatasets.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.AggregateFeatureVectorsInProjectByFeaturSetsAndDatasets.g.cs
index 151f8d9..0d7b016 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.AggregateFeatureVectorsInProjectByFeaturSetsAndDatasets.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.AggregateFeatureVectorsInProjectByFeaturSetsAndDatasets.g.cs
@@ -367,17 +367,15 @@ partial void ProcessAggregateFeatureVectorsInProjectByFeaturSetsAndDatasetsRespo
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessAggregateFeatureVectorsInProjectByFeaturSetsAndDatasetsRespo
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.DeleteFeatureVector.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.DeleteFeatureVector.g.cs
index 391ef945..1bbbc1e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.DeleteFeatureVector.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.DeleteFeatureVector.g.cs
@@ -360,17 +360,15 @@ await DeleteFeatureVectorAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -398,17 +396,15 @@ await DeleteFeatureVectorAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.GetFeatureVector.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.GetFeatureVector.g.cs
index fdc5126..a822765 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.GetFeatureVector.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.GetFeatureVector.g.cs
@@ -372,17 +372,15 @@ partial void ProcessGetFeatureVectorResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -419,17 +417,15 @@ partial void ProcessGetFeatureVectorResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.GetFeatureVectors.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.GetFeatureVectors.g.cs
index b585311..a05c724 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.GetFeatureVectors.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.GetFeatureVectors.g.cs
@@ -369,17 +369,15 @@ partial void ProcessGetFeatureVectorsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -416,17 +414,15 @@ partial void ProcessGetFeatureVectorsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.QueryFeatureVectors.g.cs b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.QueryFeatureVectors.g.cs
index 1ed84c7..56963bf 100644
--- a/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.QueryFeatureVectors.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.FeatureVectorsClient.QueryFeatureVectors.g.cs
@@ -371,17 +371,15 @@ partial void ProcessQueryFeatureVectorsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -418,17 +416,15 @@ partial void ProcessQueryFeatureVectorsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.AddGroupMember.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.AddGroupMember.g.cs
index c67f337..2a5ba93 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.AddGroupMember.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.AddGroupMember.g.cs
@@ -376,17 +376,15 @@ partial void ProcessAddGroupMemberResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessAddGroupMemberResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.AddSubGroup.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.AddSubGroup.g.cs
index 495d96e..81aceb4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.AddSubGroup.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.AddSubGroup.g.cs
@@ -378,17 +378,15 @@ partial void ProcessAddSubGroupResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -425,17 +423,15 @@ partial void ProcessAddSubGroupResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.CreateGroup.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.CreateGroup.g.cs
index 603e51e..f603440 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.CreateGroup.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.CreateGroup.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateGroupResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateGroupResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.DestroyGroup.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.DestroyGroup.g.cs
index c54ee10..9d97e17 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.DestroyGroup.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.DestroyGroup.g.cs
@@ -342,17 +342,15 @@ await DestroyGroupAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await DestroyGroupAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.FindGroup.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.FindGroup.g.cs
index 606562a..d90d563 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.FindGroup.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.FindGroup.g.cs
@@ -356,17 +356,15 @@ partial void ProcessFindGroupResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessFindGroupResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.FindGroups.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.FindGroups.g.cs
index a24ce3a..3d9f007 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.FindGroups.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.FindGroups.g.cs
@@ -347,17 +347,15 @@ partial void ProcessFindGroupsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessFindGroupsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetGroupMembers.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetGroupMembers.g.cs
index 36493b3..fce2d8b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetGroupMembers.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetGroupMembers.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetGroupMembersResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetGroupMembersResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetSubGroupTree.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetSubGroupTree.g.cs
index 175074c..d3b6663 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetSubGroupTree.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetSubGroupTree.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetSubGroupTreeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetSubGroupTreeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetSubGroups.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetSubGroups.g.cs
index 68c0fca..67aa2ed 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetSubGroups.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.GetSubGroups.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetSubGroupsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetSubGroupsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.RemoveGroupMember.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.RemoveGroupMember.g.cs
index e54c05c..ac9b9da 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.RemoveGroupMember.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.RemoveGroupMember.g.cs
@@ -351,17 +351,15 @@ await RemoveGroupMemberAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await RemoveGroupMemberAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.RemoveSubGroup.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.RemoveSubGroup.g.cs
index 5ed98b3..45c09e7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.RemoveSubGroup.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.RemoveSubGroup.g.cs
@@ -351,17 +351,15 @@ await RemoveSubGroupAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await RemoveSubGroupAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.UpdateGroup.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.UpdateGroup.g.cs
index 2669ec1..e361015 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.UpdateGroup.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.UpdateGroup.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateGroupResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateGroupResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.UpdateGroupOwner.g.cs b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.UpdateGroupOwner.g.cs
index a220654..ba4f26e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GroupsClient.UpdateGroupOwner.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GroupsClient.UpdateGroupOwner.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateGroupOwnerResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateGroupOwnerResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.AddOrgToGuest.g.cs b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.AddOrgToGuest.g.cs
index b18ce2c..ae28019 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.AddOrgToGuest.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.AddOrgToGuest.g.cs
@@ -385,17 +385,15 @@ partial void ProcessAddOrgToGuestResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessAddOrgToGuestResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.CreateProjectGuest.g.cs b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.CreateProjectGuest.g.cs
index 67b4976..74d6115 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.CreateProjectGuest.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.CreateProjectGuest.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCreateProjectGuestResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessCreateProjectGuestResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.GetProjectGuest.g.cs b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.GetProjectGuest.g.cs
index fab535c..348ef70 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.GetProjectGuest.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.GetProjectGuest.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetProjectGuestResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessGetProjectGuestResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.ListProjectGuests.g.cs b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.ListProjectGuests.g.cs
index c2f46a3..f01e19b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.ListProjectGuests.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.ListProjectGuests.g.cs
@@ -356,17 +356,15 @@ partial void ProcessListProjectGuestsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessListProjectGuestsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.RemoveProjectGuest.g.cs b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.RemoveProjectGuest.g.cs
index 0d16d48..f0a0376 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.RemoveProjectGuest.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.RemoveProjectGuest.g.cs
@@ -351,17 +351,15 @@ await RemoveProjectGuestAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await RemoveProjectGuestAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.UpdateProjectGuest.g.cs b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.UpdateProjectGuest.g.cs
index 84b435a..b31669a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.GuestsClient.UpdateProjectGuest.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.GuestsClient.UpdateProjectGuest.g.cs
@@ -385,17 +385,15 @@ partial void ProcessUpdateProjectGuestResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessUpdateProjectGuestResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.InstanceCatalogClient.GetInstanceCatalog.g.cs b/src/libs/Dataloop/Generated/Dataloop.InstanceCatalogClient.GetInstanceCatalog.g.cs
index fdd86cb..04ef024 100644
--- a/src/libs/Dataloop/Generated/Dataloop.InstanceCatalogClient.GetInstanceCatalog.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.InstanceCatalogClient.GetInstanceCatalog.g.cs
@@ -345,17 +345,15 @@ partial void ProcessGetInstanceCatalogResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -390,17 +388,15 @@ partial void ProcessGetInstanceCatalogResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.IntegrationsClient.GetIntegration.g.cs b/src/libs/Dataloop/Generated/Dataloop.IntegrationsClient.GetIntegration.g.cs
index c291448..4002d6d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.IntegrationsClient.GetIntegration.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.IntegrationsClient.GetIntegration.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetIntegrationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetIntegrationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.GetInvoice.g.cs b/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.GetInvoice.g.cs
index 9406f52..74c0794 100644
--- a/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.GetInvoice.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.GetInvoice.g.cs
@@ -347,17 +347,16 @@ partial void ProcessGetInvoiceResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -380,17 +379,16 @@ partial void ProcessGetInvoiceResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -413,17 +411,16 @@ partial void ProcessGetInvoiceResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -446,17 +443,16 @@ partial void ProcessGetInvoiceResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -479,17 +475,16 @@ partial void ProcessGetInvoiceResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -523,17 +518,15 @@ partial void ProcessGetInvoiceResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -570,17 +563,15 @@ partial void ProcessGetInvoiceResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.ListAccountInvoices.g.cs b/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.ListAccountInvoices.g.cs
index 8b4f4ec..f29219c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.ListAccountInvoices.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.ListAccountInvoices.g.cs
@@ -378,17 +378,16 @@ partial void ProcessListAccountInvoicesResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -411,17 +410,16 @@ partial void ProcessListAccountInvoicesResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -444,17 +442,16 @@ partial void ProcessListAccountInvoicesResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -488,17 +485,15 @@ partial void ProcessListAccountInvoicesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -535,17 +530,15 @@ partial void ProcessListAccountInvoicesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.StreamInvoicePdf.g.cs b/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.StreamInvoicePdf.g.cs
index 3f53c96..c311c31 100644
--- a/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.StreamInvoicePdf.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.InvoicesClient.StreamInvoicePdf.g.cs
@@ -342,17 +342,15 @@ await StreamInvoicePdfAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await StreamInvoicePdfAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ArchiveItemAnnotationToStorage.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ArchiveItemAnnotationToStorage.g.cs
index ab21d16..3446822 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ArchiveItemAnnotationToStorage.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ArchiveItemAnnotationToStorage.g.cs
@@ -376,17 +376,15 @@ partial void ProcessArchiveItemAnnotationToStorageResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessArchiveItemAnnotationToStorageResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.CreateAnnotations.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.CreateAnnotations.g.cs
index 506af60..9d16f4c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.CreateAnnotations.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.CreateAnnotations.g.cs
@@ -406,17 +406,15 @@ partial void ProcessCreateAnnotationsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -453,17 +451,15 @@ partial void ProcessCreateAnnotationsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.DeleteItemAnnotation.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.DeleteItemAnnotation.g.cs
index 9347ab2..b8e26dd 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.DeleteItemAnnotation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.DeleteItemAnnotation.g.cs
@@ -351,17 +351,15 @@ await DeleteItemAnnotationAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await DeleteItemAnnotationAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.GetItemAnnotation.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.GetItemAnnotation.g.cs
index 1c14003..fdcd9c8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.GetItemAnnotation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.GetItemAnnotation.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetItemAnnotationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessGetItemAnnotationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ItemAnnotationIssues.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ItemAnnotationIssues.g.cs
index e5311f4..9a41788 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ItemAnnotationIssues.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ItemAnnotationIssues.g.cs
@@ -365,17 +365,15 @@ partial void ProcessItemAnnotationIssuesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessItemAnnotationIssuesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ListItemAnnotations.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ListItemAnnotations.g.cs
index 521e661..c426057 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ListItemAnnotations.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.ListItemAnnotations.g.cs
@@ -356,17 +356,15 @@ partial void ProcessListItemAnnotationsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessListItemAnnotationsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.RestoreArchivedItemAnnotationToDb.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.RestoreArchivedItemAnnotationToDb.g.cs
index f1d4959..6f62e43 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.RestoreArchivedItemAnnotationToDb.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.RestoreArchivedItemAnnotationToDb.g.cs
@@ -376,17 +376,15 @@ partial void ProcessRestoreArchivedItemAnnotationToDbResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessRestoreArchivedItemAnnotationToDbResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.UpdateItemAnnotation.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.UpdateItemAnnotation.g.cs
index e01b1c4..2dd901b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.UpdateItemAnnotation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemAnnotationsClient.UpdateItemAnnotation.g.cs
@@ -407,17 +407,15 @@ partial void ProcessUpdateItemAnnotationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -454,17 +452,15 @@ partial void ProcessUpdateItemAnnotationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CloneItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CloneItem.g.cs
index 4dba857..5ba7fd9 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CloneItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CloneItem.g.cs
@@ -428,17 +428,15 @@ partial void ProcessCloneItemResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -475,17 +473,15 @@ partial void ProcessCloneItemResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CreateItemRevision.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CreateItemRevision.g.cs
index 409b5e9..56579c8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CreateItemRevision.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CreateItemRevision.g.cs
@@ -356,17 +356,15 @@ partial void ProcessCreateItemRevisionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessCreateItemRevisionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CreateItemSnapshot.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CreateItemSnapshot.g.cs
index 99dd055..eedd815 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CreateItemSnapshot.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.CreateItemSnapshot.g.cs
@@ -358,17 +358,15 @@ partial void ProcessCreateItemSnapshotResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -405,17 +403,15 @@ partial void ProcessCreateItemSnapshotResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.EditItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.EditItem.g.cs
index b7e7c3b..5fb827c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.EditItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.EditItem.g.cs
@@ -428,17 +428,15 @@ partial void ProcessEditItemResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -475,17 +473,15 @@ partial void ProcessEditItemResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.GetDirectoryChildItems.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.GetDirectoryChildItems.g.cs
index 6c5a811..b76f865 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.GetDirectoryChildItems.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.GetDirectoryChildItems.g.cs
@@ -378,17 +378,15 @@ partial void ProcessGetDirectoryChildItemsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -425,17 +423,15 @@ partial void ProcessGetDirectoryChildItemsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.GetItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.GetItem.g.cs
index 12fa907..6057207 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.GetItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.GetItem.g.cs
@@ -390,17 +390,15 @@ partial void ProcessGetItemResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -437,17 +435,15 @@ partial void ProcessGetItemResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.RemoveItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.RemoveItem.g.cs
index d6d4052..c4e6653 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.RemoveItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.RemoveItem.g.cs
@@ -378,17 +378,15 @@ await RemoveItemAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -416,17 +414,15 @@ await RemoveItemAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.StreamItem.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.StreamItem.g.cs
index f3444db..8af9519 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.StreamItem.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.StreamItem.g.cs
@@ -342,17 +342,15 @@ await StreamItemAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await StreamItemAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.StreamItemThumbnail.g.cs b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.StreamItemThumbnail.g.cs
index cee8175..e7d61f1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ItemsClient.StreamItemThumbnail.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ItemsClient.StreamItemThumbnail.g.cs
@@ -394,17 +394,15 @@ await StreamItemThumbnailAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ await StreamItemThumbnailAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.LabelsClient.CreateOrUpdateLabels.g.cs b/src/libs/Dataloop/Generated/Dataloop.LabelsClient.CreateOrUpdateLabels.g.cs
index 19298a4..a753fcb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.LabelsClient.CreateOrUpdateLabels.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.LabelsClient.CreateOrUpdateLabels.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCreateOrUpdateLabelsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessCreateOrUpdateLabelsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.LabelsClient.DeleteLabel.g.cs b/src/libs/Dataloop/Generated/Dataloop.LabelsClient.DeleteLabel.g.cs
index e6a865b..d4690df 100644
--- a/src/libs/Dataloop/Generated/Dataloop.LabelsClient.DeleteLabel.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.LabelsClient.DeleteLabel.g.cs
@@ -351,17 +351,15 @@ await DeleteLabelAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await DeleteLabelAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.LabelsClient.QueryOntologyLabels.g.cs b/src/libs/Dataloop/Generated/Dataloop.LabelsClient.QueryOntologyLabels.g.cs
index 2ae6aa6..eb9bc26 100644
--- a/src/libs/Dataloop/Generated/Dataloop.LabelsClient.QueryOntologyLabels.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.LabelsClient.QueryOntologyLabels.g.cs
@@ -376,17 +376,15 @@ partial void ProcessQueryOntologyLabelsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessQueryOntologyLabelsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.LabelsClient.UpdateLabels.g.cs b/src/libs/Dataloop/Generated/Dataloop.LabelsClient.UpdateLabels.g.cs
index 84f9b43..c8f5163 100644
--- a/src/libs/Dataloop/Generated/Dataloop.LabelsClient.UpdateLabels.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.LabelsClient.UpdateLabels.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateLabelsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateLabelsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.CalaculateThePrecisionAndRecallForAModel.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.CalaculateThePrecisionAndRecallForAModel.g.cs
index 771b8b5..bb52a5d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.CalaculateThePrecisionAndRecallForAModel.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.CalaculateThePrecisionAndRecallForAModel.g.cs
@@ -358,17 +358,16 @@ partial void ProcessCalaculateThePrecisionAndRecallForAModelResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -391,17 +390,16 @@ partial void ProcessCalaculateThePrecisionAndRecallForAModelResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -424,17 +422,16 @@ partial void ProcessCalaculateThePrecisionAndRecallForAModelResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -457,17 +454,16 @@ partial void ProcessCalaculateThePrecisionAndRecallForAModelResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -490,17 +486,16 @@ partial void ProcessCalaculateThePrecisionAndRecallForAModelResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -532,17 +527,15 @@ partial void ProcessCalaculateThePrecisionAndRecallForAModelResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -577,17 +570,15 @@ partial void ProcessCalaculateThePrecisionAndRecallForAModelResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.DeleteMetric.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.DeleteMetric.g.cs
index 3ab33d1..6303595 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.DeleteMetric.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.DeleteMetric.g.cs
@@ -347,17 +347,16 @@ partial void ProcessDeleteMetricResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -380,17 +379,16 @@ partial void ProcessDeleteMetricResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -413,17 +411,16 @@ partial void ProcessDeleteMetricResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -446,17 +443,16 @@ partial void ProcessDeleteMetricResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -479,17 +475,16 @@ partial void ProcessDeleteMetricResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -521,17 +516,15 @@ partial void ProcessDeleteMetricResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -566,17 +559,15 @@ partial void ProcessDeleteMetricResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.GenerateModelMetricsReport.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.GenerateModelMetricsReport.g.cs
index 5d9bc99..6ac1742 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.GenerateModelMetricsReport.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.GenerateModelMetricsReport.g.cs
@@ -358,17 +358,16 @@ partial void ProcessGenerateModelMetricsReportResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -391,17 +390,16 @@ partial void ProcessGenerateModelMetricsReportResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -424,17 +422,16 @@ partial void ProcessGenerateModelMetricsReportResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -457,17 +454,16 @@ partial void ProcessGenerateModelMetricsReportResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -490,17 +486,16 @@ partial void ProcessGenerateModelMetricsReportResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -534,17 +529,15 @@ partial void ProcessGenerateModelMetricsReportResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -581,17 +574,15 @@ partial void ProcessGenerateModelMetricsReportResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.PublishModelMetrics.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.PublishModelMetrics.g.cs
index 366c5c2..04aa068 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.PublishModelMetrics.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.PublishModelMetrics.g.cs
@@ -356,17 +356,16 @@ partial void ProcessPublishModelMetricsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -389,17 +388,16 @@ partial void ProcessPublishModelMetricsResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -422,17 +420,16 @@ partial void ProcessPublishModelMetricsResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -455,17 +452,16 @@ partial void ProcessPublishModelMetricsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -488,17 +484,16 @@ partial void ProcessPublishModelMetricsResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -532,17 +527,15 @@ partial void ProcessPublishModelMetricsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -579,17 +572,15 @@ partial void ProcessPublishModelMetricsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.QueryModelMetrics.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.QueryModelMetrics.g.cs
index 80ad0d6..5452623 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.QueryModelMetrics.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelMetricsClient.QueryModelMetrics.g.cs
@@ -358,17 +358,16 @@ partial void ProcessQueryModelMetricsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -391,17 +390,16 @@ partial void ProcessQueryModelMetricsResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -424,17 +422,16 @@ partial void ProcessQueryModelMetricsResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -457,17 +454,16 @@ partial void ProcessQueryModelMetricsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -490,17 +486,16 @@ partial void ProcessQueryModelMetricsResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -534,17 +529,15 @@ partial void ProcessQueryModelMetricsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -581,17 +574,15 @@ partial void ProcessQueryModelMetricsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.CloneModel.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.CloneModel.g.cs
index 4cb0d7f..e9dc022 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.CloneModel.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.CloneModel.g.cs
@@ -371,17 +371,16 @@ partial void ProcessCloneModelResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -404,17 +403,16 @@ partial void ProcessCloneModelResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -448,17 +446,15 @@ partial void ProcessCloneModelResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -495,17 +491,15 @@ partial void ProcessCloneModelResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.CreateModel.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.CreateModel.g.cs
index 98c29b3..2b7bc1a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.CreateModel.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.CreateModel.g.cs
@@ -358,17 +358,16 @@ partial void ProcessCreateModelResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -391,17 +390,16 @@ partial void ProcessCreateModelResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -424,17 +422,16 @@ partial void ProcessCreateModelResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -457,17 +454,16 @@ partial void ProcessCreateModelResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -490,17 +486,16 @@ partial void ProcessCreateModelResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -534,17 +529,15 @@ partial void ProcessCreateModelResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -581,17 +574,15 @@ partial void ProcessCreateModelResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.DeleteModel.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.DeleteModel.g.cs
index 4ca7c75..583ee69 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.DeleteModel.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.DeleteModel.g.cs
@@ -347,17 +347,16 @@ partial void ProcessDeleteModelResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -380,17 +379,16 @@ partial void ProcessDeleteModelResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -413,17 +411,16 @@ partial void ProcessDeleteModelResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -446,17 +443,16 @@ partial void ProcessDeleteModelResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -479,17 +475,16 @@ partial void ProcessDeleteModelResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -521,17 +516,15 @@ partial void ProcessDeleteModelResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -566,17 +559,15 @@ partial void ProcessDeleteModelResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.DeployModel.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.DeployModel.g.cs
index 721721d..bf621ee 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.DeployModel.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.DeployModel.g.cs
@@ -369,17 +369,16 @@ partial void ProcessDeployModelResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -402,17 +401,16 @@ partial void ProcessDeployModelResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -435,17 +433,16 @@ partial void ProcessDeployModelResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -468,17 +465,16 @@ partial void ProcessDeployModelResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -501,17 +497,16 @@ partial void ProcessDeployModelResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -543,17 +538,15 @@ partial void ProcessDeployModelResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -588,17 +581,15 @@ partial void ProcessDeployModelResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.EmbedDatasets.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.EmbedDatasets.g.cs
index ba26442..4f02698 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.EmbedDatasets.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.EmbedDatasets.g.cs
@@ -371,17 +371,16 @@ partial void ProcessEmbedDatasetsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -404,17 +403,16 @@ partial void ProcessEmbedDatasetsResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -448,17 +446,15 @@ partial void ProcessEmbedDatasetsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -495,17 +491,15 @@ partial void ProcessEmbedDatasetsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.EvaluateModel.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.EvaluateModel.g.cs
index 4a7c719..21789f7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.EvaluateModel.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.EvaluateModel.g.cs
@@ -369,17 +369,16 @@ partial void ProcessEvaluateModelResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -402,17 +401,16 @@ partial void ProcessEvaluateModelResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -435,17 +433,16 @@ partial void ProcessEvaluateModelResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -468,17 +465,16 @@ partial void ProcessEvaluateModelResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -501,17 +497,16 @@ partial void ProcessEvaluateModelResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -545,17 +540,15 @@ partial void ProcessEvaluateModelResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -592,17 +585,15 @@ partial void ProcessEvaluateModelResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ExtractItemFeatures.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ExtractItemFeatures.g.cs
index 55f6f97..5f1b89c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ExtractItemFeatures.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ExtractItemFeatures.g.cs
@@ -365,17 +365,16 @@ partial void ProcessExtractItemFeaturesResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -398,17 +397,16 @@ partial void ProcessExtractItemFeaturesResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -431,17 +429,16 @@ partial void ProcessExtractItemFeaturesResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -464,17 +461,16 @@ partial void ProcessExtractItemFeaturesResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -497,17 +493,16 @@ partial void ProcessExtractItemFeaturesResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -541,17 +536,15 @@ partial void ProcessExtractItemFeaturesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -588,17 +581,15 @@ partial void ProcessExtractItemFeaturesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.GetModel.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.GetModel.g.cs
index 995f5eb..fc8680b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.GetModel.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.GetModel.g.cs
@@ -347,17 +347,16 @@ partial void ProcessGetModelResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -380,17 +379,16 @@ partial void ProcessGetModelResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -413,17 +411,16 @@ partial void ProcessGetModelResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -446,17 +443,16 @@ partial void ProcessGetModelResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -479,17 +475,16 @@ partial void ProcessGetModelResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -523,17 +518,15 @@ partial void ProcessGetModelResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -570,17 +563,15 @@ partial void ProcessGetModelResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ListModels.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ListModels.g.cs
index 7ef3f30..d8ee7f8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ListModels.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ListModels.g.cs
@@ -380,17 +380,16 @@ partial void ProcessListModelsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -413,17 +412,16 @@ partial void ProcessListModelsResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -446,17 +444,16 @@ partial void ProcessListModelsResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -479,17 +476,16 @@ partial void ProcessListModelsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -512,17 +508,16 @@ partial void ProcessListModelsResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -556,17 +551,15 @@ partial void ProcessListModelsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -603,17 +596,15 @@ partial void ProcessListModelsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelPrediction.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelPrediction.g.cs
index 48e1977..f53e993 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelPrediction.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelPrediction.g.cs
@@ -369,17 +369,16 @@ partial void ProcessModelPredictionResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -402,17 +401,16 @@ partial void ProcessModelPredictionResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -435,17 +433,16 @@ partial void ProcessModelPredictionResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -468,17 +465,16 @@ partial void ProcessModelPredictionResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -501,17 +497,16 @@ partial void ProcessModelPredictionResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -545,17 +540,15 @@ partial void ProcessModelPredictionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -592,17 +585,15 @@ partial void ProcessModelPredictionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsDatasetsCount.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsDatasetsCount.g.cs
index 667d033..5ea4421 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsDatasetsCount.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsDatasetsCount.g.cs
@@ -338,17 +338,16 @@ partial void ProcessModelsDatasetsCountResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -371,17 +370,16 @@ partial void ProcessModelsDatasetsCountResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -404,17 +402,16 @@ partial void ProcessModelsDatasetsCountResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -437,17 +434,16 @@ partial void ProcessModelsDatasetsCountResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -470,17 +466,16 @@ partial void ProcessModelsDatasetsCountResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -514,17 +509,15 @@ partial void ProcessModelsDatasetsCountResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -561,17 +554,15 @@ partial void ProcessModelsDatasetsCountResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsExecutions.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsExecutions.g.cs
index 2b76050..f16f8fc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsExecutions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsExecutions.g.cs
@@ -358,17 +358,16 @@ partial void ProcessModelsExecutionsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -391,17 +390,16 @@ partial void ProcessModelsExecutionsResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -424,17 +422,16 @@ partial void ProcessModelsExecutionsResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -457,17 +454,16 @@ partial void ProcessModelsExecutionsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -490,17 +486,16 @@ partial void ProcessModelsExecutionsResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -534,17 +529,15 @@ partial void ProcessModelsExecutionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -581,17 +574,15 @@ partial void ProcessModelsExecutionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsServices.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsServices.g.cs
index 855394b..c2cf35f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsServices.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.ModelsServices.g.cs
@@ -358,17 +358,16 @@ partial void ProcessModelsServicesResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -391,17 +390,16 @@ partial void ProcessModelsServicesResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -424,17 +422,16 @@ partial void ProcessModelsServicesResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -457,17 +454,16 @@ partial void ProcessModelsServicesResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -490,17 +486,16 @@ partial void ProcessModelsServicesResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -534,17 +529,15 @@ partial void ProcessModelsServicesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -581,17 +574,15 @@ partial void ProcessModelsServicesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.QueryModels.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.QueryModels.g.cs
index 4adb867..ab49e08 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.QueryModels.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.QueryModels.g.cs
@@ -358,17 +358,16 @@ partial void ProcessQueryModelsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -391,17 +390,16 @@ partial void ProcessQueryModelsResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -424,17 +422,16 @@ partial void ProcessQueryModelsResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -457,17 +454,16 @@ partial void ProcessQueryModelsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -490,17 +486,16 @@ partial void ProcessQueryModelsResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -534,17 +529,15 @@ partial void ProcessQueryModelsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -581,17 +574,15 @@ partial void ProcessQueryModelsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.TrainModel.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.TrainModel.g.cs
index 0213bb3..3b476c0 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.TrainModel.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.TrainModel.g.cs
@@ -369,17 +369,16 @@ partial void ProcessTrainModelResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -402,17 +401,16 @@ partial void ProcessTrainModelResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -435,17 +433,16 @@ partial void ProcessTrainModelResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -468,17 +465,16 @@ partial void ProcessTrainModelResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -501,17 +497,16 @@ partial void ProcessTrainModelResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -545,17 +540,15 @@ partial void ProcessTrainModelResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -592,17 +585,15 @@ partial void ProcessTrainModelResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.UpdateModel.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.UpdateModel.g.cs
index 1f77f09..802eb67 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.UpdateModel.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.UpdateModel.g.cs
@@ -389,17 +389,16 @@ partial void ProcessUpdateModelResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -422,17 +421,16 @@ partial void ProcessUpdateModelResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -455,17 +453,16 @@ partial void ProcessUpdateModelResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -488,17 +485,16 @@ partial void ProcessUpdateModelResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -521,17 +517,16 @@ partial void ProcessUpdateModelResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -565,17 +560,15 @@ partial void ProcessUpdateModelResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -612,17 +605,15 @@ partial void ProcessUpdateModelResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.UpdateModelDeployment.g.cs b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.UpdateModelDeployment.g.cs
index 3c45222..05de86a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ModelsClient.UpdateModelDeployment.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ModelsClient.UpdateModelDeployment.g.cs
@@ -369,17 +369,16 @@ partial void ProcessUpdateModelDeploymentResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -402,17 +401,16 @@ partial void ProcessUpdateModelDeploymentResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -446,17 +444,15 @@ partial void ProcessUpdateModelDeploymentResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -493,17 +489,15 @@ partial void ProcessUpdateModelDeploymentResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.AddLabels.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.AddLabels.g.cs
index cb6de69..40081b7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.AddLabels.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.AddLabels.g.cs
@@ -376,17 +376,15 @@ partial void ProcessAddLabelsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessAddLabelsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.CreateAttributeSection.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.CreateAttributeSection.g.cs
index 8b51ac4..6a2b5ca 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.CreateAttributeSection.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.CreateAttributeSection.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCreateAttributeSectionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessCreateAttributeSectionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.CreateOntology.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.CreateOntology.g.cs
index b8a8562..97fd537 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.CreateOntology.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.CreateOntology.g.cs
@@ -403,17 +403,15 @@ partial void ProcessCreateOntologyResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -450,17 +448,15 @@ partial void ProcessCreateOntologyResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteAttributeSection.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteAttributeSection.g.cs
index 1d97077..a9d37db 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteAttributeSection.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteAttributeSection.g.cs
@@ -351,17 +351,15 @@ await DeleteAttributeSectionAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await DeleteAttributeSectionAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteAttributes.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteAttributes.g.cs
index 9224f81..59c76a2 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteAttributes.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteAttributes.g.cs
@@ -362,17 +362,15 @@ await DeleteAttributesAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -400,17 +398,15 @@ await DeleteAttributesAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteOntology.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteOntology.g.cs
index b6910ba..056efaa 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteOntology.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.DeleteOntology.g.cs
@@ -370,17 +370,15 @@ await DeleteOntologyAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -408,17 +406,15 @@ await DeleteOntologyAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.FindOntologies.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.FindOntologies.g.cs
index 0e7ec2d..615efce 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.FindOntologies.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.FindOntologies.g.cs
@@ -399,17 +399,15 @@ partial void ProcessFindOntologiesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -446,17 +444,15 @@ partial void ProcessFindOntologiesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.GetOntology.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.GetOntology.g.cs
index 589b226..68a60c6 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.GetOntology.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.GetOntology.g.cs
@@ -373,17 +373,16 @@ partial void ProcessGetOntologyResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -406,17 +405,16 @@ partial void ProcessGetOntologyResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -450,17 +448,15 @@ partial void ProcessGetOntologyResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -497,17 +493,15 @@ partial void ProcessGetOntologyResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.QueryOntologyAttributes.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.QueryOntologyAttributes.g.cs
index 2f6be29..ebbd64d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.QueryOntologyAttributes.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.QueryOntologyAttributes.g.cs
@@ -376,17 +376,15 @@ partial void ProcessQueryOntologyAttributesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessQueryOntologyAttributesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateAttributeSection.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateAttributeSection.g.cs
index d67f4a8..7dcb44c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateAttributeSection.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateAttributeSection.g.cs
@@ -385,17 +385,15 @@ partial void ProcessUpdateAttributeSectionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessUpdateAttributeSectionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateAttributes.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateAttributes.g.cs
index be6d9c8..22d3105 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateAttributes.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateAttributes.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateAttributesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateAttributesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateLabels.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateLabels.g.cs
index 7863dd0..0c41dc9 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateLabels.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateLabels.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateLabelsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateLabelsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateOntology.g.cs b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateOntology.g.cs
index f7a8c8a..cf8b236 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateOntology.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OntologiesClient.UpdateOntology.g.cs
@@ -406,17 +406,15 @@ partial void ProcessUpdateOntologyResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -453,17 +451,15 @@ partial void ProcessUpdateOntologyResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.CreateIntegration.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.CreateIntegration.g.cs
index 438aa30..b6ed033 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.CreateIntegration.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.CreateIntegration.g.cs
@@ -444,17 +444,15 @@ partial void ProcessCreateIntegrationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -491,17 +489,15 @@ partial void ProcessCreateIntegrationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.GetIntegration.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.GetIntegration.g.cs
index 510267c..64f3964 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.GetIntegration.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.GetIntegration.g.cs
@@ -395,17 +395,15 @@ partial void ProcessGetIntegrationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -442,17 +440,15 @@ partial void ProcessGetIntegrationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.GetOrgIntegrations.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.GetOrgIntegrations.g.cs
index a27ce75..b3472ed 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.GetOrgIntegrations.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.GetOrgIntegrations.g.cs
@@ -386,17 +386,15 @@ partial void ProcessGetOrgIntegrationsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -433,17 +431,15 @@ partial void ProcessGetOrgIntegrationsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.RemoveIntegration.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.RemoveIntegration.g.cs
index adead0c..8e86252 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.RemoveIntegration.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.RemoveIntegration.g.cs
@@ -399,17 +399,15 @@ partial void ProcessRemoveIntegrationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -446,17 +444,15 @@ partial void ProcessRemoveIntegrationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.UpdateIntegration.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.UpdateIntegration.g.cs
index 1585310..938e89a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.UpdateIntegration.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrgIntegrationsClient.UpdateIntegration.g.cs
@@ -432,17 +432,15 @@ partial void ProcessUpdateIntegrationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -479,17 +477,15 @@ partial void ProcessUpdateIntegrationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.AddAccountToOrg.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.AddAccountToOrg.g.cs
index 8e02532..9319e61 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.AddAccountToOrg.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.AddAccountToOrg.g.cs
@@ -365,17 +365,15 @@ partial void ProcessAddAccountToOrgResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessAddAccountToOrgResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.AddOrgMembers.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.AddOrgMembers.g.cs
index 45b014c..ead05ed 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.AddOrgMembers.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.AddOrgMembers.g.cs
@@ -420,17 +420,15 @@ partial void ProcessAddOrgMembersResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -467,17 +465,15 @@ partial void ProcessAddOrgMembersResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.CreateOrg.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.CreateOrg.g.cs
index afe0237..a3e424d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.CreateOrg.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.CreateOrg.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateOrgResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateOrgResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.CreateOrgBot.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.CreateOrgBot.g.cs
index a264a5c..27509f7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.CreateOrgBot.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.CreateOrgBot.g.cs
@@ -380,17 +380,15 @@ partial void ProcessCreateOrgBotResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -427,17 +425,15 @@ partial void ProcessCreateOrgBotResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.DeleteOrgBot.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.DeleteOrgBot.g.cs
index d71cc69..fe4395d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.DeleteOrgBot.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.DeleteOrgBot.g.cs
@@ -353,17 +353,15 @@ await DeleteOrgBotAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -391,17 +389,15 @@ await DeleteOrgBotAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.FindOrg.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.FindOrg.g.cs
index 235c46d..5ce184a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.FindOrg.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.FindOrg.g.cs
@@ -392,17 +392,15 @@ partial void ProcessFindOrgResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -439,17 +437,15 @@ partial void ProcessFindOrgResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.FindOrgs.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.FindOrgs.g.cs
index 4b6fe79..27a31e6 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.FindOrgs.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.FindOrgs.g.cs
@@ -373,17 +373,15 @@ partial void ProcessFindOrgsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -420,17 +418,15 @@ partial void ProcessFindOrgsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetAvailableIntegrations.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetAvailableIntegrations.g.cs
index 2eaae7f..37f1172 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetAvailableIntegrations.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetAvailableIntegrations.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetAvailableIntegrationsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetAvailableIntegrationsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetMemberProjects.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetMemberProjects.g.cs
index 11aae5f..7ea5ef4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetMemberProjects.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetMemberProjects.g.cs
@@ -381,17 +381,15 @@ partial void ProcessGetMemberProjectsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -428,17 +426,15 @@ partial void ProcessGetMemberProjectsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgAccounts.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgAccounts.g.cs
index 668fa9f..1f2f57e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgAccounts.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgAccounts.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetOrgAccountsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetOrgAccountsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgGroups.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgGroups.g.cs
index e78626c..e3d1150 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgGroups.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgGroups.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetOrgGroupsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetOrgGroupsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgMembers.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgMembers.g.cs
index 8c11094..2ad5bf7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgMembers.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgMembers.g.cs
@@ -396,17 +396,15 @@ partial void ProcessGetOrgMembersResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -443,17 +441,15 @@ partial void ProcessGetOrgMembersResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgProjects.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgProjects.g.cs
index 7d80a8b..df52ebb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgProjects.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.GetOrgProjects.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetOrgProjectsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetOrgProjectsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.IsOrgMemberRelatedToProjects.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.IsOrgMemberRelatedToProjects.g.cs
index 5dbe966..a0b50c1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.IsOrgMemberRelatedToProjects.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.IsOrgMemberRelatedToProjects.g.cs
@@ -381,17 +381,15 @@ partial void ProcessIsOrgMemberRelatedToProjectsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -428,17 +426,15 @@ partial void ProcessIsOrgMemberRelatedToProjectsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.PatchOrg.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.PatchOrg.g.cs
index 6b65c43..15ba617 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.PatchOrg.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.PatchOrg.g.cs
@@ -376,17 +376,15 @@ partial void ProcessPatchOrgResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessPatchOrgResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.PatchOrgMember.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.PatchOrgMember.g.cs
index 89d1ae6..0145ddb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.PatchOrgMember.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.PatchOrgMember.g.cs
@@ -420,17 +420,15 @@ partial void ProcessPatchOrgMemberResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -467,17 +465,15 @@ partial void ProcessPatchOrgMemberResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.RemoveAccountFromOrg.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.RemoveAccountFromOrg.g.cs
index 43e5bf6..1c6ab85 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.RemoveAccountFromOrg.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.RemoveAccountFromOrg.g.cs
@@ -351,17 +351,15 @@ await RemoveAccountFromOrgAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await RemoveAccountFromOrgAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.RemoveOrgMember.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.RemoveOrgMember.g.cs
index 09e51c8..3c061c3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.RemoveOrgMember.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.RemoveOrgMember.g.cs
@@ -399,17 +399,15 @@ await RemoveOrgMemberAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -437,17 +435,15 @@ await RemoveOrgMemberAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.UpdateOrgPlan.g.cs b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.UpdateOrgPlan.g.cs
index 8b50939..de8ea8d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.UpdateOrgPlan.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.OrganizationsClient.UpdateOrgPlan.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateOrgPlanResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateOrgPlanResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.CreatePackage.g.cs b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.CreatePackage.g.cs
index a75a7bd..b210ae3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.CreatePackage.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.CreatePackage.g.cs
@@ -443,17 +443,15 @@ partial void ProcessCreatePackageResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -490,17 +488,15 @@ partial void ProcessCreatePackageResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.DeletePackages.g.cs b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.DeletePackages.g.cs
index 070b2c5..8ec6db6 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.DeletePackages.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.DeletePackages.g.cs
@@ -342,17 +342,15 @@ await DeletePackagesAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await DeletePackagesAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.GetPackage.g.cs b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.GetPackage.g.cs
index 13e49bf..d78efb3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.GetPackage.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.GetPackage.g.cs
@@ -404,17 +404,15 @@ partial void ProcessGetPackageResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessGetPackageResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.GetPackageRevisions.g.cs b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.GetPackageRevisions.g.cs
index e8b2c27..91cb379 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.GetPackageRevisions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.GetPackageRevisions.g.cs
@@ -382,17 +382,15 @@ partial void ProcessGetPackageRevisionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -429,17 +427,15 @@ partial void ProcessGetPackageRevisionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.ListPackages.g.cs b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.ListPackages.g.cs
index d45daba..7238d10 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.ListPackages.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.ListPackages.g.cs
@@ -399,17 +399,15 @@ partial void ProcessListPackagesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -446,17 +444,15 @@ partial void ProcessListPackagesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.UpdatePackage.g.cs b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.UpdatePackage.g.cs
index 88d1333..75f38bc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PackagesClient.UpdatePackage.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PackagesClient.UpdatePackage.g.cs
@@ -406,17 +406,15 @@ partial void ProcessUpdatePackageResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -453,17 +451,15 @@ partial void ProcessUpdatePackageResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.CompositionStatus.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.CompositionStatus.g.cs
index a099245..0664a48 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.CompositionStatus.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.CompositionStatus.g.cs
@@ -356,17 +356,15 @@ partial void ProcessCompositionStatusResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessCompositionStatusResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Create.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Create.g.cs
index 0efbec7..1ffdc2f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Create.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Create.g.cs
@@ -399,17 +399,15 @@ partial void ProcessCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -446,17 +444,15 @@ partial void ProcessCreateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Execute.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Execute.g.cs
index 8322f1c..8089e39 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Execute.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Execute.g.cs
@@ -414,17 +414,15 @@ partial void ProcessExecuteResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -461,17 +459,15 @@ partial void ProcessExecuteResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Executions.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Executions.g.cs
index 7c08324..e1c0720 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Executions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Executions.g.cs
@@ -398,17 +398,15 @@ partial void ProcessExecutionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -445,17 +443,15 @@ partial void ProcessExecutionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Get.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Get.g.cs
index 16bf6e1..c4d2498 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Get.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Get.g.cs
@@ -392,17 +392,15 @@ partial void ProcessGetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -439,17 +437,15 @@ partial void ProcessGetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetNode.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetNode.g.cs
index ea01ce5..c8cb541 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetNode.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetNode.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetNodeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessGetNodeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetPipelineNodeCategories.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetPipelineNodeCategories.g.cs
index 3cec8ce..8104aad 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetPipelineNodeCategories.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetPipelineNodeCategories.g.cs
@@ -347,17 +347,15 @@ partial void ProcessGetPipelineNodeCategoriesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessGetPipelineNodeCategoriesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetStatistics.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetStatistics.g.cs
index 96e312a..f058d85 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetStatistics.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetStatistics.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetStatisticsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetStatisticsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetVersion.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetVersion.g.cs
index 38d9292..e2c7393 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetVersion.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.GetVersion.g.cs
@@ -365,17 +365,15 @@ partial void ProcessGetVersionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessGetVersionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Install.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Install.g.cs
index e91b31b..7149f80 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Install.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Install.g.cs
@@ -404,17 +404,15 @@ partial void ProcessInstallResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessInstallResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.List.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.List.g.cs
index 8caf724..cecf95e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.List.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.List.g.cs
@@ -391,17 +391,15 @@ partial void ProcessListResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -438,17 +436,15 @@ partial void ProcessListResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.ListVersions.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.ListVersions.g.cs
index 6908e31..d13d64e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.ListVersions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.ListVersions.g.cs
@@ -382,17 +382,15 @@ partial void ProcessListVersionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -429,17 +427,15 @@ partial void ProcessListVersionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Logs.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Logs.g.cs
index 3071c63..77f8a73 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Logs.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Logs.g.cs
@@ -376,17 +376,15 @@ partial void ProcessLogsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessLogsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Purge.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Purge.g.cs
index 009eddd..b1d00a9 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Purge.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Purge.g.cs
@@ -356,17 +356,15 @@ partial void ProcessPurgeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessPurgeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Rerun.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Rerun.g.cs
index a9610b7..f876fe4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Rerun.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Rerun.g.cs
@@ -412,17 +412,15 @@ partial void ProcessRerunResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -459,17 +457,15 @@ partial void ProcessRerunResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Reset.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Reset.g.cs
index d571b94..da069ae 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Reset.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Reset.g.cs
@@ -388,17 +388,15 @@ partial void ProcessResetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -435,17 +433,15 @@ partial void ProcessResetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.RestoreVersion.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.RestoreVersion.g.cs
index b0434b8..3c47001 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.RestoreVersion.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.RestoreVersion.g.cs
@@ -365,17 +365,15 @@ partial void ProcessRestoreVersionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -412,17 +410,15 @@ partial void ProcessRestoreVersionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Terminate.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Terminate.g.cs
index 03e3dc4..2728d6a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Terminate.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Terminate.g.cs
@@ -376,17 +376,15 @@ partial void ProcessTerminateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessTerminateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Terminate2.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Terminate2.g.cs
index 3aeaaa4..26d0219 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Terminate2.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Terminate2.g.cs
@@ -354,17 +354,15 @@ partial void ProcessTerminate2ResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -399,17 +397,15 @@ partial void ProcessTerminate2ResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Test.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Test.g.cs
index a65864b..0add444 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Test.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Test.g.cs
@@ -356,17 +356,15 @@ partial void ProcessTestResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessTestResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Uninstall.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Uninstall.g.cs
index dafcf69..02d1231 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Uninstall.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Uninstall.g.cs
@@ -404,17 +404,15 @@ partial void ProcessUninstallResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessUninstallResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Update.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Update.g.cs
index 854b7fb..f0ec605 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Update.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.Update.g.cs
@@ -404,17 +404,15 @@ partial void ProcessUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessUpdateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.UpdateSettings.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.UpdateSettings.g.cs
index 1e6c5df..36bc95a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.UpdateSettings.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.UpdateSettings.g.cs
@@ -406,17 +406,15 @@ partial void ProcessUpdateSettingsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -453,17 +451,15 @@ partial void ProcessUpdateSettingsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.UpdateVariables.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.UpdateVariables.g.cs
index 33e3595..7a18ef7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.UpdateVariables.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesClient.UpdateVariables.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateVariablesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateVariablesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesQueryClient.Query.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesQueryClient.Query.g.cs
index 77f0439..8e85a87 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesQueryClient.Query.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesQueryClient.Query.g.cs
@@ -395,17 +395,15 @@ partial void ProcessQueryResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -442,17 +440,15 @@ partial void ProcessQueryResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesQueryClient.QueryPipelineTable.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesQueryClient.QueryPipelineTable.g.cs
index 8e2164a..3a00ee2 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesQueryClient.QueryPipelineTable.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesQueryClient.QueryPipelineTable.g.cs
@@ -367,17 +367,15 @@ partial void ProcessQueryPipelineTableResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessQueryPipelineTableResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Create.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Create.g.cs
index 97ced6f..72776d3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Create.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Create.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Get.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Get.g.cs
index 925da52..d34bf56 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Get.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Get.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Query.g.cs b/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Query.g.cs
index 422aaae..594ddb5 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Query.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PipelinesTemplatesClient.Query.g.cs
@@ -379,17 +379,15 @@ partial void ProcessQueryResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -426,17 +424,15 @@ partial void ProcessQueryResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidatePackageName.g.cs b/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidatePackageName.g.cs
index 2d81a7d..a5221c6 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidatePackageName.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidatePackageName.g.cs
@@ -356,17 +356,15 @@ partial void ProcessValidatePackageNameResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessValidatePackageNameResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidateServiceName.g.cs b/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidateServiceName.g.cs
index 285402c..98bd7ad 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidateServiceName.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidateServiceName.g.cs
@@ -356,17 +356,15 @@ partial void ProcessValidateServiceNameResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessValidateServiceNameResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidateTriggerName.g.cs b/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidateTriggerName.g.cs
index d18a4fe..980aafb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidateTriggerName.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PiperMiscClient.ValidateTriggerName.g.cs
@@ -356,17 +356,15 @@ partial void ProcessValidateTriggerNameResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessValidateTriggerNameResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PlansClient.GetPlan.g.cs b/src/libs/Dataloop/Generated/Dataloop.PlansClient.GetPlan.g.cs
index c758521..78d2740 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PlansClient.GetPlan.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PlansClient.GetPlan.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetPlanResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetPlanResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PlansClient.ListAllPlanMetrics.g.cs b/src/libs/Dataloop/Generated/Dataloop.PlansClient.ListAllPlanMetrics.g.cs
index 57239b4..abafb4e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PlansClient.ListAllPlanMetrics.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PlansClient.ListAllPlanMetrics.g.cs
@@ -347,17 +347,15 @@ partial void ProcessListAllPlanMetricsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessListAllPlanMetricsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PlansClient.ListAllPlans.g.cs b/src/libs/Dataloop/Generated/Dataloop.PlansClient.ListAllPlans.g.cs
index 62f052b..e3a3588 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PlansClient.ListAllPlans.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PlansClient.ListAllPlans.g.cs
@@ -347,17 +347,15 @@ partial void ProcessListAllPlansResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessListAllPlansResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.PlansClient.QueryBillingMetrics.g.cs b/src/libs/Dataloop/Generated/Dataloop.PlansClient.QueryBillingMetrics.g.cs
index f96aeb4..e7bc26c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.PlansClient.QueryBillingMetrics.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.PlansClient.QueryBillingMetrics.g.cs
@@ -367,17 +367,15 @@ partial void ProcessQueryBillingMetricsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessQueryBillingMetricsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddGroup.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddGroup.g.cs
index bd44ff8..fbdf57f 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddGroup.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddGroup.g.cs
@@ -385,17 +385,15 @@ partial void ProcessAddGroupResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessAddGroupResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddMemberToProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddMemberToProject.g.cs
index 1e287ad..71c4fda 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddMemberToProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddMemberToProject.g.cs
@@ -429,17 +429,15 @@ partial void ProcessAddMemberToProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -476,17 +474,15 @@ partial void ProcessAddMemberToProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddMembersToProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddMembersToProject.g.cs
index 2f1ab87..cd57751 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddMembersToProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddMembersToProject.g.cs
@@ -376,17 +376,15 @@ partial void ProcessAddMembersToProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessAddMembersToProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddOrgToProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddOrgToProject.g.cs
index 31467e6..f66cb46 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddOrgToProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.AddOrgToProject.g.cs
@@ -376,17 +376,15 @@ partial void ProcessAddOrgToProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessAddOrgToProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.ChangeMemberProjectRole.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.ChangeMemberProjectRole.g.cs
index 6cec567..b811c55 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.ChangeMemberProjectRole.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.ChangeMemberProjectRole.g.cs
@@ -417,17 +417,15 @@ partial void ProcessChangeMemberProjectRoleResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -464,17 +462,15 @@ partial void ProcessChangeMemberProjectRoleResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.CreateProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.CreateProject.g.cs
index 6007a3f..5b6e612 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.CreateProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.CreateProject.g.cs
@@ -397,17 +397,15 @@ partial void ProcessCreateProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -444,17 +442,15 @@ partial void ProcessCreateProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.DeleteProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.DeleteProject.g.cs
index ff98e40..4066e8e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.DeleteProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.DeleteProject.g.cs
@@ -376,17 +376,15 @@ await DeleteProjectAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ await DeleteProjectAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetGroups.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetGroups.g.cs
index 77089b7..0d280e9 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetGroups.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetGroups.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetGroupsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetGroupsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetMyProjects.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetMyProjects.g.cs
index 23e4b2e..cc53b17 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetMyProjects.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetMyProjects.g.cs
@@ -383,17 +383,15 @@ partial void ProcessGetMyProjectsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -430,17 +428,15 @@ partial void ProcessGetMyProjectsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProject.g.cs
index 9bdfa37..b5be363 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProject.g.cs
@@ -396,17 +396,15 @@ partial void ProcessGetProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -443,17 +441,15 @@ partial void ProcessGetProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProjectByName.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProjectByName.g.cs
index 4cffa4c..ff88be4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProjectByName.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProjectByName.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetProjectByNameResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetProjectByNameResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProjectMembers.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProjectMembers.g.cs
index 40bc9a0..e5c7b2c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProjectMembers.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.GetProjectMembers.g.cs
@@ -386,17 +386,15 @@ partial void ProcessGetProjectMembersResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -433,17 +431,15 @@ partial void ProcessGetProjectMembersResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.PatchProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.PatchProject.g.cs
index b0c0312..a4b591a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.PatchProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.PatchProject.g.cs
@@ -406,17 +406,15 @@ partial void ProcessPatchProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -453,17 +451,15 @@ partial void ProcessPatchProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.RemoveGroup.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.RemoveGroup.g.cs
index e2f5363..be2edf4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.RemoveGroup.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.RemoveGroup.g.cs
@@ -351,17 +351,15 @@ await RemoveGroupAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await RemoveGroupAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.RemoveMemberFromProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.RemoveMemberFromProject.g.cs
index 1356ab0..7c69435 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.RemoveMemberFromProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.RemoveMemberFromProject.g.cs
@@ -395,17 +395,15 @@ partial void ProcessRemoveMemberFromProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -442,17 +440,15 @@ partial void ProcessRemoveMemberFromProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.SetProjectAccount.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.SetProjectAccount.g.cs
index b13bd6c..24235c3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.SetProjectAccount.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.SetProjectAccount.g.cs
@@ -376,17 +376,15 @@ partial void ProcessSetProjectAccountResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessSetProjectAccountResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.UpdateGroup.g.cs b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.UpdateGroup.g.cs
index 279355e..5039b3a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.UpdateGroup.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ProjectsClient.UpdateGroup.g.cs
@@ -385,17 +385,15 @@ partial void ProcessUpdateGroupResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessUpdateGroupResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.QueryClient.QueryEntities.g.cs b/src/libs/Dataloop/Generated/Dataloop.QueryClient.QueryEntities.g.cs
index 77dd2e2..23e98b8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.QueryClient.QueryEntities.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.QueryClient.QueryEntities.g.cs
@@ -393,17 +393,15 @@ partial void ProcessQueryEntitiesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -438,17 +436,15 @@ partial void ProcessQueryEntitiesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.CloneRecipe.g.cs b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.CloneRecipe.g.cs
index fcb5a23..d6dd803 100644
--- a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.CloneRecipe.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.CloneRecipe.g.cs
@@ -408,17 +408,15 @@ partial void ProcessCloneRecipeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -455,17 +453,15 @@ partial void ProcessCloneRecipeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.CreateRecipe.g.cs b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.CreateRecipe.g.cs
index 8450bb1..11cd79a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.CreateRecipe.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.CreateRecipe.g.cs
@@ -405,17 +405,15 @@ partial void ProcessCreateRecipeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -452,17 +450,15 @@ partial void ProcessCreateRecipeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.DeleteRecipe.g.cs b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.DeleteRecipe.g.cs
index dbd185e..5527d60 100644
--- a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.DeleteRecipe.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.DeleteRecipe.g.cs
@@ -384,17 +384,15 @@ await DeleteRecipeAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -422,17 +420,15 @@ await DeleteRecipeAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.FindRecipes.g.cs b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.FindRecipes.g.cs
index 2a26218..c5df0f4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.FindRecipes.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.FindRecipes.g.cs
@@ -409,17 +409,15 @@ partial void ProcessFindRecipesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -456,17 +454,15 @@ partial void ProcessFindRecipesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.GetRecipe.g.cs b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.GetRecipe.g.cs
index e1b1231..c01d45a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.GetRecipe.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.GetRecipe.g.cs
@@ -373,17 +373,16 @@ partial void ProcessGetRecipeResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -406,17 +405,16 @@ partial void ProcessGetRecipeResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -450,17 +448,15 @@ partial void ProcessGetRecipeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -497,17 +493,15 @@ partial void ProcessGetRecipeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.UpdateRecipe.g.cs b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.UpdateRecipe.g.cs
index e7f8ed8..2bf0c19 100644
--- a/src/libs/Dataloop/Generated/Dataloop.RecipesClient.UpdateRecipe.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.RecipesClient.UpdateRecipe.g.cs
@@ -404,17 +404,15 @@ partial void ProcessUpdateRecipeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessUpdateRecipeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.CreateScores.g.cs b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.CreateScores.g.cs
index 968fce0..bb977fb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.CreateScores.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.CreateScores.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateScoresResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateScoresResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.DeleteScores.g.cs b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.DeleteScores.g.cs
index aa1d6d2..a174c19 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.DeleteScores.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.DeleteScores.g.cs
@@ -353,17 +353,15 @@ await DeleteScoresAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -391,17 +389,15 @@ await DeleteScoresAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskAnnotationScores.g.cs b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskAnnotationScores.g.cs
index 0615cb1..7e9d634 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskAnnotationScores.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskAnnotationScores.g.cs
@@ -395,17 +395,15 @@ partial void ProcessGetTaskAnnotationScoresResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -442,17 +440,15 @@ partial void ProcessGetTaskAnnotationScoresResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskItemScores.g.cs b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskItemScores.g.cs
index b7397b8..251db5d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskItemScores.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskItemScores.g.cs
@@ -395,17 +395,15 @@ partial void ProcessGetTaskItemScoresResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -442,17 +440,15 @@ partial void ProcessGetTaskItemScoresResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskScores.g.cs b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskScores.g.cs
index c18f695..9a25baf 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskScores.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.GetTaskScores.g.cs
@@ -386,17 +386,15 @@ partial void ProcessGetTaskScoresResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -433,17 +431,15 @@ partial void ProcessGetTaskScoresResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryAverage.g.cs b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryAverage.g.cs
index d646bbe..1f570c8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryAverage.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryAverage.g.cs
@@ -365,17 +365,15 @@ partial void ProcessQueryAverageResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -410,17 +408,15 @@ partial void ProcessQueryAverageResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryConfusion.g.cs b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryConfusion.g.cs
index 2b99d76..b4bbb88 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryConfusion.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryConfusion.g.cs
@@ -367,17 +367,15 @@ partial void ProcessQueryConfusionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessQueryConfusionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryHistogram.g.cs b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryHistogram.g.cs
index a3e719f..fb0cb74 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryHistogram.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ScoresClient.QueryHistogram.g.cs
@@ -367,17 +367,15 @@ partial void ProcessQueryHistogramResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessQueryHistogramResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Create.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Create.g.cs
index 51956f1..156c5f4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Create.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Create.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Delete.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Delete.g.cs
index ee16798..bd7d2c3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Delete.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Delete.g.cs
@@ -342,17 +342,15 @@ await DeleteAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await DeleteAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Get.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Get.g.cs
index 77f04d1..0343266 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Get.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Get.g.cs
@@ -372,17 +372,15 @@ partial void ProcessGetResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -419,17 +417,15 @@ partial void ProcessGetResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.SetDefault.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.SetDefault.g.cs
index 5c2c4d2..358ee29 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.SetDefault.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.SetDefault.g.cs
@@ -367,17 +367,15 @@ partial void ProcessSetDefaultResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessSetDefaultResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Update.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Update.g.cs
index 6792eb5..67813b9 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Update.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServiceDriversClient.Update.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.Cache.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.Cache.g.cs
index 5ebffef..1462793 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.Cache.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.Cache.g.cs
@@ -365,17 +365,15 @@ await CacheAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ await CacheAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.CreateService.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.CreateService.g.cs
index ebe0082..33b0b10 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.CreateService.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.CreateService.g.cs
@@ -467,17 +467,15 @@ partial void ProcessCreateServiceResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -514,17 +512,15 @@ partial void ProcessCreateServiceResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.DeleteService.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.DeleteService.g.cs
index d9306c4..6d6f028 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.DeleteService.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.DeleteService.g.cs
@@ -404,17 +404,15 @@ partial void ProcessDeleteServiceResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessDeleteServiceResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.FsCache.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.FsCache.g.cs
index 8a1a663..757f9cd 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.FsCache.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.FsCache.g.cs
@@ -377,17 +377,15 @@ partial void ProcessFsCacheResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -422,17 +420,15 @@ partial void ProcessFsCacheResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetGlobalServices.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetGlobalServices.g.cs
index 9159080..80bd9be 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetGlobalServices.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetGlobalServices.g.cs
@@ -379,17 +379,15 @@ partial void ProcessGetGlobalServicesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -426,17 +424,15 @@ partial void ProcessGetGlobalServicesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetLogs.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetLogs.g.cs
index fad30da..d649346 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetLogs.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetLogs.g.cs
@@ -439,17 +439,15 @@ partial void ProcessGetLogsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -486,17 +484,15 @@ partial void ProcessGetLogsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetService.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetService.g.cs
index 9569954..7a97e0d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetService.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetService.g.cs
@@ -402,17 +402,15 @@ partial void ProcessGetServiceResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -449,17 +447,15 @@ partial void ProcessGetServiceResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceIntegrationEnv.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceIntegrationEnv.g.cs
index a1a3a7d..8298bcf 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceIntegrationEnv.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceIntegrationEnv.g.cs
@@ -358,17 +358,15 @@ partial void ProcessGetServiceIntegrationEnvResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -405,17 +403,15 @@ partial void ProcessGetServiceIntegrationEnvResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceLogs.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceLogs.g.cs
index 37851d0..20c21a3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceLogs.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceLogs.g.cs
@@ -388,17 +388,15 @@ partial void ProcessGetServiceLogsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -435,17 +433,15 @@ partial void ProcessGetServiceLogsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceRevisions.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceRevisions.g.cs
index d368f9f..598b371 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceRevisions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceRevisions.g.cs
@@ -386,17 +386,15 @@ partial void ProcessGetServiceRevisionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -433,17 +431,15 @@ partial void ProcessGetServiceRevisionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceStatus.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceStatus.g.cs
index 2b6b56a..2d53ced 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceStatus.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServiceStatus.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetServiceStatusResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetServiceStatusResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServicesStatus.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServicesStatus.g.cs
index dafe764..6462fe8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServicesStatus.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.GetServicesStatus.g.cs
@@ -359,17 +359,15 @@ partial void ProcessGetServicesStatusResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -406,17 +404,15 @@ partial void ProcessGetServicesStatusResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ListServices.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ListServices.g.cs
index b9ed67e..f31e300 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ListServices.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ListServices.g.cs
@@ -401,17 +401,15 @@ partial void ProcessListServicesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -448,17 +446,15 @@ partial void ProcessListServicesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.Notify.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.Notify.g.cs
index 25e417e..98b32ba 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.Notify.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.Notify.g.cs
@@ -362,17 +362,15 @@ await NotifyAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -400,17 +398,15 @@ await NotifyAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ReceiveReports.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ReceiveReports.g.cs
index 6d20880..e2e57a4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ReceiveReports.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ReceiveReports.g.cs
@@ -362,17 +362,15 @@ await ReceiveReportsAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -400,17 +398,15 @@ await ReceiveReportsAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ReloadServices.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ReloadServices.g.cs
index 63bd229..d1116c4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ReloadServices.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ReloadServices.g.cs
@@ -367,17 +367,15 @@ partial void ProcessReloadServicesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessReloadServicesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.RestartService.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.RestartService.g.cs
index bfca37c..2a580dc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.RestartService.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.RestartService.g.cs
@@ -354,17 +354,15 @@ await RestartServiceAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -392,17 +390,15 @@ await RestartServiceAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ResumeService.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ResumeService.g.cs
index fdb4d69..b2ab775 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ResumeService.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ResumeService.g.cs
@@ -404,17 +404,15 @@ partial void ProcessResumeServiceResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessResumeServiceResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.RolloutService.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.RolloutService.g.cs
index 2384cb4..944b911 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.RolloutService.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.RolloutService.g.cs
@@ -376,17 +376,15 @@ partial void ProcessRolloutServiceResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessRolloutServiceResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ServiceDebug.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ServiceDebug.g.cs
index de34f30..df67bc2 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ServiceDebug.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ServiceDebug.g.cs
@@ -388,17 +388,15 @@ partial void ProcessServiceDebugResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -435,17 +433,15 @@ partial void ProcessServiceDebugResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ServiceStream.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ServiceStream.g.cs
index f242c38..38853fb 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ServiceStream.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.ServiceStream.g.cs
@@ -356,17 +356,15 @@ partial void ProcessServiceStreamResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessServiceStreamResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.StopService.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.StopService.g.cs
index 864a26b..3dad6a1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.StopService.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.StopService.g.cs
@@ -404,17 +404,15 @@ partial void ProcessStopServiceResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessStopServiceResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.UpdateReplicaStatus.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.UpdateReplicaStatus.g.cs
index 0a52c6d..aeeb666 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.UpdateReplicaStatus.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.UpdateReplicaStatus.g.cs
@@ -410,17 +410,15 @@ partial void ProcessUpdateReplicaStatusResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -457,17 +455,15 @@ partial void ProcessUpdateReplicaStatusResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.UpdateService.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.UpdateService.g.cs
index f9fd928..dbfdef9 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesClient.UpdateService.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesClient.UpdateService.g.cs
@@ -418,17 +418,15 @@ partial void ProcessUpdateServiceResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -465,17 +463,15 @@ partial void ProcessUpdateServiceResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.ServicesMetricClient.GetServiceScaler.g.cs b/src/libs/Dataloop/Generated/Dataloop.ServicesMetricClient.GetServiceScaler.g.cs
index 2729dab..9ff141e 100644
--- a/src/libs/Dataloop/Generated/Dataloop.ServicesMetricClient.GetServiceScaler.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.ServicesMetricClient.GetServiceScaler.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetServiceScalerResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetServiceScalerResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.CreateSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.CreateSetting.g.cs
index 03f8191..fc364c2 100644
--- a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.CreateSetting.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.CreateSetting.g.cs
@@ -358,17 +358,16 @@ partial void ProcessCreateSettingResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -391,17 +390,16 @@ partial void ProcessCreateSettingResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -424,17 +422,16 @@ partial void ProcessCreateSettingResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -457,17 +454,16 @@ partial void ProcessCreateSettingResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -490,17 +486,16 @@ partial void ProcessCreateSettingResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -534,17 +529,15 @@ partial void ProcessCreateSettingResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -581,17 +574,15 @@ partial void ProcessCreateSettingResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.DeleteSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.DeleteSetting.g.cs
index 2b20267..ce6a6a4 100644
--- a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.DeleteSetting.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.DeleteSetting.g.cs
@@ -367,17 +367,16 @@ partial void ProcessDeleteSettingResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -400,17 +399,16 @@ partial void ProcessDeleteSettingResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -433,17 +431,16 @@ partial void ProcessDeleteSettingResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -466,17 +463,16 @@ partial void ProcessDeleteSettingResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -499,17 +495,16 @@ partial void ProcessDeleteSettingResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -541,17 +536,15 @@ partial void ProcessDeleteSettingResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -586,17 +579,15 @@ partial void ProcessDeleteSettingResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.GetSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.GetSetting.g.cs
index 69e0015..0ebacd5 100644
--- a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.GetSetting.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.GetSetting.g.cs
@@ -347,17 +347,16 @@ partial void ProcessGetSettingResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -380,17 +379,16 @@ partial void ProcessGetSettingResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -413,17 +411,16 @@ partial void ProcessGetSettingResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -446,17 +443,16 @@ partial void ProcessGetSettingResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -479,17 +475,16 @@ partial void ProcessGetSettingResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -523,17 +518,15 @@ partial void ProcessGetSettingResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -570,17 +563,15 @@ partial void ProcessGetSettingResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.QuerySettings.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.QuerySettings.g.cs
index 37bb10b..e0d1b40 100644
--- a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.QuerySettings.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.QuerySettings.g.cs
@@ -358,17 +358,16 @@ partial void ProcessQuerySettingsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -391,17 +390,16 @@ partial void ProcessQuerySettingsResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -424,17 +422,16 @@ partial void ProcessQuerySettingsResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -457,17 +454,16 @@ partial void ProcessQuerySettingsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -490,17 +486,16 @@ partial void ProcessQuerySettingsResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -534,17 +529,15 @@ partial void ProcessQuerySettingsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -581,17 +574,15 @@ partial void ProcessQuerySettingsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.ResolveSettings.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.ResolveSettings.g.cs
index 323bc70..89c1d0c 100644
--- a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.ResolveSettings.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.ResolveSettings.g.cs
@@ -356,17 +356,16 @@ partial void ProcessResolveSettingsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -389,17 +388,16 @@ partial void ProcessResolveSettingsResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -433,17 +431,15 @@ partial void ProcessResolveSettingsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -480,17 +476,15 @@ partial void ProcessResolveSettingsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.UpdateSetting.g.cs b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.UpdateSetting.g.cs
index db027f2..572f4fc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.SettingsClient.UpdateSetting.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.SettingsClient.UpdateSetting.g.cs
@@ -365,17 +365,16 @@ partial void ProcessUpdateSettingResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 401)
@@ -398,17 +397,16 @@ partial void ProcessUpdateSettingResponseContent(
__exception_401 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_401,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 403)
@@ -431,17 +429,16 @@ partial void ProcessUpdateSettingResponseContent(
__exception_403 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_403,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -464,17 +461,16 @@ partial void ProcessUpdateSettingResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
@@ -497,17 +493,16 @@ partial void ProcessUpdateSettingResponseContent(
__exception_500 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_500,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_500,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -541,17 +536,15 @@ partial void ProcessUpdateSettingResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -588,17 +581,15 @@ partial void ProcessUpdateSettingResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.CheckStorageDriversIntegrationByIntegrationId.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.CheckStorageDriversIntegrationByIntegrationId.g.cs
index e452aff..18282a8 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.CheckStorageDriversIntegrationByIntegrationId.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.CheckStorageDriversIntegrationByIntegrationId.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCheckStorageDriversIntegrationByIntegrationIdResponseContent
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCheckStorageDriversIntegrationByIntegrationIdResponseContent
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.CreateStorageDriver.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.CreateStorageDriver.g.cs
index e0ad0a8..09b7c68 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.CreateStorageDriver.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.CreateStorageDriver.g.cs
@@ -387,17 +387,15 @@ partial void ProcessCreateStorageDriverResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -434,17 +432,15 @@ partial void ProcessCreateStorageDriverResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.DeleteStorageDriver.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.DeleteStorageDriver.g.cs
index ca3890f..1e2ef23 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.DeleteStorageDriver.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.DeleteStorageDriver.g.cs
@@ -378,17 +378,15 @@ await DeleteStorageDriverAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -416,17 +414,15 @@ await DeleteStorageDriverAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.GetStorageDriver.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.GetStorageDriver.g.cs
index e95a7e3..cd9e821 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.GetStorageDriver.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.GetStorageDriver.g.cs
@@ -390,17 +390,15 @@ partial void ProcessGetStorageDriverResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -437,17 +435,15 @@ partial void ProcessGetStorageDriverResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.GetStorageDriversByIntegrationId.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.GetStorageDriversByIntegrationId.g.cs
index c0c6753..1c3a479 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.GetStorageDriversByIntegrationId.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.GetStorageDriversByIntegrationId.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetStorageDriversByIntegrationIdResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetStorageDriversByIntegrationIdResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.ListStorageDrivers.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.ListStorageDrivers.g.cs
index e07b492..de0fd41 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.ListStorageDrivers.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.ListStorageDrivers.g.cs
@@ -397,17 +397,15 @@ partial void ProcessListStorageDriversResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -444,17 +442,15 @@ partial void ProcessListStorageDriversResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.ListStorageDriversByProvider.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.ListStorageDriversByProvider.g.cs
index 75af621..4140f33 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.ListStorageDriversByProvider.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.ListStorageDriversByProvider.g.cs
@@ -356,17 +356,15 @@ partial void ProcessListStorageDriversByProviderResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessListStorageDriversByProviderResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.MigrateDriversIntegration.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.MigrateDriversIntegration.g.cs
index 4fe838d..f91df47 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.MigrateDriversIntegration.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.MigrateDriversIntegration.g.cs
@@ -367,17 +367,15 @@ partial void ProcessMigrateDriversIntegrationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessMigrateDriversIntegrationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.TestStorageDriver.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.TestStorageDriver.g.cs
index 2b6b5c7..2e61186 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.TestStorageDriver.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.TestStorageDriver.g.cs
@@ -353,17 +353,15 @@ await TestStorageDriverAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -391,17 +389,15 @@ await TestStorageDriverAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.TestStorageDriverPermissions.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.TestStorageDriverPermissions.g.cs
index adedce7..9db631a 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.TestStorageDriverPermissions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.TestStorageDriverPermissions.g.cs
@@ -342,17 +342,15 @@ await TestStorageDriverPermissionsAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await TestStorageDriverPermissionsAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.UpdateStorageDriver.g.cs b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.UpdateStorageDriver.g.cs
index 66e1c3d..b9d67e1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.UpdateStorageDriver.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StorageDriversClient.UpdateStorageDriver.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateStorageDriverResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateStorageDriverResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StructuresClient.CreateStructure.g.cs b/src/libs/Dataloop/Generated/Dataloop.StructuresClient.CreateStructure.g.cs
index 7d1c8e8..e4422e2 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StructuresClient.CreateStructure.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StructuresClient.CreateStructure.g.cs
@@ -376,17 +376,15 @@ partial void ProcessCreateStructureResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessCreateStructureResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StructuresClient.DeleteStructure.g.cs b/src/libs/Dataloop/Generated/Dataloop.StructuresClient.DeleteStructure.g.cs
index d864010..456e4c5 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StructuresClient.DeleteStructure.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StructuresClient.DeleteStructure.g.cs
@@ -351,17 +351,15 @@ await DeleteStructureAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -389,17 +387,15 @@ await DeleteStructureAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StructuresClient.QueryOntologyStructures.g.cs b/src/libs/Dataloop/Generated/Dataloop.StructuresClient.QueryOntologyStructures.g.cs
index c2da51e..bbaa524 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StructuresClient.QueryOntologyStructures.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StructuresClient.QueryOntologyStructures.g.cs
@@ -376,17 +376,15 @@ partial void ProcessQueryOntologyStructuresResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessQueryOntologyStructuresResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.StructuresClient.UpdateStructure.g.cs b/src/libs/Dataloop/Generated/Dataloop.StructuresClient.UpdateStructure.g.cs
index 59803b9..d820831 100644
--- a/src/libs/Dataloop/Generated/Dataloop.StructuresClient.UpdateStructure.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.StructuresClient.UpdateStructure.g.cs
@@ -385,17 +385,15 @@ partial void ProcessUpdateStructureResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -432,17 +430,15 @@ partial void ProcessUpdateStructureResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.SubscriptionsClient.GetSubscription.g.cs b/src/libs/Dataloop/Generated/Dataloop.SubscriptionsClient.GetSubscription.g.cs
index cc1dd0e..de47157 100644
--- a/src/libs/Dataloop/Generated/Dataloop.SubscriptionsClient.GetSubscription.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.SubscriptionsClient.GetSubscription.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetSubscriptionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetSubscriptionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.SubscriptionsClient.ListSubscriptions.g.cs b/src/libs/Dataloop/Generated/Dataloop.SubscriptionsClient.ListSubscriptions.g.cs
index fa7df42..d103155 100644
--- a/src/libs/Dataloop/Generated/Dataloop.SubscriptionsClient.ListSubscriptions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.SubscriptionsClient.ListSubscriptions.g.cs
@@ -399,17 +399,15 @@ partial void ProcessListSubscriptionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -446,17 +444,15 @@ partial void ProcessListSubscriptionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.AddItemsToTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.AddItemsToTask.g.cs
index 1809dc3..0bf1349 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.AddItemsToTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.AddItemsToTask.g.cs
@@ -376,17 +376,15 @@ partial void ProcessAddItemsToTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessAddItemsToTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.CreateTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.CreateTask.g.cs
index 98c5a66..6855181 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.CreateTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.CreateTask.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.DeleteTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.DeleteTask.g.cs
index ed679ab..a1faba0 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.DeleteTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.DeleteTask.g.cs
@@ -376,17 +376,15 @@ partial void ProcessDeleteTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessDeleteTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.FindTasks.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.FindTasks.g.cs
index 72ca3f7..6a72791 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.FindTasks.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.FindTasks.g.cs
@@ -499,17 +499,15 @@ partial void ProcessFindTasksResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -546,17 +544,15 @@ partial void ProcessFindTasksResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetCountersForProject.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetCountersForProject.g.cs
index 5667994..46ca208 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetCountersForProject.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetCountersForProject.g.cs
@@ -376,17 +376,15 @@ partial void ProcessGetCountersForProjectResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessGetCountersForProjectResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetDatasetActions.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetDatasetActions.g.cs
index 8b292bb..70ba02d 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetDatasetActions.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetDatasetActions.g.cs
@@ -354,17 +354,16 @@ partial void ProcessGetDatasetActionsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -387,17 +386,16 @@ partial void ProcessGetDatasetActionsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -431,17 +429,15 @@ partial void ProcessGetDatasetActionsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -478,17 +474,15 @@ partial void ProcessGetDatasetActionsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetProjectsActiveCounters.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetProjectsActiveCounters.g.cs
index 85b3ec9..e5fc1fc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetProjectsActiveCounters.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetProjectsActiveCounters.g.cs
@@ -369,17 +369,15 @@ partial void ProcessGetProjectsActiveCountersResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -416,17 +414,15 @@ partial void ProcessGetProjectsActiveCountersResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTask.g.cs
index aafd770..1a88882 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTask.g.cs
@@ -345,17 +345,16 @@ partial void ProcessGetTaskResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -378,17 +377,16 @@ partial void ProcessGetTaskResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -422,17 +420,15 @@ partial void ProcessGetTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -469,17 +465,15 @@ partial void ProcessGetTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTaskQueueDetails.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTaskQueueDetails.g.cs
index ff43228..9e4b177 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTaskQueueDetails.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTaskQueueDetails.g.cs
@@ -345,17 +345,16 @@ partial void ProcessGetTaskQueueDetailsResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -378,17 +377,16 @@ partial void ProcessGetTaskQueueDetailsResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -422,17 +420,15 @@ partial void ProcessGetTaskQueueDetailsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -469,17 +465,15 @@ partial void ProcessGetTaskQueueDetailsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTaskRelatives.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTaskRelatives.g.cs
index 6e70dca..9126926 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTaskRelatives.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.GetTaskRelatives.g.cs
@@ -345,17 +345,16 @@ partial void ProcessGetTaskRelativesResponseContent(
__exception_400 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_400,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
//
if ((int)__response.StatusCode == 404)
@@ -378,17 +377,16 @@ partial void ProcessGetTaskRelativesResponseContent(
__exception_404 = __ex;
}
- throw new global::Dataloop.ApiException(
+
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content_404,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content_404,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
if (__effectiveReadResponseAsString)
@@ -422,17 +420,15 @@ partial void ProcessGetTaskRelativesResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -469,17 +465,15 @@ partial void ProcessGetTaskRelativesResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.QueryTasks.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.QueryTasks.g.cs
index 29a4fa8..7aca4c2 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.QueryTasks.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.QueryTasks.g.cs
@@ -367,17 +367,15 @@ partial void ProcessQueryTasksResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessQueryTasksResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.RemoveItemsFromTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.RemoveItemsFromTask.g.cs
index 34d0bb1..a05267b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.RemoveItemsFromTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.RemoveItemsFromTask.g.cs
@@ -376,17 +376,15 @@ partial void ProcessRemoveItemsFromTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessRemoveItemsFromTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.UpdateTask.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.UpdateTask.g.cs
index f5ce582..4991cdf 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.UpdateTask.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.UpdateTask.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateTaskResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateTaskResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TasksClient.UpdateTaskContributors.g.cs b/src/libs/Dataloop/Generated/Dataloop.TasksClient.UpdateTaskContributors.g.cs
index ab625cf..e57686b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TasksClient.UpdateTaskContributors.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TasksClient.UpdateTaskContributors.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateTaskContributorsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateTaskContributorsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TriggerResourceInformationClient.QueryTriggerResourceInformation.g.cs b/src/libs/Dataloop/Generated/Dataloop.TriggerResourceInformationClient.QueryTriggerResourceInformation.g.cs
index e6916ec..49b4eea 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TriggerResourceInformationClient.QueryTriggerResourceInformation.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TriggerResourceInformationClient.QueryTriggerResourceInformation.g.cs
@@ -389,17 +389,15 @@ partial void ProcessQueryTriggerResourceInformationResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -436,17 +434,15 @@ partial void ProcessQueryTriggerResourceInformationResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TriggersClient.CreateTrigger.g.cs b/src/libs/Dataloop/Generated/Dataloop.TriggersClient.CreateTrigger.g.cs
index e7dced8..281bbdd 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TriggersClient.CreateTrigger.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TriggersClient.CreateTrigger.g.cs
@@ -463,17 +463,15 @@ partial void ProcessCreateTriggerResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -510,17 +508,15 @@ partial void ProcessCreateTriggerResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TriggersClient.DeleteTriggers.g.cs b/src/libs/Dataloop/Generated/Dataloop.TriggersClient.DeleteTriggers.g.cs
index 7f2949e..87f60a5 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TriggersClient.DeleteTriggers.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TriggersClient.DeleteTriggers.g.cs
@@ -372,17 +372,15 @@ await DeleteTriggersAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -410,17 +408,15 @@ await DeleteTriggersAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TriggersClient.GetTrigger.g.cs b/src/libs/Dataloop/Generated/Dataloop.TriggersClient.GetTrigger.g.cs
index 341e009..343fff3 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TriggersClient.GetTrigger.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TriggersClient.GetTrigger.g.cs
@@ -388,17 +388,15 @@ partial void ProcessGetTriggerResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -435,17 +433,15 @@ partial void ProcessGetTriggerResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TriggersClient.ListTriggers.g.cs b/src/libs/Dataloop/Generated/Dataloop.TriggersClient.ListTriggers.g.cs
index 4fa60d6..58381f7 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TriggersClient.ListTriggers.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TriggersClient.ListTriggers.g.cs
@@ -481,17 +481,15 @@ partial void ProcessListTriggersResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -528,17 +526,15 @@ partial void ProcessListTriggersResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.TriggersClient.UpdateTrigger.g.cs b/src/libs/Dataloop/Generated/Dataloop.TriggersClient.UpdateTrigger.g.cs
index 73d3e78..f4f6fcc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.TriggersClient.UpdateTrigger.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.TriggersClient.UpdateTrigger.g.cs
@@ -404,17 +404,15 @@ partial void ProcessUpdateTriggerResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -451,17 +449,15 @@ partial void ProcessUpdateTriggerResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetAccountUsageReport.g.cs b/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetAccountUsageReport.g.cs
index 20e2d85..60672fc 100644
--- a/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetAccountUsageReport.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetAccountUsageReport.g.cs
@@ -378,17 +378,15 @@ partial void ProcessGetAccountUsageReportResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -425,17 +423,15 @@ partial void ProcessGetAccountUsageReportResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetAccountUsageResourcesReport.g.cs b/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetAccountUsageResourcesReport.g.cs
index 0c85381..349c0ca 100644
--- a/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetAccountUsageResourcesReport.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetAccountUsageResourcesReport.g.cs
@@ -378,17 +378,15 @@ partial void ProcessGetAccountUsageResourcesReportResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -425,17 +423,15 @@ partial void ProcessGetAccountUsageResourcesReportResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetOrgUsageCsv.g.cs b/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetOrgUsageCsv.g.cs
index 5544a01..1367a5b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetOrgUsageCsv.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.UsageClient.GetOrgUsageCsv.g.cs
@@ -364,17 +364,15 @@ await GetOrgUsageCsvAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -402,17 +400,15 @@ await GetOrgUsageCsvAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMe.g.cs b/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMe.g.cs
index faa1e99..b55e3c1 100644
--- a/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMe.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMe.g.cs
@@ -347,17 +347,15 @@ partial void ProcessGetMeResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessGetMeResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMyGroupProjects.g.cs b/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMyGroupProjects.g.cs
index 997a4aa..8dcc30b 100644
--- a/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMyGroupProjects.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMyGroupProjects.g.cs
@@ -347,17 +347,15 @@ partial void ProcessGetMyGroupProjectsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessGetMyGroupProjectsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMyOrgs.g.cs b/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMyOrgs.g.cs
index f388bcd..d1cf135 100644
--- a/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMyOrgs.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetMyOrgs.g.cs
@@ -347,17 +347,15 @@ partial void ProcessGetMyOrgsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessGetMyOrgsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetUser.g.cs b/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetUser.g.cs
index 59e17fa..0a27e72 100644
--- a/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetUser.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.UsersClient.GetUser.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetUserResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetUserResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.UsersClient.UpdateMyDetails.g.cs b/src/libs/Dataloop/Generated/Dataloop.UsersClient.UpdateMyDetails.g.cs
index 4865794..43f98e0 100644
--- a/src/libs/Dataloop/Generated/Dataloop.UsersClient.UpdateMyDetails.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.UsersClient.UpdateMyDetails.g.cs
@@ -367,17 +367,15 @@ partial void ProcessUpdateMyDetailsResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessUpdateMyDetailsResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.UsersClient.UpdateUserOrg.g.cs b/src/libs/Dataloop/Generated/Dataloop.UsersClient.UpdateUserOrg.g.cs
index 502130e..be47c69 100644
--- a/src/libs/Dataloop/Generated/Dataloop.UsersClient.UpdateUserOrg.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.UsersClient.UpdateUserOrg.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateUserOrgResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateUserOrgResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.VersionClient.GetOaVersion.g.cs b/src/libs/Dataloop/Generated/Dataloop.VersionClient.GetOaVersion.g.cs
index 3902e3a..0864cea 100644
--- a/src/libs/Dataloop/Generated/Dataloop.VersionClient.GetOaVersion.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.VersionClient.GetOaVersion.g.cs
@@ -347,17 +347,15 @@ partial void ProcessGetOaVersionResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -394,17 +392,15 @@ partial void ProcessGetOaVersionResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.CreateWebHook.g.cs b/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.CreateWebHook.g.cs
index db4cfb4..ed9dfd5 100644
--- a/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.CreateWebHook.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.CreateWebHook.g.cs
@@ -367,17 +367,15 @@ partial void ProcessCreateWebHookResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -414,17 +412,15 @@ partial void ProcessCreateWebHookResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.DeleteWebHooks.g.cs b/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.DeleteWebHooks.g.cs
index b119b6b..4d0a420 100644
--- a/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.DeleteWebHooks.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.DeleteWebHooks.g.cs
@@ -342,17 +342,15 @@ await DeleteWebHooksAsResponseAsync(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -380,17 +378,15 @@ await DeleteWebHooksAsResponseAsync(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.GetWebHook.g.cs b/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.GetWebHook.g.cs
index 8f8c289..1742270 100644
--- a/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.GetWebHook.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.GetWebHook.g.cs
@@ -356,17 +356,15 @@ partial void ProcessGetWebHookResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -403,17 +401,15 @@ partial void ProcessGetWebHookResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.ListWebHooks.g.cs b/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.ListWebHooks.g.cs
index 8829d9e..59660e6 100644
--- a/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.ListWebHooks.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.ListWebHooks.g.cs
@@ -369,17 +369,15 @@ partial void ProcessListWebHooksResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -416,17 +414,15 @@ partial void ProcessListWebHooksResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
diff --git a/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.UpdateWebHook.g.cs b/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.UpdateWebHook.g.cs
index 4ef0aed..9c6cde6 100644
--- a/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.UpdateWebHook.g.cs
+++ b/src/libs/Dataloop/Generated/Dataloop.WebHooksClient.UpdateWebHook.g.cs
@@ -376,17 +376,15 @@ partial void ProcessUpdateWebHookResponseContent(
}
catch (global::System.Exception __ex)
{
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}
else
@@ -423,17 +421,15 @@ partial void ProcessUpdateWebHookResponseContent(
{
}
- throw new global::Dataloop.ApiException(
+ throw global::Dataloop.ApiException.Create(
+ statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
- h => h.Value),
- };
+ h => h.Value));
}
}