diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModels.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModels.g.cs
new file mode 100644
index 0000000..511c97d
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModels.g.cs
@@ -0,0 +1,482 @@
+
+#nullable enable
+
+namespace Baseten
+{
+ public partial class BasetenClient
+ {
+
+
+ private static readonly global::Baseten.EndPointSecurityRequirement s_CreateModelsSecurityRequirement0 =
+ new global::Baseten.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Baseten.EndPointAuthorizationRequirement[]
+ { new global::Baseten.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Baseten.EndPointSecurityRequirement[] s_CreateModelsSecurityRequirements =
+ new global::Baseten.EndPointSecurityRequirement[]
+ { s_CreateModelsSecurityRequirement0,
+ };
+ partial void PrepareCreateModelsArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Baseten.CreateModelRequestV1 request);
+ partial void PrepareCreateModelsRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Baseten.CreateModelRequestV1 request);
+ partial void ProcessCreateModelsResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessCreateModelsResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/models \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ public async global::System.Threading.Tasks.Task CreateModelsAsync(
+
+ global::Baseten.CreateModelRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateModelsAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/models \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ public async global::System.Threading.Tasks.Task> CreateModelsAsResponseAsync(
+
+ global::Baseten.CreateModelRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateModelsArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateModelsSecurityRequirements,
+ operationName: "CreateModelsAsync");
+
+ using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Baseten.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Baseten.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Baseten.PathBuilder(
+ path: "/v1/models",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Baseten.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Baseten.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareCreateModelsRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createModels",
+ methodName: "CreateModelsAsync",
+ pathTemplate: "\"/v1/models\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createModels",
+ methodName: "CreateModelsAsync",
+ pathTemplate: "\"/v1/models\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Baseten.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createModels",
+ methodName: "CreateModelsAsync",
+ pathTemplate: "\"/v1/models\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessCreateModelsResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createModels",
+ methodName: "CreateModelsAsync",
+ pathTemplate: "\"/v1/models\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createModels",
+ methodName: "CreateModelsAsync",
+ pathTemplate: "\"/v1/models\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessCreateModelsResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Baseten.CreatedModelDeploymentV1.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Baseten.CreatedModelDeploymentV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ /// Where the new model is created from.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task CreateModelsAsync(
+ global::Baseten.Source source,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Baseten.CreateModelRequestV1
+ {
+ Source = source,
+ };
+
+ return await CreateModelsAsync(
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeployments.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeployments.g.cs
new file mode 100644
index 0000000..9d6a622
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModelsByModelIdDeployments.g.cs
@@ -0,0 +1,491 @@
+
+#nullable enable
+
+namespace Baseten
+{
+ public partial class BasetenClient
+ {
+
+
+ private static readonly global::Baseten.EndPointSecurityRequirement s_CreateModelsByModelIdDeploymentsSecurityRequirement0 =
+ new global::Baseten.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Baseten.EndPointAuthorizationRequirement[]
+ { new global::Baseten.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Baseten.EndPointSecurityRequirement[] s_CreateModelsByModelIdDeploymentsSecurityRequirements =
+ new global::Baseten.EndPointSecurityRequirement[]
+ { s_CreateModelsByModelIdDeploymentsSecurityRequirement0,
+ };
+ partial void PrepareCreateModelsByModelIdDeploymentsArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string modelId,
+ global::Baseten.CreateModelDeploymentRequestV1 request);
+ partial void PrepareCreateModelsByModelIdDeploymentsRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string modelId,
+ global::Baseten.CreateModelDeploymentRequestV1 request);
+ partial void ProcessCreateModelsByModelIdDeploymentsResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessCreateModelsByModelIdDeploymentsResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Adds a new deployment to a model
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ public async global::System.Threading.Tasks.Task CreateModelsByModelIdDeploymentsAsync(
+ string modelId,
+
+ global::Baseten.CreateModelDeploymentRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateModelsByModelIdDeploymentsAsResponseAsync(
+ modelId: modelId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Adds a new deployment to a model
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ public async global::System.Threading.Tasks.Task> CreateModelsByModelIdDeploymentsAsResponseAsync(
+ string modelId,
+
+ global::Baseten.CreateModelDeploymentRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateModelsByModelIdDeploymentsArguments(
+ httpClient: HttpClient,
+ modelId: ref modelId,
+ request: request);
+
+
+ var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateModelsByModelIdDeploymentsSecurityRequirements,
+ operationName: "CreateModelsByModelIdDeploymentsAsync");
+
+ using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Baseten.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Baseten.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Baseten.PathBuilder(
+ path: $"/v1/models/{modelId}/deployments",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Baseten.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Baseten.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareCreateModelsByModelIdDeploymentsRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ modelId: modelId!,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createModelsByModelIdDeployments",
+ methodName: "CreateModelsByModelIdDeploymentsAsync",
+ pathTemplate: "$\"/v1/models/{modelId}/deployments\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createModelsByModelIdDeployments",
+ methodName: "CreateModelsByModelIdDeploymentsAsync",
+ pathTemplate: "$\"/v1/models/{modelId}/deployments\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Baseten.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createModelsByModelIdDeployments",
+ methodName: "CreateModelsByModelIdDeploymentsAsync",
+ pathTemplate: "$\"/v1/models/{modelId}/deployments\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessCreateModelsByModelIdDeploymentsResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createModelsByModelIdDeployments",
+ methodName: "CreateModelsByModelIdDeploymentsAsync",
+ pathTemplate: "$\"/v1/models/{modelId}/deployments\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createModelsByModelIdDeployments",
+ methodName: "CreateModelsByModelIdDeploymentsAsync",
+ pathTemplate: "$\"/v1/models/{modelId}/deployments\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessCreateModelsByModelIdDeploymentsResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Baseten.CreatedModelDeploymentV1.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Baseten.CreatedModelDeploymentV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Adds a new deployment to a model
+ ///
+ ///
+ ///
+ /// Where the new deployment is created from.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task CreateModelsByModelIdDeploymentsAsync(
+ string modelId,
+ global::Baseten.DeploymentArchiveSourceV1 source,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Baseten.CreateModelDeploymentRequestV1
+ {
+ Source = source,
+ };
+
+ return await CreateModelsByModelIdDeploymentsAsync(
+ modelId: modelId,
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreatePrepareModelUpload.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreatePrepareModelUpload.g.cs
new file mode 100644
index 0000000..254d07e
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreatePrepareModelUpload.g.cs
@@ -0,0 +1,537 @@
+
+#nullable enable
+
+namespace Baseten
+{
+ public partial class BasetenClient
+ {
+
+
+ private static readonly global::Baseten.EndPointSecurityRequirement s_CreatePrepareModelUploadSecurityRequirement0 =
+ new global::Baseten.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Baseten.EndPointAuthorizationRequirement[]
+ { new global::Baseten.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Baseten.EndPointSecurityRequirement[] s_CreatePrepareModelUploadSecurityRequirements =
+ new global::Baseten.EndPointSecurityRequirement[]
+ { s_CreatePrepareModelUploadSecurityRequirement0,
+ };
+ partial void PrepareCreatePrepareModelUploadArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Baseten.PrepareModelUploadRequestV1 request);
+ partial void PrepareCreatePrepareModelUploadRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Baseten.PrepareModelUploadRequestV1 request);
+ partial void ProcessCreatePrepareModelUploadResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessCreatePrepareModelUploadResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Validates a model push payload and issues upload credentials
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/prepare_model_upload \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "deployment": {
+ /// "config": null,
+ /// "raw_config": null,
+ /// "user_env": null,
+ /// "environment_name": null,
+ /// "preserve_env_instance_type": null,
+ /// "deploy_timeout_minutes": null,
+ /// "deployment_name": null,
+ /// "labels": null
+ /// },
+ /// "name": null,
+ /// "team_id": null,
+ /// "model_id": null,
+ /// "dry_run": null,
+ /// "is_development": null
+ /// }'
+ ///
+ public async global::System.Threading.Tasks.Task CreatePrepareModelUploadAsync(
+
+ global::Baseten.PrepareModelUploadRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreatePrepareModelUploadAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Validates a model push payload and issues upload credentials
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/prepare_model_upload \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "deployment": {
+ /// "config": null,
+ /// "raw_config": null,
+ /// "user_env": null,
+ /// "environment_name": null,
+ /// "preserve_env_instance_type": null,
+ /// "deploy_timeout_minutes": null,
+ /// "deployment_name": null,
+ /// "labels": null
+ /// },
+ /// "name": null,
+ /// "team_id": null,
+ /// "model_id": null,
+ /// "dry_run": null,
+ /// "is_development": null
+ /// }'
+ ///
+ public async global::System.Threading.Tasks.Task> CreatePrepareModelUploadAsResponseAsync(
+
+ global::Baseten.PrepareModelUploadRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreatePrepareModelUploadArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreatePrepareModelUploadSecurityRequirements,
+ operationName: "CreatePrepareModelUploadAsync");
+
+ using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Baseten.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Baseten.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Baseten.PathBuilder(
+ path: "/v1/prepare_model_upload",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Baseten.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Baseten.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareCreatePrepareModelUploadRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createPrepareModelUpload",
+ methodName: "CreatePrepareModelUploadAsync",
+ pathTemplate: "\"/v1/prepare_model_upload\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createPrepareModelUpload",
+ methodName: "CreatePrepareModelUploadAsync",
+ pathTemplate: "\"/v1/prepare_model_upload\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Baseten.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createPrepareModelUpload",
+ methodName: "CreatePrepareModelUploadAsync",
+ pathTemplate: "\"/v1/prepare_model_upload\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessCreatePrepareModelUploadResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createPrepareModelUpload",
+ methodName: "CreatePrepareModelUploadAsync",
+ pathTemplate: "\"/v1/prepare_model_upload\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createPrepareModelUpload",
+ methodName: "CreatePrepareModelUploadAsync",
+ pathTemplate: "\"/v1/prepare_model_upload\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessCreatePrepareModelUploadResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Baseten.PrepareModelUploadResponseV1.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Baseten.PrepareModelUploadResponseV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Validates a model push payload and issues upload credentials
+ ///
+ ///
+ /// Deployment-level payload, identical to the payload sent at commit.
+ ///
+ ///
+ /// Set to validate a new-model push. Exactly one of `name` or `model_id` is required.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ ///
+ ///
+ /// Team the new model will belong to. Only valid when `name` is set; defaults to the organization's default team when omitted. Must not be set when `model_id` is set (the existing model already has a team).
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ ///
+ ///
+ /// Set to validate an add-deployment push to an existing model. Exactly one of `name` or `model_id` is required.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ ///
+ ///
+ /// If true, validate the payload only and do not issue upload credentials. The response sets `creds`, `s3_bucket`, and `s3_key` to `null`.
+ /// Default Value: false
+ ///
+ ///
+ /// If true, validate a development-deployment push. Only valid when `name` is set. The following `deployment` fields must be left at their defaults: `environment_name`, `preserve_env_instance_type`, `deployment_name`.
+ /// Default Value: false
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task CreatePrepareModelUploadAsync(
+ global::Baseten.DeploymentArchivePayloadV1 deployment,
+ string? name = default,
+ string? teamId = default,
+ string? modelId = default,
+ bool? dryRun = default,
+ bool? isDevelopment = default,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Baseten.PrepareModelUploadRequestV1
+ {
+ Deployment = deployment,
+ Name = name,
+ TeamId = teamId,
+ ModelId = modelId,
+ DryRun = dryRun,
+ IsDevelopment = isDevelopment,
+ };
+
+ return await CreatePrepareModelUploadAsync(
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdModels.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdModels.g.cs
new file mode 100644
index 0000000..529f937
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateTeamsByTeamIdModels.g.cs
@@ -0,0 +1,494 @@
+
+#nullable enable
+
+namespace Baseten
+{
+ public partial class BasetenClient
+ {
+
+
+ private static readonly global::Baseten.EndPointSecurityRequirement s_CreateTeamsByTeamIdModelsSecurityRequirement0 =
+ new global::Baseten.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Baseten.EndPointAuthorizationRequirement[]
+ { new global::Baseten.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Baseten.EndPointSecurityRequirement[] s_CreateTeamsByTeamIdModelsSecurityRequirements =
+ new global::Baseten.EndPointSecurityRequirement[]
+ { s_CreateTeamsByTeamIdModelsSecurityRequirement0,
+ };
+ partial void PrepareCreateTeamsByTeamIdModelsArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string teamId,
+ global::Baseten.CreateModelRequestV1 request);
+ partial void PrepareCreateTeamsByTeamIdModelsRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string teamId,
+ global::Baseten.CreateModelRequestV1 request);
+ partial void ProcessCreateTeamsByTeamIdModelsResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessCreateTeamsByTeamIdModelsResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/teams/{team_id}/models \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ public async global::System.Threading.Tasks.Task CreateTeamsByTeamIdModelsAsync(
+ string teamId,
+
+ global::Baseten.CreateModelRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateTeamsByTeamIdModelsAsResponseAsync(
+ teamId: teamId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/teams/{team_id}/models \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ public async global::System.Threading.Tasks.Task> CreateTeamsByTeamIdModelsAsResponseAsync(
+ string teamId,
+
+ global::Baseten.CreateModelRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateTeamsByTeamIdModelsArguments(
+ httpClient: HttpClient,
+ teamId: ref teamId,
+ request: request);
+
+
+ var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateTeamsByTeamIdModelsSecurityRequirements,
+ operationName: "CreateTeamsByTeamIdModelsAsync");
+
+ using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Baseten.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Baseten.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Baseten.PathBuilder(
+ path: $"/v1/teams/{teamId}/models",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Baseten.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Baseten.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareCreateTeamsByTeamIdModelsRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ teamId: teamId!,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createTeamsByTeamIdModels",
+ methodName: "CreateTeamsByTeamIdModelsAsync",
+ pathTemplate: "$\"/v1/teams/{teamId}/models\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createTeamsByTeamIdModels",
+ methodName: "CreateTeamsByTeamIdModelsAsync",
+ pathTemplate: "$\"/v1/teams/{teamId}/models\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Baseten.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createTeamsByTeamIdModels",
+ methodName: "CreateTeamsByTeamIdModelsAsync",
+ pathTemplate: "$\"/v1/teams/{teamId}/models\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessCreateTeamsByTeamIdModelsResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createTeamsByTeamIdModels",
+ methodName: "CreateTeamsByTeamIdModelsAsync",
+ pathTemplate: "$\"/v1/teams/{teamId}/models\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createTeamsByTeamIdModels",
+ methodName: "CreateTeamsByTeamIdModelsAsync",
+ pathTemplate: "$\"/v1/teams/{teamId}/models\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessCreateTeamsByTeamIdModelsResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Baseten.CreatedModelDeploymentV1.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Baseten.CreatedModelDeploymentV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ ///
+ /// Where the new model is created from.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task CreateTeamsByTeamIdModelsAsync(
+ string teamId,
+ global::Baseten.Source source,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Baseten.CreateModelRequestV1
+ {
+ Source = source,
+ };
+
+ return await CreateTeamsByTeamIdModelsAsync(
+ teamId: teamId,
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteSecretsBySecretName.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteSecretsBySecretName.g.cs
new file mode 100644
index 0000000..da95839
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteSecretsBySecretName.g.cs
@@ -0,0 +1,440 @@
+
+#nullable enable
+
+namespace Baseten
+{
+ public partial class BasetenClient
+ {
+
+
+ private static readonly global::Baseten.EndPointSecurityRequirement s_DeleteSecretsBySecretNameSecurityRequirement0 =
+ new global::Baseten.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Baseten.EndPointAuthorizationRequirement[]
+ { new global::Baseten.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Baseten.EndPointSecurityRequirement[] s_DeleteSecretsBySecretNameSecurityRequirements =
+ new global::Baseten.EndPointSecurityRequirement[]
+ { s_DeleteSecretsBySecretNameSecurityRequirement0,
+ };
+ partial void PrepareDeleteSecretsBySecretNameArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string secretName);
+ partial void PrepareDeleteSecretsBySecretNameRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string secretName);
+ partial void ProcessDeleteSecretsBySecretNameResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessDeleteSecretsBySecretNameResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Deletes a secret by name
+ /// Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request DELETE \
+ /// --url https://api.baseten.co/v1/secrets/{secret_name} \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY"
+ ///
+ public async global::System.Threading.Tasks.Task DeleteSecretsBySecretNameAsync(
+ string secretName,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeleteSecretsBySecretNameAsResponseAsync(
+ secretName: secretName,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Deletes a secret by name
+ /// Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request DELETE \
+ /// --url https://api.baseten.co/v1/secrets/{secret_name} \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY"
+ ///
+ public async global::System.Threading.Tasks.Task> DeleteSecretsBySecretNameAsResponseAsync(
+ string secretName,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareDeleteSecretsBySecretNameArguments(
+ httpClient: HttpClient,
+ secretName: ref secretName);
+
+
+ var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteSecretsBySecretNameSecurityRequirements,
+ operationName: "DeleteSecretsBySecretNameAsync");
+
+ using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Baseten.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Baseten.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Baseten.PathBuilder(
+ path: $"/v1/secrets/{secretName}",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Baseten.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Delete,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ global::Baseten.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareDeleteSecretsBySecretNameRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ secretName: secretName!);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "deleteSecretsBySecretName",
+ methodName: "DeleteSecretsBySecretNameAsync",
+ pathTemplate: "$\"/v1/secrets/{secretName}\"",
+ httpMethod: "DELETE",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "deleteSecretsBySecretName",
+ methodName: "DeleteSecretsBySecretNameAsync",
+ pathTemplate: "$\"/v1/secrets/{secretName}\"",
+ httpMethod: "DELETE",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Baseten.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "deleteSecretsBySecretName",
+ methodName: "DeleteSecretsBySecretNameAsync",
+ pathTemplate: "$\"/v1/secrets/{secretName}\"",
+ httpMethod: "DELETE",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessDeleteSecretsBySecretNameResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "deleteSecretsBySecretName",
+ methodName: "DeleteSecretsBySecretNameAsync",
+ pathTemplate: "$\"/v1/secrets/{secretName}\"",
+ httpMethod: "DELETE",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "deleteSecretsBySecretName",
+ methodName: "DeleteSecretsBySecretNameAsync",
+ pathTemplate: "$\"/v1/secrets/{secretName}\"",
+ httpMethod: "DELETE",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessDeleteSecretsBySecretNameResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Baseten.SecretTombstoneV1.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Baseten.SecretTombstoneV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTeamsByTeamIdSecretsBySecretName.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTeamsByTeamIdSecretsBySecretName.g.cs
new file mode 100644
index 0000000..d094b31
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.DeleteTeamsByTeamIdSecretsBySecretName.g.cs
@@ -0,0 +1,449 @@
+
+#nullable enable
+
+namespace Baseten
+{
+ public partial class BasetenClient
+ {
+
+
+ private static readonly global::Baseten.EndPointSecurityRequirement s_DeleteTeamsByTeamIdSecretsBySecretNameSecurityRequirement0 =
+ new global::Baseten.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Baseten.EndPointAuthorizationRequirement[]
+ { new global::Baseten.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Baseten.EndPointSecurityRequirement[] s_DeleteTeamsByTeamIdSecretsBySecretNameSecurityRequirements =
+ new global::Baseten.EndPointSecurityRequirement[]
+ { s_DeleteTeamsByTeamIdSecretsBySecretNameSecurityRequirement0,
+ };
+ partial void PrepareDeleteTeamsByTeamIdSecretsBySecretNameArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string teamId,
+ ref string secretName);
+ partial void PrepareDeleteTeamsByTeamIdSecretsBySecretNameRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string teamId,
+ string secretName);
+ partial void ProcessDeleteTeamsByTeamIdSecretsBySecretNameResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessDeleteTeamsByTeamIdSecretsBySecretNameResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Deletes a secret by name
+ /// Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request DELETE \
+ /// --url https://api.baseten.co/v1/teams/{team_id}/secrets/{secret_name} \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY"
+ ///
+ public async global::System.Threading.Tasks.Task DeleteTeamsByTeamIdSecretsBySecretNameAsync(
+ string teamId,
+ string secretName,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeleteTeamsByTeamIdSecretsBySecretNameAsResponseAsync(
+ teamId: teamId,
+ secretName: secretName,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Deletes a secret by name
+ /// Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request DELETE \
+ /// --url https://api.baseten.co/v1/teams/{team_id}/secrets/{secret_name} \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY"
+ ///
+ public async global::System.Threading.Tasks.Task> DeleteTeamsByTeamIdSecretsBySecretNameAsResponseAsync(
+ string teamId,
+ string secretName,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareDeleteTeamsByTeamIdSecretsBySecretNameArguments(
+ httpClient: HttpClient,
+ teamId: ref teamId,
+ secretName: ref secretName);
+
+
+ var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteTeamsByTeamIdSecretsBySecretNameSecurityRequirements,
+ operationName: "DeleteTeamsByTeamIdSecretsBySecretNameAsync");
+
+ using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Baseten.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Baseten.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Baseten.PathBuilder(
+ path: $"/v1/teams/{teamId}/secrets/{secretName}",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Baseten.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Delete,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ global::Baseten.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareDeleteTeamsByTeamIdSecretsBySecretNameRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ teamId: teamId!,
+ secretName: secretName!);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "deleteTeamsByTeamIdSecretsBySecretName",
+ methodName: "DeleteTeamsByTeamIdSecretsBySecretNameAsync",
+ pathTemplate: "$\"/v1/teams/{teamId}/secrets/{secretName}\"",
+ httpMethod: "DELETE",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "deleteTeamsByTeamIdSecretsBySecretName",
+ methodName: "DeleteTeamsByTeamIdSecretsBySecretNameAsync",
+ pathTemplate: "$\"/v1/teams/{teamId}/secrets/{secretName}\"",
+ httpMethod: "DELETE",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Baseten.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "deleteTeamsByTeamIdSecretsBySecretName",
+ methodName: "DeleteTeamsByTeamIdSecretsBySecretNameAsync",
+ pathTemplate: "$\"/v1/teams/{teamId}/secrets/{secretName}\"",
+ httpMethod: "DELETE",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessDeleteTeamsByTeamIdSecretsBySecretNameResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "deleteTeamsByTeamIdSecretsBySecretName",
+ methodName: "DeleteTeamsByTeamIdSecretsBySecretNameAsync",
+ pathTemplate: "$\"/v1/teams/{teamId}/secrets/{secretName}\"",
+ httpMethod: "DELETE",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "deleteTeamsByTeamIdSecretsBySecretName",
+ methodName: "DeleteTeamsByTeamIdSecretsBySecretNameAsync",
+ pathTemplate: "$\"/v1/teams/{teamId}/secrets/{secretName}\"",
+ httpMethod: "DELETE",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessDeleteTeamsByTeamIdSecretsBySecretNameResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Baseten.SecretTombstoneV1.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Baseten.SecretTombstoneV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateModels.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateModels.g.cs
new file mode 100644
index 0000000..c655bde
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateModels.g.cs
@@ -0,0 +1,64 @@
+#nullable enable
+
+namespace Baseten
+{
+ public partial interface IBasetenClient
+ {
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/models \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ global::System.Threading.Tasks.Task CreateModelsAsync(
+
+ global::Baseten.CreateModelRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/models \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ global::System.Threading.Tasks.Task> CreateModelsAsResponseAsync(
+
+ global::Baseten.CreateModelRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ /// Where the new model is created from.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateModelsAsync(
+ global::Baseten.Source source,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateModelsByModelIdDeployments.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateModelsByModelIdDeployments.g.cs
new file mode 100644
index 0000000..58d92a3
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateModelsByModelIdDeployments.g.cs
@@ -0,0 +1,67 @@
+#nullable enable
+
+namespace Baseten
+{
+ public partial interface IBasetenClient
+ {
+ ///
+ /// Adds a new deployment to a model
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ global::System.Threading.Tasks.Task CreateModelsByModelIdDeploymentsAsync(
+ string modelId,
+
+ global::Baseten.CreateModelDeploymentRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Adds a new deployment to a model
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ global::System.Threading.Tasks.Task> CreateModelsByModelIdDeploymentsAsResponseAsync(
+ string modelId,
+
+ global::Baseten.CreateModelDeploymentRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Adds a new deployment to a model
+ ///
+ ///
+ ///
+ /// Where the new deployment is created from.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateModelsByModelIdDeploymentsAsync(
+ string modelId,
+ global::Baseten.DeploymentArchiveSourceV1 source,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreatePrepareModelUpload.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreatePrepareModelUpload.g.cs
new file mode 100644
index 0000000..7f8f372
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreatePrepareModelUpload.g.cs
@@ -0,0 +1,114 @@
+#nullable enable
+
+namespace Baseten
+{
+ public partial interface IBasetenClient
+ {
+ ///
+ /// Validates a model push payload and issues upload credentials
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/prepare_model_upload \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "deployment": {
+ /// "config": null,
+ /// "raw_config": null,
+ /// "user_env": null,
+ /// "environment_name": null,
+ /// "preserve_env_instance_type": null,
+ /// "deploy_timeout_minutes": null,
+ /// "deployment_name": null,
+ /// "labels": null
+ /// },
+ /// "name": null,
+ /// "team_id": null,
+ /// "model_id": null,
+ /// "dry_run": null,
+ /// "is_development": null
+ /// }'
+ ///
+ global::System.Threading.Tasks.Task CreatePrepareModelUploadAsync(
+
+ global::Baseten.PrepareModelUploadRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Validates a model push payload and issues upload credentials
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/prepare_model_upload \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "deployment": {
+ /// "config": null,
+ /// "raw_config": null,
+ /// "user_env": null,
+ /// "environment_name": null,
+ /// "preserve_env_instance_type": null,
+ /// "deploy_timeout_minutes": null,
+ /// "deployment_name": null,
+ /// "labels": null
+ /// },
+ /// "name": null,
+ /// "team_id": null,
+ /// "model_id": null,
+ /// "dry_run": null,
+ /// "is_development": null
+ /// }'
+ ///
+ global::System.Threading.Tasks.Task> CreatePrepareModelUploadAsResponseAsync(
+
+ global::Baseten.PrepareModelUploadRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Validates a model push payload and issues upload credentials
+ ///
+ ///
+ /// Deployment-level payload, identical to the payload sent at commit.
+ ///
+ ///
+ /// Set to validate a new-model push. Exactly one of `name` or `model_id` is required.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ ///
+ ///
+ /// Team the new model will belong to. Only valid when `name` is set; defaults to the organization's default team when omitted. Must not be set when `model_id` is set (the existing model already has a team).
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ ///
+ ///
+ /// Set to validate an add-deployment push to an existing model. Exactly one of `name` or `model_id` is required.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ ///
+ ///
+ /// If true, validate the payload only and do not issue upload credentials. The response sets `creds`, `s3_bucket`, and `s3_key` to `null`.
+ /// Default Value: false
+ ///
+ ///
+ /// If true, validate a development-deployment push. Only valid when `name` is set. The following `deployment` fields must be left at their defaults: `environment_name`, `preserve_env_instance_type`, `deployment_name`.
+ /// Default Value: false
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreatePrepareModelUploadAsync(
+ global::Baseten.DeploymentArchivePayloadV1 deployment,
+ string? name = default,
+ string? teamId = default,
+ string? modelId = default,
+ bool? dryRun = default,
+ bool? isDevelopment = default,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateTeamsByTeamIdModels.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateTeamsByTeamIdModels.g.cs
new file mode 100644
index 0000000..8bf409f
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateTeamsByTeamIdModels.g.cs
@@ -0,0 +1,70 @@
+#nullable enable
+
+namespace Baseten
+{
+ public partial interface IBasetenClient
+ {
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/teams/{team_id}/models \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ global::System.Threading.Tasks.Task CreateTeamsByTeamIdModelsAsync(
+ string teamId,
+
+ global::Baseten.CreateModelRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/teams/{team_id}/models \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "source": null
+ /// }'
+ ///
+ global::System.Threading.Tasks.Task> CreateTeamsByTeamIdModelsAsResponseAsync(
+ string teamId,
+
+ global::Baseten.CreateModelRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Creates a new model from a source
+ /// Creates a new model in the caller's organization. The `source` field selects how the model is constructed (currently: `library_listing` — fork an accessible listing from `GET /v1/library_models`). The deployment isn't instantly ready — poll GET endpoint until status is ACTIVE.
+ ///
+ ///
+ ///
+ /// Where the new model is created from.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateTeamsByTeamIdModelsAsync(
+ string teamId,
+ global::Baseten.Source source,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.DeleteSecretsBySecretName.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.DeleteSecretsBySecretName.g.cs
new file mode 100644
index 0000000..520a029
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.DeleteSecretsBySecretName.g.cs
@@ -0,0 +1,42 @@
+#nullable enable
+
+namespace Baseten
+{
+ public partial interface IBasetenClient
+ {
+ ///
+ /// Deletes a secret by name
+ /// Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request DELETE \
+ /// --url https://api.baseten.co/v1/secrets/{secret_name} \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY"
+ ///
+ global::System.Threading.Tasks.Task DeleteSecretsBySecretNameAsync(
+ string secretName,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Deletes a secret by name
+ /// Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request DELETE \
+ /// --url https://api.baseten.co/v1/secrets/{secret_name} \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY"
+ ///
+ global::System.Threading.Tasks.Task> DeleteSecretsBySecretNameAsResponseAsync(
+ string secretName,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.DeleteTeamsByTeamIdSecretsBySecretName.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.DeleteTeamsByTeamIdSecretsBySecretName.g.cs
new file mode 100644
index 0000000..f5da701
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.DeleteTeamsByTeamIdSecretsBySecretName.g.cs
@@ -0,0 +1,46 @@
+#nullable enable
+
+namespace Baseten
+{
+ public partial interface IBasetenClient
+ {
+ ///
+ /// Deletes a secret by name
+ /// Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request DELETE \
+ /// --url https://api.baseten.co/v1/teams/{team_id}/secrets/{secret_name} \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY"
+ ///
+ global::System.Threading.Tasks.Task DeleteTeamsByTeamIdSecretsBySecretNameAsync(
+ string teamId,
+ string secretName,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Deletes a secret by name
+ /// Deletes a secret by name in the specified team, or in the caller's organization default team when no team is specified.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request DELETE \
+ /// --url https://api.baseten.co/v1/teams/{team_id}/secrets/{secret_name} \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY"
+ ///
+ global::System.Threading.Tasks.Task> DeleteTeamsByTeamIdSecretsBySecretNameAsResponseAsync(
+ string teamId,
+ string secretName,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelDeploymentRequestV1SourceDiscriminatorKind.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelDeploymentRequestV1SourceDiscriminatorKind.g.cs
new file mode 100644
index 0000000..a692a56
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelDeploymentRequestV1SourceDiscriminatorKind.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Baseten.JsonConverters
+{
+ ///
+ public sealed class CreateModelDeploymentRequestV1SourceDiscriminatorKindJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKind Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKindExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKind)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKind);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKind value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKindExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelDeploymentRequestV1SourceDiscriminatorKindNullable.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelDeploymentRequestV1SourceDiscriminatorKindNullable.g.cs
new file mode 100644
index 0000000..e476af5
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelDeploymentRequestV1SourceDiscriminatorKindNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Baseten.JsonConverters
+{
+ ///
+ public sealed class CreateModelDeploymentRequestV1SourceDiscriminatorKindNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKind? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKindExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKind)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKind?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKind? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKindExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelRequestV1SourceDiscriminatorKind.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelRequestV1SourceDiscriminatorKind.g.cs
new file mode 100644
index 0000000..ef31aa5
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelRequestV1SourceDiscriminatorKind.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Baseten.JsonConverters
+{
+ ///
+ public sealed class CreateModelRequestV1SourceDiscriminatorKindJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Baseten.CreateModelRequestV1SourceDiscriminatorKind Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Baseten.CreateModelRequestV1SourceDiscriminatorKindExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Baseten.CreateModelRequestV1SourceDiscriminatorKind)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Baseten.CreateModelRequestV1SourceDiscriminatorKind);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Baseten.CreateModelRequestV1SourceDiscriminatorKind value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Baseten.CreateModelRequestV1SourceDiscriminatorKindExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelRequestV1SourceDiscriminatorKindNullable.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelRequestV1SourceDiscriminatorKindNullable.g.cs
new file mode 100644
index 0000000..f3efcc7
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.CreateModelRequestV1SourceDiscriminatorKindNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Baseten.JsonConverters
+{
+ ///
+ public sealed class CreateModelRequestV1SourceDiscriminatorKindNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Baseten.CreateModelRequestV1SourceDiscriminatorKind? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Baseten.CreateModelRequestV1SourceDiscriminatorKindExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Baseten.CreateModelRequestV1SourceDiscriminatorKind)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Baseten.CreateModelRequestV1SourceDiscriminatorKind?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Baseten.CreateModelRequestV1SourceDiscriminatorKind? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Baseten.CreateModelRequestV1SourceDiscriminatorKindExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.Source.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.Source.g.cs
new file mode 100644
index 0000000..3c0073a
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.Source.g.cs
@@ -0,0 +1,72 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Baseten.JsonConverters
+{
+ ///
+ public class SourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Baseten.Source Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+
+ var readerCopy = reader;
+ var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.CreateModelRequestV1SourceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.CreateModelRequestV1SourceDiscriminator)}");
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+
+ global::Baseten.LibraryListingSourceV1? libraryListing = default;
+ if (discriminator?.Kind == global::Baseten.CreateModelRequestV1SourceDiscriminatorKind.LibraryListing)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.LibraryListingSourceV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.LibraryListingSourceV1)}");
+ libraryListing = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::Baseten.ModelArchiveSourceV1? modelArchive = default;
+ if (discriminator?.Kind == global::Baseten.CreateModelRequestV1SourceDiscriminatorKind.ModelArchive)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.ModelArchiveSourceV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.ModelArchiveSourceV1)}");
+ modelArchive = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+
+ var __value = new global::Baseten.Source(
+ discriminator?.Kind,
+ libraryListing,
+
+ modelArchive
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Baseten.Source value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ if (value.IsLibraryListing)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.LibraryListingSourceV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.LibraryListingSourceV1).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.LibraryListing!, typeInfo);
+ }
+ else if (value.IsModelArchive)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.ModelArchiveSourceV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.ModelArchiveSourceV1).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelArchive!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs b/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs
index 744083f..b391343 100644
--- a/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs
+++ b/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs
@@ -13,10 +13,18 @@ namespace Baseten
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters = new global::System.Type[]
{
+ typeof(global::Baseten.JsonConverters.CreateModelRequestV1SourceDiscriminatorKindJsonConverter),
+
+ typeof(global::Baseten.JsonConverters.CreateModelRequestV1SourceDiscriminatorKindNullableJsonConverter),
+
typeof(global::Baseten.JsonConverters.DeploymentStatusV1JsonConverter),
typeof(global::Baseten.JsonConverters.DeploymentStatusV1NullableJsonConverter),
+ typeof(global::Baseten.JsonConverters.CreateModelDeploymentRequestV1SourceDiscriminatorKindJsonConverter),
+
+ typeof(global::Baseten.JsonConverters.CreateModelDeploymentRequestV1SourceDiscriminatorKindNullableJsonConverter),
+
typeof(global::Baseten.JsonConverters.UpdateAutoscalingSettingsStatusV1JsonConverter),
typeof(global::Baseten.JsonConverters.UpdateAutoscalingSettingsStatusV1NullableJsonConverter),
@@ -97,6 +105,8 @@ namespace Baseten
typeof(global::Baseten.JsonConverters.UsageLimitUnitV1NullableJsonConverter),
+ typeof(global::Baseten.JsonConverters.SourceJsonConverter),
+
typeof(global::Baseten.JsonConverters.CheckpointsItemJsonConverter),
typeof(global::Baseten.JsonConverters.AnyOfJsonConverter),
@@ -140,6 +150,7 @@ namespace Baseten
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.SecretsV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpsertSecretRequestV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.SecretTombstoneV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.TeamV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.TeamsV1))]
@@ -154,15 +165,30 @@ namespace Baseten
[global::System.Text.Json.Serialization.JsonSerializable(typeof(double))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.InstanceTypePricesV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.DeploymentArchivePayloadV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.PrepareModelUploadRequestV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.AWSCredentialsV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.PrepareModelUploadResponseV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ModelV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ModelsV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ModelTombstoneV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LibraryListingSourceV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ModelArchiveSourceV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.CreateModelRequestV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.Source), TypeInfoPropertyName = "Source2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.CreateModelRequestV1SourceDiscriminator))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.CreateModelRequestV1SourceDiscriminatorKind), TypeInfoPropertyName = "CreateModelRequestV1SourceDiscriminatorKind2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.AutoscalingSettingsV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.DeploymentStatusV1), TypeInfoPropertyName = "DeploymentStatusV12")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.DeploymentV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.CreatedModelDeploymentV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ModelTombstoneV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.DeploymentsV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.DeploymentArchiveSourceV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.CreateModelDeploymentRequestV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminator))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKind), TypeInfoPropertyName = "CreateModelDeploymentRequestV1SourceDiscriminatorKind2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.DeploymentTombstoneV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpdateAutoscalingSettingsV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpdateAutoscalingSettingsStatusV1), TypeInfoPropertyName = "UpdateAutoscalingSettingsStatusV12")]
@@ -364,7 +390,6 @@ namespace Baseten
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.TrainingGpuCapacityItemV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetTrainingGpuCapacityResponseV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.AWSCredentialsV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetBlobCredentialsResponseV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.APIKeyCategory), TypeInfoPropertyName = "APIKeyCategory2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.CreateAPIKeyRequestV1))]
diff --git a/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs b/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs
index 72ef060..9ccc910 100644
--- a/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs
+++ b/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs
@@ -52,1219 +52,1279 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Baseten.TeamV1? Type6 { get; set; }
+ public global::Baseten.SecretTombstoneV1? Type6 { get; set; }
///
///
///
- public bool? Type7 { get; set; }
+ public global::Baseten.TeamV1? Type7 { get; set; }
///
///
///
- public global::Baseten.TeamsV1? Type8 { get; set; }
+ public bool? Type8 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type9 { get; set; }
+ public global::Baseten.TeamsV1? Type9 { get; set; }
///
///
///
- public global::Baseten.InstanceTypeV1? Type10 { get; set; }
+ public global::System.Collections.Generic.IList? Type10 { get; set; }
///
///
///
- public long? Type11 { get; set; }
+ public global::Baseten.InstanceTypeV1? Type11 { get; set; }
///
///
///
- public int? Type12 { get; set; }
+ public long? Type12 { get; set; }
///
///
///
- public object? Type13 { get; set; }
+ public int? Type13 { get; set; }
///
///
///
- public global::Baseten.InstanceTypesV1? Type14 { get; set; }
+ public object? Type14 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type15 { get; set; }
+ public global::Baseten.InstanceTypesV1? Type15 { get; set; }
///
///
///
- public global::Baseten.InstanceTypeWithPriceV1? Type16 { get; set; }
+ public global::System.Collections.Generic.IList? Type16 { get; set; }
///
///
///
- public double? Type17 { get; set; }
+ public global::Baseten.InstanceTypeWithPriceV1? Type17 { get; set; }
///
///
///
- public global::Baseten.InstanceTypePricesV1? Type18 { get; set; }
+ public double? Type18 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type19 { get; set; }
+ public global::Baseten.InstanceTypePricesV1? Type19 { get; set; }
///
///
///
- public global::Baseten.ModelV1? Type20 { get; set; }
+ public global::System.Collections.Generic.IList? Type20 { get; set; }
///
///
///
- public global::Baseten.ModelsV1? Type21 { get; set; }
+ public global::Baseten.DeploymentArchivePayloadV1? Type21 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type22 { get; set; }
+ public global::Baseten.PrepareModelUploadRequestV1? Type22 { get; set; }
///
///
///
- public global::Baseten.ModelTombstoneV1? Type23 { get; set; }
+ public global::Baseten.AWSCredentialsV1? Type23 { get; set; }
///
///
///
- public global::Baseten.AutoscalingSettingsV1? Type24 { get; set; }
+ public global::Baseten.PrepareModelUploadResponseV1? Type24 { get; set; }
///
///
///
- public global::Baseten.DeploymentStatusV1? Type25 { get; set; }
+ public global::Baseten.ModelV1? Type25 { get; set; }
///
///
///
- public global::Baseten.DeploymentV1? Type26 { get; set; }
+ public global::Baseten.ModelsV1? Type26 { get; set; }
///
///
///
- public global::Baseten.DeploymentsV1? Type27 { get; set; }
+ public global::System.Collections.Generic.IList? Type27 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type28 { get; set; }
+ public global::Baseten.LibraryListingSourceV1? Type28 { get; set; }
///
///
///
- public global::Baseten.DeploymentTombstoneV1? Type29 { get; set; }
+ public global::Baseten.ModelArchiveSourceV1? Type29 { get; set; }
///
///
///
- public global::Baseten.UpdateAutoscalingSettingsV1? Type30 { get; set; }
+ public global::Baseten.CreateModelRequestV1? Type30 { get; set; }
///
///
///
- public global::Baseten.UpdateAutoscalingSettingsStatusV1? Type31 { get; set; }
+ public global::Baseten.Source? Type31 { get; set; }
///
///
///
- public global::Baseten.UpdateAutoscalingSettingsResponseV1? Type32 { get; set; }
+ public global::Baseten.CreateModelRequestV1SourceDiscriminator? Type32 { get; set; }
///
///
///
- public global::Baseten.PromoteRequestV1? Type33 { get; set; }
+ public global::Baseten.CreateModelRequestV1SourceDiscriminatorKind? Type33 { get; set; }
///
///
///
- public global::Baseten.ActivateResponseV1? Type34 { get; set; }
+ public global::Baseten.AutoscalingSettingsV1? Type34 { get; set; }
///
///
///
- public global::Baseten.DeactivateResponseV1? Type35 { get; set; }
+ public global::Baseten.DeploymentStatusV1? Type35 { get; set; }
///
///
///
- public global::Baseten.RetryDeploymentResponseV1? Type36 { get; set; }
+ public global::Baseten.DeploymentV1? Type36 { get; set; }
///
///
///
- public global::Baseten.DownloadDeploymentResponseV1? Type37 { get; set; }
+ public global::Baseten.CreatedModelDeploymentV1? Type37 { get; set; }
///
///
///
- public global::Baseten.DeploymentConfigResponseV1? Type38 { get; set; }
+ public global::Baseten.ModelTombstoneV1? Type38 { get; set; }
///
///
///
- public global::Baseten.SortOrderV1? Type39 { get; set; }
+ public global::Baseten.DeploymentsV1? Type39 { get; set; }
///
///
///
- public global::Baseten.GetDeploymentLogsRequestV1? Type40 { get; set; }
+ public global::System.Collections.Generic.IList? Type40 { get; set; }
///
///
///
- public global::Baseten.LogV1? Type41 { get; set; }
+ public global::Baseten.DeploymentArchiveSourceV1? Type41 { get; set; }
///
///
///
- public global::Baseten.GetLogsResponseV1? Type42 { get; set; }
+ public global::Baseten.CreateModelDeploymentRequestV1? Type42 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type43 { get; set; }
+ public global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminator? Type43 { get; set; }
///
///
///
- public global::Baseten.TerminateReplicaResponseV1? Type44 { get; set; }
+ public global::Baseten.CreateModelDeploymentRequestV1SourceDiscriminatorKind? Type44 { get; set; }
///
///
///
- public global::Baseten.SignSSHCertificateRequestV1? Type45 { get; set; }
+ public global::Baseten.DeploymentTombstoneV1? Type45 { get; set; }
///
///
///
- public global::Baseten.SignSSHCertificateResponseV1? Type46 { get; set; }
+ public global::Baseten.UpdateAutoscalingSettingsV1? Type46 { get; set; }
///
///
///
- public global::Baseten.EnvironmentV1? Type47 { get; set; }
+ public global::Baseten.UpdateAutoscalingSettingsStatusV1? Type47 { get; set; }
///
///
///
- public global::Baseten.InProgressPromotionV1? Type48 { get; set; }
+ public global::Baseten.UpdateAutoscalingSettingsResponseV1? Type48 { get; set; }
///
///
///
- public global::Baseten.PromotionSettingsV1? Type49 { get; set; }
+ public global::Baseten.PromoteRequestV1? Type49 { get; set; }
///
///
///
- public global::Baseten.InProgressPromotionStatusV1? Type50 { get; set; }
+ public global::Baseten.ActivateResponseV1? Type50 { get; set; }
///
///
///
- public global::Baseten.PromotionCleanupStrategyV1? Type51 { get; set; }
+ public global::Baseten.DeactivateResponseV1? Type51 { get; set; }
///
///
///
- public global::Baseten.RollingDeployConfigV1? Type52 { get; set; }
+ public global::Baseten.RetryDeploymentResponseV1? Type52 { get; set; }
///
///
///
- public global::Baseten.RollingDeployStrategyV1? Type53 { get; set; }
+ public global::Baseten.DownloadDeploymentResponseV1? Type53 { get; set; }
///
///
///
- public global::Baseten.EnvironmentsV1? Type54 { get; set; }
+ public global::Baseten.DeploymentConfigResponseV1? Type54 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type55 { get; set; }
+ public global::Baseten.SortOrderV1? Type55 { get; set; }
///
///
///
- public global::Baseten.UpdatePromotionSettingsV1? Type56 { get; set; }
+ public global::Baseten.GetDeploymentLogsRequestV1? Type56 { get; set; }
///
///
///
- public global::Baseten.UpdateRollingDeployConfigV1? Type57 { get; set; }
+ public global::Baseten.LogV1? Type57 { get; set; }
///
///
///
- public global::Baseten.CreateEnvironmentRequestV1? Type58 { get; set; }
+ public global::Baseten.GetLogsResponseV1? Type58 { get; set; }
///
///
///
- public global::Baseten.UpdateEnvironmentRequestV1? Type59 { get; set; }
+ public global::System.Collections.Generic.IList? Type59 { get; set; }
///
///
///
- public global::Baseten.PromoteToEnvironmentRequestV1? Type60 { get; set; }
+ public global::Baseten.TerminateReplicaResponseV1? Type60 { get; set; }
///
///
///
- public global::Baseten.CancelPromotionStatusV1? Type61 { get; set; }
+ public global::Baseten.SignSSHCertificateRequestV1? Type61 { get; set; }
///
///
///
- public global::Baseten.CancelPromotionResponseV1? Type62 { get; set; }
+ public global::Baseten.SignSSHCertificateResponseV1? Type62 { get; set; }
///
///
///
- public global::Baseten.SignalPromotionResponseV1? Type63 { get; set; }
+ public global::Baseten.EnvironmentV1? Type63 { get; set; }
///
///
///
- public global::Baseten.ChainV1? Type64 { get; set; }
+ public global::Baseten.InProgressPromotionV1? Type64 { get; set; }
///
///
///
- public global::Baseten.ChainsV1? Type65 { get; set; }
+ public global::Baseten.PromotionSettingsV1? Type65 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type66 { get; set; }
+ public global::Baseten.InProgressPromotionStatusV1? Type66 { get; set; }
///
///
///
- public global::Baseten.ChainTombstoneV1? Type67 { get; set; }
+ public global::Baseten.PromotionCleanupStrategyV1? Type67 { get; set; }
///
///
///
- public global::Baseten.ChainDeploymentV1? Type68 { get; set; }
+ public global::Baseten.RollingDeployConfigV1? Type68 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type69 { get; set; }
+ public global::Baseten.RollingDeployStrategyV1? Type69 { get; set; }
///
///
///
- public global::Baseten.ChainletV1? Type70 { get; set; }
+ public global::Baseten.EnvironmentsV1? Type70 { get; set; }
///
///
///
- public global::Baseten.ChainDeploymentsV1? Type71 { get; set; }
+ public global::System.Collections.Generic.IList? Type71 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type72 { get; set; }
+ public global::Baseten.UpdatePromotionSettingsV1? Type72 { get; set; }
///
///
///
- public global::Baseten.ChainDeploymentTombstoneV1? Type73 { get; set; }
+ public global::Baseten.UpdateRollingDeployConfigV1? Type73 { get; set; }
///
///
///
- public global::Baseten.ChainletEnvironmentSettingsRequestV1? Type74 { get; set; }
+ public global::Baseten.CreateEnvironmentRequestV1? Type74 { get; set; }
///
///
///
- public global::Baseten.CreateChainEnvironmentRequestV1? Type75 { get; set; }
+ public global::Baseten.UpdateEnvironmentRequestV1? Type75 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type76 { get; set; }
+ public global::Baseten.PromoteToEnvironmentRequestV1? Type76 { get; set; }
///
///
///
- public global::Baseten.ChainletEnvironmentSettingsV1? Type77 { get; set; }
+ public global::Baseten.CancelPromotionStatusV1? Type77 { get; set; }
///
///
///
- public global::Baseten.ChainEnvironmentV1? Type78 { get; set; }
+ public global::Baseten.CancelPromotionResponseV1? Type78 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type79 { get; set; }
+ public global::Baseten.SignalPromotionResponseV1? Type79 { get; set; }
///
///
///
- public global::Baseten.UpdateChainEnvironmentRequestV1? Type80 { get; set; }
+ public global::Baseten.ChainV1? Type80 { get; set; }
///
///
///
- public global::Baseten.UpdateChainEnvironmentResponseV1? Type81 { get; set; }
+ public global::Baseten.ChainsV1? Type81 { get; set; }
///
///
///
- public global::Baseten.PromoteToChainEnvironmentRequestV1? Type82 { get; set; }
+ public global::System.Collections.Generic.IList? Type82 { get; set; }
///
///
///
- public global::Baseten.ChainletEnvironmentAutoscalingSettingsUpdateV1? Type83 { get; set; }
+ public global::Baseten.ChainTombstoneV1? Type83 { get; set; }
///
///
///
- public global::Baseten.UpdateChainletEnvironmentAutoscalingSettingsRequestV1? Type84 { get; set; }
+ public global::Baseten.ChainDeploymentV1? Type84 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type85 { get; set; }
+ public global::System.Collections.Generic.IList? Type85 { get; set; }
///
///
///
- public global::Baseten.ChainletEnvironmentInstanceTypeUpdateV1? Type86 { get; set; }
+ public global::Baseten.ChainletV1? Type86 { get; set; }
///
///
///
- public global::Baseten.UpdateChainletEnvironmentInstanceTypeRequestV1? Type87 { get; set; }
+ public global::Baseten.ChainDeploymentsV1? Type87 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type88 { get; set; }
+ public global::System.Collections.Generic.IList? Type88 { get; set; }
///
///
///
- public global::Baseten.UpdateChainletEnvironmentInstanceTypeResponseV1? Type89 { get; set; }
+ public global::Baseten.ChainDeploymentTombstoneV1? Type89 { get; set; }
///
///
///
- public global::Baseten.UpsertTrainingProjectV1? Type90 { get; set; }
+ public global::Baseten.ChainletEnvironmentSettingsRequestV1? Type90 { get; set; }
///
///
///
- public global::Baseten.UpsertTrainingProjectRequestV1? Type91 { get; set; }
+ public global::Baseten.CreateChainEnvironmentRequestV1? Type91 { get; set; }
///
///
///
- public global::Baseten.CheckpointSyncStatus? Type92 { get; set; }
+ public global::System.Collections.Generic.IList? Type92 { get; set; }
///
///
///
- public global::Baseten.TrainingJobV1? Type93 { get; set; }
+ public global::Baseten.ChainletEnvironmentSettingsV1? Type93 { get; set; }
///
///
///
- public global::Baseten.TrainingProjectSummaryV1? Type94 { get; set; }
+ public global::Baseten.ChainEnvironmentV1? Type94 { get; set; }
///
///
///
- public global::Baseten.UserV1? Type95 { get; set; }
+ public global::System.Collections.Generic.IList? Type95 { get; set; }
///
///
///
- public global::Baseten.TrainingProjectV1? Type96 { get; set; }
+ public global::Baseten.UpdateChainEnvironmentRequestV1? Type96 { get; set; }
///
///
///
- public global::Baseten.UpsertTrainingProjectResponseV1? Type97 { get; set; }
+ public global::Baseten.UpdateChainEnvironmentResponseV1? Type97 { get; set; }
///
///
///
- public global::Baseten.ListTrainingProjectsResponseV1? Type98 { get; set; }
+ public global::Baseten.PromoteToChainEnvironmentRequestV1? Type98 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type99 { get; set; }
+ public global::Baseten.ChainletEnvironmentAutoscalingSettingsUpdateV1? Type99 { get; set; }
///
///
///
- public global::Baseten.ListTrainingJobsResponseV1? Type100 { get; set; }
+ public global::Baseten.UpdateChainletEnvironmentAutoscalingSettingsRequestV1? Type100 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type101 { get; set; }
+ public global::System.Collections.Generic.IList? Type101 { get; set; }
///
///
///
- public global::Baseten.AwsIamDockerAuthV1? Type102 { get; set; }
+ public global::Baseten.ChainletEnvironmentInstanceTypeUpdateV1? Type102 { get; set; }
///
///
///
- public global::Baseten.SecretReferenceV1? Type103 { get; set; }
+ public global::Baseten.UpdateChainletEnvironmentInstanceTypeRequestV1? Type103 { get; set; }
///
///
///
- public global::Baseten.AwsOidcDockerAuthV1? Type104 { get; set; }
+ public global::System.Collections.Generic.IList? Type104 { get; set; }
///
///
///
- public global::Baseten.BasetenLatestCheckpointConfig? Type105 { get; set; }
+ public global::Baseten.UpdateChainletEnvironmentInstanceTypeResponseV1? Type105 { get; set; }
///
///
///
- public global::Baseten.BasetenNamedCheckpointConfig? Type106 { get; set; }
+ public global::Baseten.UpsertTrainingProjectV1? Type106 { get; set; }
///
///
///
- public global::Baseten.CreateJobWeightConfigV1? Type107 { get; set; }
+ public global::Baseten.UpsertTrainingProjectRequestV1? Type107 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type108 { get; set; }
+ public global::Baseten.CheckpointSyncStatus? Type108 { get; set; }
///
///
///
- public global::Baseten.CreateTrainingJobAcceleratorV1? Type109 { get; set; }
+ public global::Baseten.TrainingJobV1? Type109 { get; set; }
///
///
///
- public global::Baseten.CreateTrainingJobCacheConfig? Type110 { get; set; }
+ public global::Baseten.TrainingProjectSummaryV1? Type110 { get; set; }
///
///
///
- public global::Baseten.CreateTrainingJobCheckpointingConfig? Type111 { get; set; }
+ public global::Baseten.UserV1? Type111 { get; set; }
///
///
///
- public global::Baseten.CreateTrainingJobComputeV1? Type112 { get; set; }
+ public global::Baseten.TrainingProjectV1? Type112 { get; set; }
///
///
///
- public global::Baseten.CreateTrainingJobImageV1? Type113 { get; set; }
+ public global::Baseten.UpsertTrainingProjectResponseV1? Type113 { get; set; }
///
///
///
- public global::Baseten.DockerAuthV1? Type114 { get; set; }
+ public global::Baseten.ListTrainingProjectsResponseV1? Type114 { get; set; }
///
///
///
- public global::Baseten.CreateTrainingJobRuntimeV1? Type115 { get; set; }
+ public global::System.Collections.Generic.IList? Type115 { get; set; }
///
///
///
- public global::Baseten.AnyOf? Type116 { get; set; }
+ public global::Baseten.ListTrainingJobsResponseV1? Type116 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type117 { get; set; }
+ public global::System.Collections.Generic.IList? Type117 { get; set; }
///
///
///
- public global::Baseten.CreateTrainingJobS3Artifact? Type118 { get; set; }
+ public global::Baseten.AwsIamDockerAuthV1? Type118 { get; set; }
///
///
///
- public global::Baseten.LoadCheckpointConfig? Type119 { get; set; }
+ public global::Baseten.SecretReferenceV1? Type119 { get; set; }
///
///
///
- public global::Baseten.CreateTrainingJobV1? Type120 { get; set; }
+ public global::Baseten.AwsOidcDockerAuthV1? Type120 { get; set; }
///
///
///
- public global::Baseten.TrussUserEnv? Type121 { get; set; }
+ public global::Baseten.BasetenLatestCheckpointConfig? Type121 { get; set; }
///
///
///
- public global::Baseten.InteractiveSessionConfigV1? Type122 { get; set; }
+ public global::Baseten.BasetenNamedCheckpointConfig? Type122 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type123 { get; set; }
+ public global::Baseten.CreateJobWeightConfigV1? Type123 { get; set; }
///
///
///
- public global::Baseten.DockerAuthType? Type124 { get; set; }
+ public global::System.Collections.Generic.IList? Type124 { get; set; }
///
///
///
- public global::Baseten.GcpServiceAccountJsonDockerAuthV1? Type125 { get; set; }
+ public global::Baseten.CreateTrainingJobAcceleratorV1? Type125 { get; set; }
///
///
///
- public global::Baseten.GcpOidcDockerAuthV1? Type126 { get; set; }
+ public global::Baseten.CreateTrainingJobCacheConfig? Type126 { get; set; }
///
///
///
- public global::Baseten.RegistrySecretDockerAuthV1? Type127 { get; set; }
+ public global::Baseten.CreateTrainingJobCheckpointingConfig? Type127 { get; set; }
///
///
///
- public global::Baseten.GitInfo? Type128 { get; set; }
+ public global::Baseten.CreateTrainingJobComputeV1? Type128 { get; set; }
///
///
///
- public global::Baseten.V1InteractiveSessionTrigger? Type129 { get; set; }
+ public global::Baseten.CreateTrainingJobImageV1? Type129 { get; set; }
///
///
///
- public global::Baseten.V1InteractiveSessionProvider? Type130 { get; set; }
+ public global::Baseten.DockerAuthV1? Type130 { get; set; }
///
///
///
- public global::Baseten.V1InteractiveSessionAuthProvider? Type131 { get; set; }
+ public global::Baseten.CreateTrainingJobRuntimeV1? Type131 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type132 { get; set; }
+ public global::Baseten.AnyOf? Type132 { get; set; }
///
///
///
- public global::Baseten.CheckpointsItem? Type133 { get; set; }
+ public global::System.Collections.Generic.IList? Type133 { get; set; }
///
///
///
- public global::Baseten.LoadCheckpointConfigCheckpointDiscriminator? Type134 { get; set; }
+ public global::Baseten.CreateTrainingJobS3Artifact? Type134 { get; set; }
///
///
///
- public global::Baseten.LoadCheckpointConfigCheckpointDiscriminatorTyp? Type135 { get; set; }
+ public global::Baseten.LoadCheckpointConfig? Type135 { get; set; }
///
///
///
- public global::Baseten.CreateTrainingJobRequestV1? Type136 { get; set; }
+ public global::Baseten.CreateTrainingJobV1? Type136 { get; set; }
///
///
///
- public global::Baseten.CreateTrainingJobResponseV1? Type137 { get; set; }
+ public global::Baseten.TrussUserEnv? Type137 { get; set; }
///
///
///
- public global::Baseten.TrainingJobTombstoneV1? Type138 { get; set; }
+ public global::Baseten.InteractiveSessionConfigV1? Type138 { get; set; }
///
///
///
- public global::Baseten.GetTrainingJobResponseV1? Type139 { get; set; }
+ public global::System.Collections.Generic.IList? Type139 { get; set; }
///
///
///
- public global::Baseten.DownloadTrainingJobResponseV1? Type140 { get; set; }
+ public global::Baseten.DockerAuthType? Type140 { get; set; }
///
///
///
- public global::Baseten.RecreateTrainingJobResponseV1? Type141 { get; set; }
+ public global::Baseten.GcpServiceAccountJsonDockerAuthV1? Type141 { get; set; }
///
///
///
- public global::Baseten.GetTrainingJobLogsRequestV1? Type142 { get; set; }
+ public global::Baseten.GcpOidcDockerAuthV1? Type142 { get; set; }
///
///
///
- public global::Baseten.GetTrainingJobMetricsRequestV1? Type143 { get; set; }
+ public global::Baseten.RegistrySecretDockerAuthV1? Type143 { get; set; }
///
///
///
- public global::Baseten.StorageMetricsV1? Type144 { get; set; }
+ public global::Baseten.GitInfo? Type144 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type145 { get; set; }
+ public global::Baseten.V1InteractiveSessionTrigger? Type145 { get; set; }
///
///
///
- public global::Baseten.TrainingJobMetricV1? Type146 { get; set; }
+ public global::Baseten.V1InteractiveSessionProvider? Type146 { get; set; }
///
///
///
- public global::Baseten.TrainingJobMetricsV1? Type147 { get; set; }
+ public global::Baseten.V1InteractiveSessionAuthProvider? Type147 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary>? Type148 { get; set; }
+ public global::System.Collections.Generic.IList? Type148 { get; set; }
///
///
///
- public global::Baseten.TrainingJobNodeMetricsV1? Type149 { get; set; }
+ public global::Baseten.CheckpointsItem? Type149 { get; set; }
///
///
///
- public global::Baseten.GetTrainingJobMetricsResponseV1? Type150 { get; set; }
+ public global::Baseten.LoadCheckpointConfigCheckpointDiscriminator? Type150 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type151 { get; set; }
+ public global::Baseten.LoadCheckpointConfigCheckpointDiscriminatorTyp? Type151 { get; set; }
///
///
///
- public global::Baseten.StopTrainingJobRequestV1? Type152 { get; set; }
+ public global::Baseten.CreateTrainingJobRequestV1? Type152 { get; set; }
///
///
///
- public global::Baseten.StopTrainingJobResponseV1? Type153 { get; set; }
+ public global::Baseten.CreateTrainingJobResponseV1? Type153 { get; set; }
///
///
///
- public global::Baseten.TrainingJobCheckpointV1? Type154 { get; set; }
+ public global::Baseten.TrainingJobTombstoneV1? Type154 { get; set; }
///
///
///
- public global::Baseten.GetTrainingJobCheckpointsResponseV1? Type155 { get; set; }
+ public global::Baseten.GetTrainingJobResponseV1? Type155 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type156 { get; set; }
+ public global::Baseten.DownloadTrainingJobResponseV1? Type156 { get; set; }
///
///
///
- public global::Baseten.CheckpointFile? Type157 { get; set; }
+ public global::Baseten.RecreateTrainingJobResponseV1? Type157 { get; set; }
///
///
///
- public global::Baseten.GetTrainingJobCheckpointFilesResponseV1? Type158 { get; set; }
+ public global::Baseten.GetTrainingJobLogsRequestV1? Type158 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type159 { get; set; }
+ public global::Baseten.GetTrainingJobMetricsRequestV1? Type159 { get; set; }
///
///
///
- public global::Baseten.AuthCodeV1? Type160 { get; set; }
+ public global::Baseten.StorageMetricsV1? Type160 { get; set; }
///
///
///
- public global::Baseten.GetAuthCodesResponseV1? Type161 { get; set; }
+ public global::System.Collections.Generic.IList? Type161 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type162 { get; set; }
+ public global::Baseten.TrainingJobMetricV1? Type162 { get; set; }
///
///
///
- public global::Baseten.PatchInteractiveSessionRequestV1? Type163 { get; set; }
+ public global::Baseten.TrainingJobMetricsV1? Type163 { get; set; }
///
///
///
- public global::Baseten.InteractiveSessionV1? Type164 { get; set; }
+ public global::System.Collections.Generic.Dictionary>? Type164 { get; set; }
///
///
///
- public global::Baseten.PatchInteractiveSessionResponseV1? Type165 { get; set; }
+ public global::Baseten.TrainingJobNodeMetricsV1? Type165 { get; set; }
///
///
///
- public global::Baseten.FileSummary? Type166 { get; set; }
+ public global::Baseten.GetTrainingJobMetricsResponseV1? Type166 { get; set; }
///
///
///
- public global::Baseten.GetCacheSummaryResponseV1? Type167 { get; set; }
+ public global::System.Collections.Generic.IList? Type167 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type168 { get; set; }
+ public global::Baseten.StopTrainingJobRequestV1? Type168 { get; set; }
///
///
///
- public global::Baseten.TrainingProjectTombstoneV1? Type169 { get; set; }
+ public global::Baseten.StopTrainingJobResponseV1? Type169 { get; set; }
///
///
///
- public global::Baseten.GetTrainingProjectResponseV1? Type170 { get; set; }
+ public global::Baseten.TrainingJobCheckpointV1? Type170 { get; set; }
///
///
///
- public global::Baseten.OrderByV1? Type171 { get; set; }
+ public global::Baseten.GetTrainingJobCheckpointsResponseV1? Type171 { get; set; }
///
///
///
- public global::Baseten.SearchTrainingJobsRequestV1? Type172 { get; set; }
+ public global::System.Collections.Generic.IList? Type172 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type173 { get; set; }
+ public global::Baseten.CheckpointFile? Type173 { get; set; }
///
///
///
- public global::Baseten.SearchTrainingJobsResponseV1? Type174 { get; set; }
+ public global::Baseten.GetTrainingJobCheckpointFilesResponseV1? Type174 { get; set; }
///
///
///
- public global::Baseten.SearchTrainersRequestV1? Type175 { get; set; }
+ public global::System.Collections.Generic.IList? Type175 { get; set; }
///
///
///
- public global::Baseten.SearchedTrainerV1? Type176 { get; set; }
+ public global::Baseten.AuthCodeV1? Type176 { get; set; }
///
///
///
- public global::Baseten.SearchTrainersResponseV1? Type177 { get; set; }
+ public global::Baseten.GetAuthCodesResponseV1? Type177 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type178 { get; set; }
+ public global::System.Collections.Generic.IList? Type178 { get; set; }
///
///
///
- public global::Baseten.CheckpointSearchRequestV1? Type179 { get; set; }
+ public global::Baseten.PatchInteractiveSessionRequestV1? Type179 { get; set; }
///
///
///
- public global::Baseten.TrainerCheckpointTarget? Type180 { get; set; }
+ public global::Baseten.InteractiveSessionV1? Type180 { get; set; }
///
///
///
- public global::Baseten.TrainerServerCheckpointV1? Type181 { get; set; }
+ public global::Baseten.PatchInteractiveSessionResponseV1? Type181 { get; set; }
///
///
///
- public global::Baseten.CheckpointSearchResponseV1? Type182 { get; set; }
+ public global::Baseten.FileSummary? Type182 { get; set; }
///
///
///
- public global::Baseten.CreateTrainerSessionRequestV1? Type183 { get; set; }
+ public global::Baseten.GetCacheSummaryResponseV1? Type183 { get; set; }
///
///
///
- public global::Baseten.TrainerSessionV1? Type184 { get; set; }
+ public global::System.Collections.Generic.IList? Type184 { get; set; }
///
///
///
- public global::Baseten.CreateTrainerSessionResponseV1? Type185 { get; set; }
+ public global::Baseten.TrainingProjectTombstoneV1? Type185 { get; set; }
///
///
///
- public global::Baseten.CreateTrainerServerRequestV1? Type186 { get; set; }
+ public global::Baseten.GetTrainingProjectResponseV1? Type186 { get; set; }
///
///
///
- public global::Baseten.SamplingServerV1? Type187 { get; set; }
+ public global::Baseten.OrderByV1? Type187 { get; set; }
///
///
///
- public global::Baseten.TrainerServerV1? Type188 { get; set; }
+ public global::Baseten.SearchTrainingJobsRequestV1? Type188 { get; set; }
///
///
///
- public global::Baseten.CreateTrainerServerResponseV1? Type189 { get; set; }
+ public global::System.Collections.Generic.IList? Type189 { get; set; }
///
///
///
- public global::Baseten.CreateSamplingServerRequestV1? Type190 { get; set; }
+ public global::Baseten.SearchTrainingJobsResponseV1? Type190 { get; set; }
///
///
///
- public global::Baseten.CreateSamplingServerResponseV1? Type191 { get; set; }
+ public global::Baseten.SearchTrainersRequestV1? Type191 { get; set; }
///
///
///
- public global::Baseten.GetTrainerServerCheckpointsResponseV1? Type192 { get; set; }
+ public global::Baseten.SearchedTrainerV1? Type192 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type193 { get; set; }
+ public global::Baseten.SearchTrainersResponseV1? Type193 { get; set; }
///
///
///
- public global::Baseten.GetTrainerServerCheckpointFilesResponseV1? Type194 { get; set; }
+ public global::System.Collections.Generic.IList? Type194 { get; set; }
///
///
///
- public global::Baseten.SupportedModelV1? Type195 { get; set; }
+ public global::Baseten.CheckpointSearchRequestV1? Type195 { get; set; }
///
///
///
- public global::Baseten.GetLoopsCapabilitiesResponseV1? Type196 { get; set; }
+ public global::Baseten.TrainerCheckpointTarget? Type196 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type197 { get; set; }
+ public global::Baseten.TrainerServerCheckpointV1? Type197 { get; set; }
///
///
///
- public global::Baseten.CreateLoopsSessionRequestV1? Type198 { get; set; }
+ public global::Baseten.CheckpointSearchResponseV1? Type198 { get; set; }
///
///
///
- public global::Baseten.LoopsSessionV1? Type199 { get; set; }
+ public global::Baseten.CreateTrainerSessionRequestV1? Type199 { get; set; }
///
///
///
- public global::Baseten.CreateLoopsSessionResponseV1? Type200 { get; set; }
+ public global::Baseten.TrainerSessionV1? Type200 { get; set; }
///
///
///
- public global::Baseten.GetLoopsSessionResponseV1? Type201 { get; set; }
+ public global::Baseten.CreateTrainerSessionResponseV1? Type201 { get; set; }
///
///
///
- public global::Baseten.LoopsRunV1? Type202 { get; set; }
+ public global::Baseten.CreateTrainerServerRequestV1? Type202 { get; set; }
///
///
///
- public global::Baseten.LoopsSamplerV1? Type203 { get; set; }
+ public global::Baseten.SamplingServerV1? Type203 { get; set; }
///
///
///
- public global::Baseten.ListLoopsRunsResponseV1? Type204 { get; set; }
+ public global::Baseten.TrainerServerV1? Type204 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type205 { get; set; }
+ public global::Baseten.CreateTrainerServerResponseV1? Type205 { get; set; }
///
///
///
- public global::Baseten.CreateLoopsRunRequestV1? Type206 { get; set; }
+ public global::Baseten.CreateSamplingServerRequestV1? Type206 { get; set; }
///
///
///
- public global::Baseten.CreateLoopsRunResponseV1? Type207 { get; set; }
+ public global::Baseten.CreateSamplingServerResponseV1? Type207 { get; set; }
///
///
///
- public global::Baseten.GetLoopsRunResponseV1? Type208 { get; set; }
+ public global::Baseten.GetTrainerServerCheckpointsResponseV1? Type208 { get; set; }
///
///
///
- public global::Baseten.ListLoopsSamplersResponseV1? Type209 { get; set; }
+ public global::System.Collections.Generic.IList? Type209 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type210 { get; set; }
+ public global::Baseten.GetTrainerServerCheckpointFilesResponseV1? Type210 { get; set; }
///
///
///
- public global::Baseten.CreateLoopsSamplerRequestV1? Type211 { get; set; }
+ public global::Baseten.SupportedModelV1? Type211 { get; set; }
///
///
///
- public global::Baseten.CreateLoopsSamplerResponseV1? Type212 { get; set; }
+ public global::Baseten.GetLoopsCapabilitiesResponseV1? Type212 { get; set; }
///
///
///
- public global::Baseten.GetLoopsSamplerResponseV1? Type213 { get; set; }
+ public global::System.Collections.Generic.IList? Type213 { get; set; }
///
///
///
- public global::Baseten.LoopsCheckpointV1? Type214 { get; set; }
+ public global::Baseten.CreateLoopsSessionRequestV1? Type214 { get; set; }
///
///
///
- public global::Baseten.ListLoopsCheckpointsResponseV1? Type215 { get; set; }
+ public global::Baseten.LoopsSessionV1? Type215 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type216 { get; set; }
+ public global::Baseten.CreateLoopsSessionResponseV1? Type216 { get; set; }
///
///
///
- public global::Baseten.ValidateLoopsCheckpointRequestV1? Type217 { get; set; }
+ public global::Baseten.GetLoopsSessionResponseV1? Type217 { get; set; }
///
///
///
- public global::Baseten.ValidateLoopsCheckpointResponseV1? Type218 { get; set; }
+ public global::Baseten.LoopsRunV1? Type218 { get; set; }
///
///
///
- public global::Baseten.LoopsCheckpointFilesResponseV1? Type219 { get; set; }
+ public global::Baseten.LoopsSamplerV1? Type219 { get; set; }
///
///
///
- public global::Baseten.LoopsDeploymentStatusV1? Type220 { get; set; }
+ public global::Baseten.ListLoopsRunsResponseV1? Type220 { get; set; }
///
///
///
- public global::Baseten.Name? Type221 { get; set; }
+ public global::System.Collections.Generic.IList? Type221 { get; set; }
///
///
///
- public global::Baseten.LoopsDeploymentV1? Type222 { get; set; }
+ public global::Baseten.CreateLoopsRunRequestV1? Type222 { get; set; }
///
///
///
- public global::Baseten.ListLoopsDeploymentsResponseV1? Type223 { get; set; }
+ public global::Baseten.CreateLoopsRunResponseV1? Type223 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type224 { get; set; }
+ public global::Baseten.GetLoopsRunResponseV1? Type224 { get; set; }
///
///
///
- public global::Baseten.DeactivateLoopsDeploymentResponseV1? Type225 { get; set; }
+ public global::Baseten.ListLoopsSamplersResponseV1? Type225 { get; set; }
///
///
///
- public global::Baseten.GetLoopsDeploymentResponseV1? Type226 { get; set; }
+ public global::System.Collections.Generic.IList? Type226 { get; set; }
///
///
///
- public global::Baseten.TrainingGpuCapacityItemV1? Type227 { get; set; }
+ public global::Baseten.CreateLoopsSamplerRequestV1? Type227 { get; set; }
///
///
///
- public global::Baseten.GetTrainingGpuCapacityResponseV1? Type228 { get; set; }
+ public global::Baseten.CreateLoopsSamplerResponseV1? Type228 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type229 { get; set; }
+ public global::Baseten.GetLoopsSamplerResponseV1? Type229 { get; set; }
///
///
///
- public global::Baseten.AWSCredentialsV1? Type230 { get; set; }
+ public global::Baseten.LoopsCheckpointV1? Type230 { get; set; }
///
///
///
- public global::Baseten.GetBlobCredentialsResponseV1? Type231 { get; set; }
+ public global::Baseten.ListLoopsCheckpointsResponseV1? Type231 { get; set; }
///
///
///
- public global::Baseten.APIKeyCategory? Type232 { get; set; }
+ public global::System.Collections.Generic.IList? Type232 { get; set; }
///
///
///
- public global::Baseten.CreateAPIKeyRequestV1? Type233 { get; set; }
+ public global::Baseten.ValidateLoopsCheckpointRequestV1? Type233 { get; set; }
///
///
///
- public global::Baseten.APIKeyV1? Type234 { get; set; }
+ public global::Baseten.ValidateLoopsCheckpointResponseV1? Type234 { get; set; }
///
///
///
- public global::Baseten.APIKeyInfoV1? Type235 { get; set; }
+ public global::Baseten.LoopsCheckpointFilesResponseV1? Type235 { get; set; }
///
///
///
- public global::Baseten.APIKeysV1? Type236 { get; set; }
+ public global::Baseten.LoopsDeploymentStatusV1? Type236 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type237 { get; set; }
+ public global::Baseten.Name? Type237 { get; set; }
///
///
///
- public global::Baseten.APIKeyTombstoneV1? Type238 { get; set; }
+ public global::Baseten.LoopsDeploymentV1? Type238 { get; set; }
///
///
///
- public global::Baseten.ModelWeightSnapshotV1? Type239 { get; set; }
+ public global::Baseten.ListLoopsDeploymentsResponseV1? Type239 { get; set; }
///
///
///
- public global::Baseten.CreateModelWeightSnapshotRequestV1? Type240 { get; set; }
+ public global::System.Collections.Generic.IList? Type240 { get; set; }
///
///
///
- public global::Baseten.CreateLLMModelRequestV1? Type241 { get; set; }
+ public global::Baseten.DeactivateLoopsDeploymentResponseV1? Type241 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList