diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdDeploymentsByChainDeploymentIdDeactivate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdDeploymentsByChainDeploymentIdDeactivate.g.cs index c45d06e..2d10320 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdDeploymentsByChainDeploymentIdDeactivate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdDeploymentsByChainDeploymentIdDeactivate.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateChainsByChainIdDeploymentsByChainDeploymentIdDeactivat } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateChainsByChainIdDeploymentsByChainDeploymentIdDeactivat { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironments.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironments.g.cs index 264af15..6531ea6 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironments.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironments.g.cs @@ -466,17 +466,15 @@ partial void ProcessCreateChainsByChainIdEnvironmentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -513,17 +511,15 @@ partial void ProcessCreateChainsByChainIdEnvironmentsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironmentsByEnvNameChainletSettingsInstanceTypesUpdate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironmentsByEnvNameChainletSettingsInstanceTypesUpdate.g.cs index 008c805..807a51f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironmentsByEnvNameChainletSettingsInstanceTypesUpdate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironmentsByEnvNameChainletSettingsInstanceTypesUpdate.g.cs @@ -421,17 +421,15 @@ partial void ProcessCreateChainsByChainIdEnvironmentsByEnvNameChainletSettingsIn } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -468,17 +466,15 @@ partial void ProcessCreateChainsByChainIdEnvironmentsByEnvNameChainletSettingsIn { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironmentsByEnvNamePromote.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironmentsByEnvNamePromote.g.cs index d90a44f..eb8e31c 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironmentsByEnvNamePromote.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateChainsByChainIdEnvironmentsByEnvNamePromote.g.cs @@ -405,17 +405,15 @@ partial void ProcessCreateChainsByChainIdEnvironmentsByEnvNamePromoteResponseCon } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateChainsByChainIdEnvironmentsByEnvNamePromoteResponseCon { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroups.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroups.g.cs index 25d0cb0..5ef9ddc 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroups.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroups.g.cs @@ -401,17 +401,15 @@ partial void ProcessCreateGatewayGroupsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateGatewayGroupsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroupsByGroupIdApiKeys.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroupsByGroupIdApiKeys.g.cs index 59f4390..b89d647 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroupsByGroupIdApiKeys.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroupsByGroupIdApiKeys.g.cs @@ -394,17 +394,15 @@ partial void ProcessCreateGatewayGroupsByGroupIdApiKeysResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateGatewayGroupsByGroupIdApiKeysResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroupsByGroupIdApiKeysRegister.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroupsByGroupIdApiKeysRegister.g.cs index 03739f6..e34e574 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroupsByGroupIdApiKeysRegister.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateGatewayGroupsByGroupIdApiKeysRegister.g.cs @@ -396,17 +396,15 @@ partial void ProcessCreateGatewayGroupsByGroupIdApiKeysRegisterResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateGatewayGroupsByGroupIdApiKeysRegisterResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateKeys.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateKeys.g.cs index d0bbaff..59d9080 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateKeys.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateKeys.g.cs @@ -387,17 +387,15 @@ partial void ProcessCreateKeysResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateKeysResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLibraryListings.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLibraryListings.g.cs index e361ef5..dbbe50a 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLibraryListings.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLibraryListings.g.cs @@ -389,17 +389,15 @@ partial void ProcessCreateLibraryListingsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateLibraryListingsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLibraryListingsByUserDefinedListingIdVersions.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLibraryListingsByUserDefinedListingIdVersions.g.cs index dce5ca1..a4d21b0 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLibraryListingsByUserDefinedListingIdVersions.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLibraryListingsByUserDefinedListingIdVersions.g.cs @@ -402,17 +402,15 @@ partial void ProcessCreateLibraryListingsByUserDefinedListingIdVersionsResponseC } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateLibraryListingsByUserDefinedListingIdVersionsResponseC { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLlmModels.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLlmModels.g.cs index b7ff05e..79a26be 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLlmModels.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLlmModels.g.cs @@ -447,17 +447,15 @@ partial void ProcessCreateLlmModelsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -494,17 +492,15 @@ partial void ProcessCreateLlmModelsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLlmModelsByModelIdDeployments.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLlmModelsByModelIdDeployments.g.cs index 2756a30..273e82f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLlmModelsByModelIdDeployments.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLlmModelsByModelIdDeployments.g.cs @@ -454,17 +454,15 @@ partial void ProcessCreateLlmModelsByModelIdDeploymentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -501,17 +499,15 @@ partial void ProcessCreateLlmModelsByModelIdDeploymentsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsCheckpointsValidate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsCheckpointsValidate.g.cs index 46029d8..ad8b7eb 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsCheckpointsValidate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsCheckpointsValidate.g.cs @@ -385,17 +385,15 @@ partial void ProcessCreateLoopsCheckpointsValidateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateLoopsCheckpointsValidateResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdDeactivate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdDeactivate.g.cs index 72bcc06..595bf2e 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdDeactivate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdDeactivate.g.cs @@ -368,17 +368,15 @@ partial void ProcessCreateLoopsDeploymentsByDeploymentIdDeactivateResponseConten } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateLoopsDeploymentsByDeploymentIdDeactivateResponseConten { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdMetrics.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdMetrics.g.cs index ed58407..836bc69 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdMetrics.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdMetrics.g.cs @@ -396,17 +396,15 @@ partial void ProcessCreateLoopsDeploymentsByDeploymentIdMetricsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateLoopsDeploymentsByDeploymentIdMetricsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsRuns.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsRuns.g.cs index e8a61e9..02064b2 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsRuns.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsRuns.g.cs @@ -397,17 +397,15 @@ partial void ProcessCreateLoopsRunsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateLoopsRunsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsSamplers.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsSamplers.g.cs index 761c0a6..c83ce2f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsSamplers.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsSamplers.g.cs @@ -391,17 +391,15 @@ partial void ProcessCreateLoopsSamplersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateLoopsSamplersResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsSessions.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsSessions.g.cs index f7d2d3e..8760dad 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsSessions.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsSessions.g.cs @@ -385,17 +385,15 @@ partial void ProcessCreateLoopsSessionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateLoopsSessionsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelApisSnapshots.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelApisSnapshots.g.cs index 563513f..d0875a3 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelApisSnapshots.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelApisSnapshots.g.cs @@ -387,17 +387,15 @@ partial void ProcessCreateModelApisSnapshotsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelApisSnapshotsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelApisSnapshotsByModelId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelApisSnapshotsByModelId.g.cs index 9bb78bf..ab128ec 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelApisSnapshotsByModelId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelApisSnapshotsByModelId.g.cs @@ -396,17 +396,15 @@ partial void ProcessCreateModelApisSnapshotsByModelIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelApisSnapshotsByModelIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModels.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModels.g.cs index 511c97d..fa847b9 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModels.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModels.g.cs @@ -385,17 +385,15 @@ partial void ProcessCreateModelsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeployments.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeployments.g.cs index 9d6a622..aaedacf 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeployments.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeployments.g.cs @@ -392,17 +392,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdDeploymentsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdActivate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdActivate.g.cs index 3bad1c8..6871d94 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdActivate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdActivate.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsByDeploymentIdActivateRespon } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsByDeploymentIdActivateRespon { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdDeactivate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdDeactivate.g.cs index 73abfa9..2136a78 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdDeactivate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdDeactivate.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsByDeploymentIdDeactivateResp } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsByDeploymentIdDeactivateResp { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdPromote.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdPromote.g.cs index a675387..3e3f62c 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdPromote.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdPromote.g.cs @@ -405,17 +405,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsByDeploymentIdPromoteRespons } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdDeploymentsByDeploymentIdPromoteRespons { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdRetry.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdRetry.g.cs index ffc6117..17986e5 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdRetry.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdRetry.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsByDeploymentIdRetryResponseC } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsByDeploymentIdRetryResponseC { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdSshSign.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdSshSign.g.cs index 1b51f61..1d7255c 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdSshSign.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsByDeploymentIdSshSign.g.cs @@ -405,17 +405,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsByDeploymentIdSshSignRespons } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdDeploymentsByDeploymentIdSshSignRespons { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentActivate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentActivate.g.cs index 8cdd7a6..22d5ccf 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentActivate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentActivate.g.cs @@ -368,17 +368,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsDevelopmentActivateResponseC } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdDeploymentsDevelopmentActivateResponseC { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentDeactivate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentDeactivate.g.cs index 37e63d6..8281e9f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentDeactivate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentDeactivate.g.cs @@ -368,17 +368,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsDevelopmentDeactivateRespons } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdDeploymentsDevelopmentDeactivateRespons { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentPromote.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentPromote.g.cs index c112d06..a5e2701 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentPromote.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentPromote.g.cs @@ -396,17 +396,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsDevelopmentPromoteResponseCo } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdDeploymentsDevelopmentPromoteResponseCo { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentRetry.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentRetry.g.cs index ef7d887..a9d6ca7 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentRetry.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsDevelopmentRetry.g.cs @@ -368,17 +368,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsDevelopmentRetryResponseCont } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdDeploymentsDevelopmentRetryResponseCont { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionActivate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionActivate.g.cs index 7ebe5dc..19dc5bd 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionActivate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionActivate.g.cs @@ -368,17 +368,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsProductionActivateResponseCo } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdDeploymentsProductionActivateResponseCo { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionDeactivate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionDeactivate.g.cs index 0e42d8f..980d4a0 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionDeactivate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionDeactivate.g.cs @@ -368,17 +368,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsProductionDeactivateResponse } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdDeploymentsProductionDeactivateResponse { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionRetry.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionRetry.g.cs index b4b3f6b..1d2c6ed 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionRetry.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeploymentsProductionRetry.g.cs @@ -368,17 +368,15 @@ partial void ProcessCreateModelsByModelIdDeploymentsProductionRetryResponseConte } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdDeploymentsProductionRetryResponseConte { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironments.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironments.g.cs index 29b0ca9..8e38936 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironments.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironments.g.cs @@ -428,17 +428,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdEnvironmentsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameActivate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameActivate.g.cs index 06836f7..edd6db0 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameActivate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameActivate.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameActivateResponseCo } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameActivateResponseCo { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameCancelPromotion.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameCancelPromotion.g.cs index 1f55118..33ea6aa 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameCancelPromotion.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameCancelPromotion.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameCancelPromotionRes } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameCancelPromotionRes { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameDeactivate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameDeactivate.g.cs index e02eec6..0cf2771 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameDeactivate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameDeactivate.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameDeactivateResponse } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameDeactivateResponse { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameForceCancelPromotion.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameForceCancelPromotion.g.cs index 1f99c34..20ad040 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameForceCancelPromotion.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameForceCancelPromotion.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameForceCancelPromoti } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameForceCancelPromoti { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameForceRollForwardPromotion.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameForceRollForwardPromotion.g.cs index 6b65691..68ea59b 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameForceRollForwardPromotion.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameForceRollForwardPromotion.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameForceRollForwardPr } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameForceRollForwardPr { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNamePausePromotion.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNamePausePromotion.g.cs index e5cd324..c7664f6 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNamePausePromotion.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNamePausePromotion.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNamePausePromotionResp } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNamePausePromotionResp { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNamePromote.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNamePromote.g.cs index a626204..ac9fb88 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNamePromote.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNamePromote.g.cs @@ -407,17 +407,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNamePromoteResponseCon } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateModelsByModelIdEnvironmentsByEnvNamePromoteResponseCon { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameResumePromotion.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameResumePromotion.g.cs index 463e9f9..52b8c90 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameResumePromotion.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdEnvironmentsByEnvNameResumePromotion.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameResumePromotionRes } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateModelsByModelIdEnvironmentsByEnvNameResumePromotionRes { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreatePrepareModelUpload.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreatePrepareModelUpload.g.cs index 254d07e..dea4224 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreatePrepareModelUpload.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreatePrepareModelUpload.g.cs @@ -411,17 +411,15 @@ partial void ProcessCreatePrepareModelUploadResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +456,15 @@ partial void ProcessCreatePrepareModelUploadResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateSecrets.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateSecrets.g.cs index cc08ac7..0f085cb 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateSecrets.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateSecrets.g.cs @@ -387,17 +387,15 @@ partial void ProcessCreateSecretsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateSecretsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdApiKeys.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdApiKeys.g.cs index 5d21a6f..51db485 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdApiKeys.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdApiKeys.g.cs @@ -396,17 +396,15 @@ partial void ProcessCreateTeamsByTeamIdApiKeysResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTeamsByTeamIdApiKeysResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdLlmModels.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdLlmModels.g.cs index 1ba4e6c..71c29a8 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdLlmModels.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdLlmModels.g.cs @@ -456,17 +456,15 @@ partial void ProcessCreateTeamsByTeamIdLlmModelsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -503,17 +501,15 @@ partial void ProcessCreateTeamsByTeamIdLlmModelsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdModels.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdModels.g.cs index 529f937..aa21527 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdModels.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdModels.g.cs @@ -394,17 +394,15 @@ partial void ProcessCreateTeamsByTeamIdModelsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTeamsByTeamIdModelsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdSecrets.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdSecrets.g.cs index 47ab360..184e14d 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdSecrets.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdSecrets.g.cs @@ -396,17 +396,15 @@ partial void ProcessCreateTeamsByTeamIdSecretsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTeamsByTeamIdSecretsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdTrainingProjects.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdTrainingProjects.g.cs index aa30168..6797c1f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdTrainingProjects.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdTrainingProjects.g.cs @@ -398,17 +398,15 @@ partial void ProcessCreateTeamsByTeamIdTrainingProjectsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTeamsByTeamIdTrainingProjectsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessions.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessions.g.cs index 39c7e46..d685b71 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessions.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessions.g.cs @@ -385,17 +385,15 @@ partial void ProcessCreateTrainerSessionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTrainerSessionsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessionsBySessionIdSamplers.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessionsBySessionIdSamplers.g.cs index ba3ee65..5db31a0 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessionsBySessionIdSamplers.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessionsBySessionIdSamplers.g.cs @@ -398,17 +398,15 @@ partial void ProcessCreateTrainerSessionsBySessionIdSamplersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTrainerSessionsBySessionIdSamplersResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessionsBySessionIdTrainers.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessionsBySessionIdTrainers.g.cs index eb6d66d..8ac2f0f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessionsBySessionIdTrainers.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainerSessionsBySessionIdTrainers.g.cs @@ -404,17 +404,15 @@ partial void ProcessCreateTrainerSessionsBySessionIdTrainersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTrainerSessionsBySessionIdTrainersResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainersCheckpointsSearch.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainersCheckpointsSearch.g.cs index be43dd2..06c156b 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainersCheckpointsSearch.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainersCheckpointsSearch.g.cs @@ -385,17 +385,15 @@ partial void ProcessCreateTrainersCheckpointsSearchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTrainersCheckpointsSearchResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainersSearch.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainersSearch.g.cs index c610db0..82900d4 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainersSearch.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainersSearch.g.cs @@ -385,17 +385,15 @@ partial void ProcessCreateTrainersSearchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTrainersSearchResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingJobsSearch.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingJobsSearch.g.cs index 8013e2c..167827b 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingJobsSearch.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingJobsSearch.g.cs @@ -397,17 +397,15 @@ partial void ProcessCreateTrainingJobsSearchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTrainingJobsSearchResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjects.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjects.g.cs index 8d71e8e..edefd2f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjects.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjects.g.cs @@ -389,17 +389,15 @@ partial void ProcessCreateTrainingProjectsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTrainingProjectsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobs.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobs.g.cs index dccd242..e4aec54 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobs.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobs.g.cs @@ -498,17 +498,15 @@ partial void ProcessCreateTrainingProjectsByTrainingProjectIdJobsResponseContent } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -545,17 +543,15 @@ partial void ProcessCreateTrainingProjectsByTrainingProjectIdJobsResponseContent { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdRecreate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdRecreate.g.cs index e489f7a..8a3fd0f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdRecreate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdRecreate.g.cs @@ -377,17 +377,15 @@ partial void ProcessCreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobId } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessCreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobId { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdSshSign.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdSshSign.g.cs index 0928bd2..5573426 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdSshSign.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdSshSign.g.cs @@ -405,17 +405,15 @@ partial void ProcessCreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobId } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobId { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdStop.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdStop.g.cs index 92d58b2..3e63150 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdStop.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdStop.g.cs @@ -399,17 +399,15 @@ partial void ProcessCreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobId } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessCreateTrainingProjectsByTrainingProjectIdJobsByTrainingJobId { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteChainsByChainId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteChainsByChainId.g.cs index 93cc5be..8c86957 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteChainsByChainId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteChainsByChainId.g.cs @@ -366,17 +366,15 @@ partial void ProcessDeleteChainsByChainIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -413,17 +411,15 @@ partial void ProcessDeleteChainsByChainIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteChainsByChainIdDeploymentsByChainDeploymentId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteChainsByChainIdDeploymentsByChainDeploymentId.g.cs index cb6a010..114f7d0 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteChainsByChainIdDeploymentsByChainDeploymentId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteChainsByChainIdDeploymentsByChainDeploymentId.g.cs @@ -375,17 +375,15 @@ partial void ProcessDeleteChainsByChainIdDeploymentsByChainDeploymentIdResponseC } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessDeleteChainsByChainIdDeploymentsByChainDeploymentIdResponseC { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteKeysByApiKeyPrefix.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteKeysByApiKeyPrefix.g.cs index 430cfa5..1039252 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteKeysByApiKeyPrefix.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteKeysByApiKeyPrefix.g.cs @@ -368,17 +368,15 @@ partial void ProcessDeleteKeysByApiKeyPrefixResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessDeleteKeysByApiKeyPrefixResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteLibraryListingsByUserDefinedListingId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteLibraryListingsByUserDefinedListingId.g.cs index 088b5fd..7545db7 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteLibraryListingsByUserDefinedListingId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteLibraryListingsByUserDefinedListingId.g.cs @@ -368,17 +368,15 @@ partial void ProcessDeleteLibraryListingsByUserDefinedListingIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessDeleteLibraryListingsByUserDefinedListingIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs index 2e66f86..81faa52 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs @@ -377,17 +377,15 @@ partial void ProcessDeleteLibraryListingsByUserDefinedListingIdVersionsByVersion } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessDeleteLibraryListingsByUserDefinedListingIdVersionsByVersion { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelId.g.cs index 1c19dac..e78d33f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelId.g.cs @@ -366,17 +366,15 @@ partial void ProcessDeleteModelsByModelIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -413,17 +411,15 @@ partial void ProcessDeleteModelsByModelIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelIdDeploymentsByDeploymentId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelIdDeploymentsByDeploymentId.g.cs index 4d3f1e2..8e9abb8 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelIdDeploymentsByDeploymentId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelIdDeploymentsByDeploymentId.g.cs @@ -377,17 +377,15 @@ partial void ProcessDeleteModelsByModelIdDeploymentsByDeploymentIdResponseConten } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessDeleteModelsByModelIdDeploymentsByDeploymentIdResponseConten { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelIdDeploymentsByDeploymentIdReplicasByReplicaId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelIdDeploymentsByDeploymentIdReplicasByReplicaId.g.cs index e50a7a5..677ac4f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelIdDeploymentsByDeploymentIdReplicasByReplicaId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteModelsByModelIdDeploymentsByDeploymentIdReplicasByReplicaId.g.cs @@ -386,17 +386,15 @@ partial void ProcessDeleteModelsByModelIdDeploymentsByDeploymentIdReplicasByRepl } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessDeleteModelsByModelIdDeploymentsByDeploymentIdReplicasByRepl { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteSecretsBySecretName.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteSecretsBySecretName.g.cs index da95839..46b0020 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteSecretsBySecretName.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteSecretsBySecretName.g.cs @@ -368,17 +368,15 @@ partial void ProcessDeleteSecretsBySecretNameResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessDeleteSecretsBySecretNameResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTeamsByTeamIdSecretsBySecretName.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTeamsByTeamIdSecretsBySecretName.g.cs index d094b31..364c032 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTeamsByTeamIdSecretsBySecretName.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTeamsByTeamIdSecretsBySecretName.g.cs @@ -377,17 +377,15 @@ partial void ProcessDeleteTeamsByTeamIdSecretsBySecretNameResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessDeleteTeamsByTeamIdSecretsBySecretNameResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTrainingProjectsByTrainingProjectId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTrainingProjectsByTrainingProjectId.g.cs index d162ef4..d7ac2e9 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTrainingProjectsByTrainingProjectId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTrainingProjectsByTrainingProjectId.g.cs @@ -368,17 +368,15 @@ partial void ProcessDeleteTrainingProjectsByTrainingProjectIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessDeleteTrainingProjectsByTrainingProjectIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTrainingProjectsByTrainingProjectIdJobsByTrainingJobId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTrainingProjectsByTrainingProjectIdJobsByTrainingJobId.g.cs index 380a21b..9ce6334 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTrainingProjectsByTrainingProjectIdJobsByTrainingJobId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTrainingProjectsByTrainingProjectIdJobsByTrainingJobId.g.cs @@ -377,17 +377,15 @@ partial void ProcessDeleteTrainingProjectsByTrainingProjectIdJobsByTrainingJobId } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessDeleteTrainingProjectsByTrainingProjectIdJobsByTrainingJobId { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditChainsByChainIdEnvironmentsByEnvName.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditChainsByChainIdEnvironmentsByEnvName.g.cs index fa4f96a..e575624 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditChainsByChainIdEnvironmentsByEnvName.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditChainsByChainIdEnvironmentsByEnvName.g.cs @@ -417,17 +417,15 @@ partial void ProcessEditChainsByChainIdEnvironmentsByEnvNameResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessEditChainsByChainIdEnvironmentsByEnvNameResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditChainsByChainIdEnvironmentsByEnvNameChainletSettingsAutoscalingSettings.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditChainsByChainIdEnvironmentsByEnvNameChainletSettingsAutoscalingSettings.g.cs index 45aa830..3527767 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditChainsByChainIdEnvironmentsByEnvNameChainletSettingsAutoscalingSettings.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditChainsByChainIdEnvironmentsByEnvNameChainletSettingsAutoscalingSettings.g.cs @@ -429,17 +429,15 @@ partial void ProcessEditChainsByChainIdEnvironmentsByEnvNameChainletSettingsAuto } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessEditChainsByChainIdEnvironmentsByEnvNameChainletSettingsAuto { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditGatewayGroupsByGroupId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditGatewayGroupsByGroupId.g.cs index 80130ad..296d95b 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditGatewayGroupsByGroupId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditGatewayGroupsByGroupId.g.cs @@ -400,17 +400,15 @@ partial void ProcessEditGatewayGroupsByGroupIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessEditGatewayGroupsByGroupIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditLibraryListingsByUserDefinedListingId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditLibraryListingsByUserDefinedListingId.g.cs index 4e65ba8..c7795af 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditLibraryListingsByUserDefinedListingId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditLibraryListingsByUserDefinedListingId.g.cs @@ -396,17 +396,15 @@ partial void ProcessEditLibraryListingsByUserDefinedListingIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessEditLibraryListingsByUserDefinedListingIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs index 7813f60..4957f48 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs @@ -405,17 +405,15 @@ partial void ProcessEditLibraryListingsByUserDefinedListingIdVersionsByVersionTa } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessEditLibraryListingsByUserDefinedListingIdVersionsByVersionTa { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsByDeploymentIdAutoscalingSettings.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsByDeploymentIdAutoscalingSettings.g.cs index 84e96ef..d08d1d5 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsByDeploymentIdAutoscalingSettings.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsByDeploymentIdAutoscalingSettings.g.cs @@ -415,17 +415,15 @@ partial void ProcessEditModelsByModelIdDeploymentsByDeploymentIdAutoscalingSetti } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +460,15 @@ partial void ProcessEditModelsByModelIdDeploymentsByDeploymentIdAutoscalingSetti { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsDevelopmentAutoscalingSettings.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsDevelopmentAutoscalingSettings.g.cs index 998ad39..84e8205 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsDevelopmentAutoscalingSettings.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsDevelopmentAutoscalingSettings.g.cs @@ -406,17 +406,15 @@ partial void ProcessEditModelsByModelIdDeploymentsDevelopmentAutoscalingSettings } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessEditModelsByModelIdDeploymentsDevelopmentAutoscalingSettings { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsProductionAutoscalingSettings.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsProductionAutoscalingSettings.g.cs index 1168f06..23889a3 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsProductionAutoscalingSettings.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdDeploymentsProductionAutoscalingSettings.g.cs @@ -406,17 +406,15 @@ partial void ProcessEditModelsByModelIdDeploymentsProductionAutoscalingSettingsR } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessEditModelsByModelIdDeploymentsProductionAutoscalingSettingsR { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdEnvironmentsByEnvName.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdEnvironmentsByEnvName.g.cs index 418fc03..dc633b4 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdEnvironmentsByEnvName.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditModelsByModelIdEnvironmentsByEnvName.g.cs @@ -435,17 +435,15 @@ partial void ProcessEditModelsByModelIdEnvironmentsByEnvNameResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -482,17 +480,15 @@ partial void ProcessEditModelsByModelIdEnvironmentsByEnvNameResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdInteractiveSessionsBySessionId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdInteractiveSessionsBySessionId.g.cs index 4889f99..26c709c 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdInteractiveSessionsBySessionId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdInteractiveSessionsBySessionId.g.cs @@ -414,17 +414,15 @@ partial void ProcessEditTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdIn } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessEditTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdIn { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBillingUsageSummary.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBillingUsageSummary.g.cs index 6392596..2d018fe 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBillingUsageSummary.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBillingUsageSummary.g.cs @@ -381,17 +381,15 @@ partial void ProcessGetBillingUsageSummaryResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetBillingUsageSummaryResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBlobsCredentialsModel.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBlobsCredentialsModel.g.cs index 83bb961..147ad56 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBlobsCredentialsModel.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBlobsCredentialsModel.g.cs @@ -357,17 +357,15 @@ partial void ProcessGetBlobsCredentialsModelResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 @@ partial void ProcessGetBlobsCredentialsModelResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBlobsCredentialsTrain.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBlobsCredentialsTrain.g.cs index fa52832..05a325d 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBlobsCredentialsTrain.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetBlobsCredentialsTrain.g.cs @@ -357,17 +357,15 @@ partial void ProcessGetBlobsCredentialsTrainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 @@ partial void ProcessGetBlobsCredentialsTrainResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChains.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChains.g.cs index 4ee3474..aefe4df 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChains.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChains.g.cs @@ -357,17 +357,15 @@ partial void ProcessGetChainsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 @@ partial void ProcessGetChainsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainId.g.cs index 37ecb2b..fe5b930 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainId.g.cs @@ -366,17 +366,15 @@ partial void ProcessGetChainsByChainIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -413,17 +411,15 @@ partial void ProcessGetChainsByChainIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeployments.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeployments.g.cs index b7fab85..164dad0 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeployments.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeployments.g.cs @@ -366,17 +366,15 @@ partial void ProcessGetChainsByChainIdDeploymentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -413,17 +411,15 @@ partial void ProcessGetChainsByChainIdDeploymentsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeploymentsByChainDeploymentId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeploymentsByChainDeploymentId.g.cs index 0feb5cf..c966f11 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeploymentsByChainDeploymentId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeploymentsByChainDeploymentId.g.cs @@ -375,17 +375,15 @@ partial void ProcessGetChainsByChainIdDeploymentsByChainDeploymentIdResponseCont } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetChainsByChainIdDeploymentsByChainDeploymentIdResponseCont { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeploymentsByChainDeploymentIdChainletsByChainletIdLogs.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeploymentsByChainDeploymentIdChainletsByChainletIdLogs.g.cs index 6c467a6..8c45616 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeploymentsByChainDeploymentIdChainletsByChainletIdLogs.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdDeploymentsByChainDeploymentIdChainletsByChainletIdLogs.g.cs @@ -444,17 +444,15 @@ partial void ProcessGetChainsByChainIdDeploymentsByChainDeploymentIdChainletsByC } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetChainsByChainIdDeploymentsByChainDeploymentIdChainletsByC { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdEnvironments.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdEnvironments.g.cs index 418bbb2..acc9d84 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdEnvironments.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdEnvironments.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetChainsByChainIdEnvironmentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetChainsByChainIdEnvironmentsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdEnvironmentsByEnvName.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdEnvironmentsByEnvName.g.cs index 2114692..91d7de7 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdEnvironmentsByEnvName.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetChainsByChainIdEnvironmentsByEnvName.g.cs @@ -377,17 +377,15 @@ partial void ProcessGetChainsByChainIdEnvironmentsByEnvNameResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessGetChainsByChainIdEnvironmentsByEnvNameResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroups.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroups.g.cs index 54ce013..6bf764c 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroups.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroups.g.cs @@ -357,17 +357,15 @@ partial void ProcessGetGatewayGroupsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 @@ partial void ProcessGetGatewayGroupsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupId.g.cs index 621d021..b995b52 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupId.g.cs @@ -366,17 +366,15 @@ partial void ProcessGetGatewayGroupsByGroupIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -413,17 +411,15 @@ partial void ProcessGetGatewayGroupsByGroupIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupIdApiKeys.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupIdApiKeys.g.cs index b35d197..b6b0050 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupIdApiKeys.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupIdApiKeys.g.cs @@ -366,17 +366,15 @@ partial void ProcessGetGatewayGroupsByGroupIdApiKeysResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -413,17 +411,15 @@ partial void ProcessGetGatewayGroupsByGroupIdApiKeysResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupIdApiKeysByApiKeyPrefix.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupIdApiKeysByApiKeyPrefix.g.cs index a9caccf..078f384 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupIdApiKeysByApiKeyPrefix.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetGatewayGroupsByGroupIdApiKeysByApiKeyPrefix.g.cs @@ -375,17 +375,15 @@ partial void ProcessGetGatewayGroupsByGroupIdApiKeysByApiKeyPrefixResponseConten } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetGatewayGroupsByGroupIdApiKeysByApiKeyPrefixResponseConten { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetInstanceTypePrices.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetInstanceTypePrices.g.cs index e6bbb17..fa97a8e 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetInstanceTypePrices.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetInstanceTypePrices.g.cs @@ -357,17 +357,15 @@ partial void ProcessGetInstanceTypePricesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 @@ partial void ProcessGetInstanceTypePricesResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetInstanceTypes.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetInstanceTypes.g.cs index 5c0fad2..5228b9f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetInstanceTypes.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetInstanceTypes.g.cs @@ -357,17 +357,15 @@ partial void ProcessGetInstanceTypesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 @@ partial void ProcessGetInstanceTypesResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetKeys.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetKeys.g.cs index da7a858..7f1bda1 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetKeys.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetKeys.g.cs @@ -357,17 +357,15 @@ partial void ProcessGetKeysResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 @@ partial void ProcessGetKeysResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListings.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListings.g.cs index a1ce4f9..28b18ca 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListings.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListings.g.cs @@ -359,17 +359,15 @@ partial void ProcessGetLibraryListingsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLibraryListingsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingId.g.cs index 4919501..f51dde4 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingId.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetLibraryListingsByUserDefinedListingIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLibraryListingsByUserDefinedListingIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingIdVersions.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingIdVersions.g.cs index 22bda45..7dd1a4a 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingIdVersions.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingIdVersions.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetLibraryListingsByUserDefinedListingIdVersionsResponseCont } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLibraryListingsByUserDefinedListingIdVersionsResponseCont { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs index 02b3368..0859c9e 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLibraryListingsByUserDefinedListingIdVersionsByVersionTag.g.cs @@ -377,17 +377,15 @@ partial void ProcessGetLibraryListingsByUserDefinedListingIdVersionsByVersionTag } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessGetLibraryListingsByUserDefinedListingIdVersionsByVersionTag { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCapabilities.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCapabilities.g.cs index 54f6120..1d4423f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCapabilities.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCapabilities.g.cs @@ -359,17 +359,15 @@ partial void ProcessGetLoopsCapabilitiesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLoopsCapabilitiesResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCheckpoints.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCheckpoints.g.cs index d76d375..a8b2e8a 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCheckpoints.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCheckpoints.g.cs @@ -403,17 +403,15 @@ partial void ProcessGetLoopsCheckpointsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLoopsCheckpointsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCheckpointsByCheckpointIdFiles.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCheckpointsByCheckpointIdFiles.g.cs index 99a6b52..5aae6a5 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCheckpointsByCheckpointIdFiles.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsCheckpointsByCheckpointIdFiles.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetLoopsCheckpointsByCheckpointIdFilesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLoopsCheckpointsByCheckpointIdFilesResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsDeployments.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsDeployments.g.cs index f9eb43f..933ad88 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsDeployments.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsDeployments.g.cs @@ -359,17 +359,15 @@ partial void ProcessGetLoopsDeploymentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLoopsDeploymentsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsDeploymentsByDeploymentId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsDeploymentsByDeploymentId.g.cs index 44c3202..bf91a8a 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsDeploymentsByDeploymentId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsDeploymentsByDeploymentId.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetLoopsDeploymentsByDeploymentIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLoopsDeploymentsByDeploymentIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsRuns.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsRuns.g.cs index 0316929..481afab 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsRuns.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsRuns.g.cs @@ -389,17 +389,15 @@ partial void ProcessGetLoopsRunsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLoopsRunsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsRunsByRunId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsRunsByRunId.g.cs index a98f495..07575d4 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsRunsByRunId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsRunsByRunId.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetLoopsRunsByRunIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLoopsRunsByRunIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSamplers.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSamplers.g.cs index e6d301d..e5afb18 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSamplers.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSamplers.g.cs @@ -359,17 +359,15 @@ partial void ProcessGetLoopsSamplersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLoopsSamplersResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSamplersBySamplerId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSamplersBySamplerId.g.cs index 0aecb0a..6a0c10d 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSamplersBySamplerId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSamplersBySamplerId.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetLoopsSamplersBySamplerIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLoopsSamplersBySamplerIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSessionsBySessionId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSessionsBySessionId.g.cs index a5abbe9..dc8e64f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSessionsBySessionId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetLoopsSessionsBySessionId.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetLoopsSessionsBySessionIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetLoopsSessionsBySessionIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelApisSnapshots.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelApisSnapshots.g.cs index 7c4cdbe..f583780 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelApisSnapshots.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelApisSnapshots.g.cs @@ -359,17 +359,15 @@ partial void ProcessGetModelApisSnapshotsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetModelApisSnapshotsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelApisSnapshotsByModelId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelApisSnapshotsByModelId.g.cs index 884d66d..b759580 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelApisSnapshotsByModelId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelApisSnapshotsByModelId.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetModelApisSnapshotsByModelIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetModelApisSnapshotsByModelIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModels.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModels.g.cs index 7c7876a..3437e4f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModels.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModels.g.cs @@ -357,17 +357,15 @@ partial void ProcessGetModelsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 @@ partial void ProcessGetModelsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelId.g.cs index 497d504..d17ea8f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelId.g.cs @@ -366,17 +366,15 @@ partial void ProcessGetModelsByModelIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -413,17 +411,15 @@ partial void ProcessGetModelsByModelIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeployments.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeployments.g.cs index 268b78a..c87ed85 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeployments.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeployments.g.cs @@ -366,17 +366,15 @@ partial void ProcessGetModelsByModelIdDeploymentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -413,17 +411,15 @@ partial void ProcessGetModelsByModelIdDeploymentsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentId.g.cs index 1b799b5..6c35575 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentId.g.cs @@ -377,17 +377,15 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdConfig.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdConfig.g.cs index be61888..fbe24cf 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdConfig.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdConfig.g.cs @@ -393,17 +393,15 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdConfigResponseCon } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -440,17 +438,15 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdConfigResponseCon { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdDownload.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdDownload.g.cs index 29ec99f..1638f3a 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdDownload.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdDownload.g.cs @@ -377,17 +377,15 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdDownloadResponseC } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdDownloadResponseC { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdLogs.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdLogs.g.cs index 3f41ada..96e13c7 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdLogs.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdLogs.g.cs @@ -435,17 +435,15 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdLogsResponseConte } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -482,17 +480,15 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdLogsResponseConte { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsDevelopment.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsDevelopment.g.cs index 885bc45..932a045 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsDevelopment.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsDevelopment.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetModelsByModelIdDeploymentsDevelopmentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetModelsByModelIdDeploymentsDevelopmentResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsProduction.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsProduction.g.cs index ad38b96..ee9d5a7 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsProduction.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsProduction.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetModelsByModelIdDeploymentsProductionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetModelsByModelIdDeploymentsProductionResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironments.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironments.g.cs index c1fafcf..da9cb90 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironments.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironments.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetModelsByModelIdEnvironmentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetModelsByModelIdEnvironmentsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvName.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvName.g.cs index 000d36a..ec85258 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvName.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvName.g.cs @@ -377,17 +377,15 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetSecrets.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetSecrets.g.cs index bd29606..97e5c01 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetSecrets.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetSecrets.g.cs @@ -357,17 +357,15 @@ partial void ProcessGetSecretsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 @@ partial void ProcessGetSecretsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeams.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeams.g.cs index f48931b..bccf729 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeams.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeams.g.cs @@ -359,17 +359,15 @@ partial void ProcessGetTeamsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetTeamsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeamsByTeamIdModels.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeamsByTeamIdModels.g.cs index d9ee86b..5a03b6f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeamsByTeamIdModels.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeamsByTeamIdModels.g.cs @@ -366,17 +366,15 @@ partial void ProcessGetTeamsByTeamIdModelsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -413,17 +411,15 @@ partial void ProcessGetTeamsByTeamIdModelsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeamsByTeamIdSecrets.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeamsByTeamIdSecrets.g.cs index 73be9f0..3fde718 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeamsByTeamIdSecrets.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTeamsByTeamIdSecrets.g.cs @@ -366,17 +366,15 @@ partial void ProcessGetTeamsByTeamIdSecretsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -413,17 +411,15 @@ partial void ProcessGetTeamsByTeamIdSecretsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpoints.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpoints.g.cs index 59c2149..751cc87 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpoints.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpoints.g.cs @@ -377,17 +377,15 @@ partial void ProcessGetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpointsR } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessGetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpointsR { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpointsByCheckpointIdFiles.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpointsByCheckpointIdFiles.g.cs index 2d5e53b..17874dc 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpointsByCheckpointIdFiles.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpointsByCheckpointIdFiles.g.cs @@ -386,17 +386,15 @@ partial void ProcessGetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpointsB } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetTrainerSessionsBySessionIdTrainersByTrainerIdCheckpointsB { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingCapacity.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingCapacity.g.cs index 7975eef..8604377 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingCapacity.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingCapacity.g.cs @@ -359,17 +359,15 @@ partial void ProcessGetTrainingCapacityResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetTrainingCapacityResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjects.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjects.g.cs index c1326b9..43f0005 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjects.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjects.g.cs @@ -359,17 +359,15 @@ partial void ProcessGetTrainingProjectsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetTrainingProjectsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectId.g.cs index 6d4ccee..1d81618 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectId.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetTrainingProjectsByTrainingProjectIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdCacheSummary.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdCacheSummary.g.cs index 7722d99..417a592 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdCacheSummary.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdCacheSummary.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdCacheSummaryResponseCo } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetTrainingProjectsByTrainingProjectIdCacheSummaryResponseCo { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobs.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobs.g.cs index d9d5ba0..d93f7c5 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobs.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobs.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetTrainingProjectsByTrainingProjectIdJobsResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobId.g.cs index 04d7405..d2c243f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobId.g.cs @@ -377,17 +377,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdRes } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdRes { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdAuthCodes.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdAuthCodes.g.cs index 128917c..4ca4ac3 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdAuthCodes.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdAuthCodes.g.cs @@ -377,17 +377,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdAut } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdAut { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdCheckpointFiles.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdCheckpointFiles.g.cs index 3bbec7d..40996d6 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdCheckpointFiles.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdCheckpointFiles.g.cs @@ -407,17 +407,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdChe } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdChe { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdCheckpoints.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdCheckpoints.g.cs index 05a9cd9..874173a 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdCheckpoints.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdCheckpoints.g.cs @@ -377,17 +377,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdChe } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdChe { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdDownload.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdDownload.g.cs index 1f35b8b..ab2fbff 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdDownload.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdDownload.g.cs @@ -377,17 +377,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdDow } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +422,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdDow { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdLogs.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdLogs.g.cs index 33eac4c..8c778d2 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdLogs.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdLogs.g.cs @@ -435,17 +435,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdLog } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -482,17 +480,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdLog { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdMetrics.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdMetrics.g.cs index 0d98a07..a3b9525 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdMetrics.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdMetrics.g.cs @@ -407,17 +407,15 @@ partial void ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdMet } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdMet { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetUsersByUserId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetUsersByUserId.g.cs index 71df7c2..11d6bbe 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetUsersByUserId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetUsersByUserId.g.cs @@ -368,17 +368,15 @@ partial void ProcessGetUsersByUserIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::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 ProcessGetUsersByUserIdResponseContent( { } - throw new global::Baseten.ApiException( + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Baseten/Generated/Baseten.Exceptions.g.cs b/src/libs/Baseten/Generated/Baseten.Exceptions.g.cs index 6ded22f..8d18019 100644 --- a/src/libs/Baseten/Generated/Baseten.Exceptions.g.cs +++ b/src/libs/Baseten/Generated/Baseten.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::Baseten.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Baseten.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::Baseten.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Baseten.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::Baseten.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Baseten.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::Baseten.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::Baseten.ApiException.Create(statusCode, message, innerException, responseHeaders); + exception.ResponseBody = responseBody; + exception.ResponseObject = responseObject; + exception.ResponseHeaders = responseHeaders; + return exception; + } } } \ No newline at end of file