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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
482 changes: 482 additions & 0 deletions src/libs/Baseten/Generated/Baseten.BasetenClient.CreateModels.g.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#nullable enable

namespace Baseten
{
public partial interface IBasetenClient
{
/// <summary>
/// Creates a new model from a source<br/>
/// 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.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Baseten.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.baseten.co/v1/models \<br/>
/// --header "Authorization: Api-Key $BASETEN_API_KEY" \<br/>
/// --data '{<br/>
/// "source": null<br/>
/// }'
/// </remarks>
global::System.Threading.Tasks.Task<global::Baseten.CreatedModelDeploymentV1> CreateModelsAsync(

global::Baseten.CreateModelRequestV1 request,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Creates a new model from a source<br/>
/// 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.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Baseten.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.baseten.co/v1/models \<br/>
/// --header "Authorization: Api-Key $BASETEN_API_KEY" \<br/>
/// --data '{<br/>
/// "source": null<br/>
/// }'
/// </remarks>
global::System.Threading.Tasks.Task<global::Baseten.AutoSDKHttpResponse<global::Baseten.CreatedModelDeploymentV1>> CreateModelsAsResponseAsync(

global::Baseten.CreateModelRequestV1 request,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Creates a new model from a source<br/>
/// 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.
/// </summary>
/// <param name="source">
/// Where the new model is created from.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Baseten.CreatedModelDeploymentV1> CreateModelsAsync(
global::Baseten.Source source,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#nullable enable

namespace Baseten
{
public partial interface IBasetenClient
{
/// <summary>
/// Adds a new deployment to a model
/// </summary>
/// <param name="modelId"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Baseten.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.baseten.co/v1/models/{model_id}/deployments \<br/>
/// --header "Authorization: Api-Key $BASETEN_API_KEY" \<br/>
/// --data '{<br/>
/// "source": null<br/>
/// }'
/// </remarks>
global::System.Threading.Tasks.Task<global::Baseten.CreatedModelDeploymentV1> CreateModelsByModelIdDeploymentsAsync(
string modelId,

global::Baseten.CreateModelDeploymentRequestV1 request,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Adds a new deployment to a model
/// </summary>
/// <param name="modelId"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Baseten.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.baseten.co/v1/models/{model_id}/deployments \<br/>
/// --header "Authorization: Api-Key $BASETEN_API_KEY" \<br/>
/// --data '{<br/>
/// "source": null<br/>
/// }'
/// </remarks>
global::System.Threading.Tasks.Task<global::Baseten.AutoSDKHttpResponse<global::Baseten.CreatedModelDeploymentV1>> CreateModelsByModelIdDeploymentsAsResponseAsync(
string modelId,

global::Baseten.CreateModelDeploymentRequestV1 request,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Adds a new deployment to a model
/// </summary>
/// <param name="modelId"></param>
/// <param name="source">
/// Where the new deployment is created from.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Baseten.CreatedModelDeploymentV1> CreateModelsByModelIdDeploymentsAsync(
string modelId,
global::Baseten.DeploymentArchiveSourceV1 source,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
#nullable enable

namespace Baseten
{
public partial interface IBasetenClient
{
/// <summary>
/// Validates a model push payload and issues upload credentials
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Baseten.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.baseten.co/v1/prepare_model_upload \<br/>
/// --header "Authorization: Api-Key $BASETEN_API_KEY" \<br/>
/// --data '{<br/>
/// "deployment": {<br/>
/// "config": null,<br/>
/// "raw_config": null,<br/>
/// "user_env": null,<br/>
/// "environment_name": null,<br/>
/// "preserve_env_instance_type": null,<br/>
/// "deploy_timeout_minutes": null,<br/>
/// "deployment_name": null,<br/>
/// "labels": null<br/>
/// },<br/>
/// "name": null,<br/>
/// "team_id": null,<br/>
/// "model_id": null,<br/>
/// "dry_run": null,<br/>
/// "is_development": null<br/>
/// }'
/// </remarks>
global::System.Threading.Tasks.Task<global::Baseten.PrepareModelUploadResponseV1> CreatePrepareModelUploadAsync(

global::Baseten.PrepareModelUploadRequestV1 request,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Validates a model push payload and issues upload credentials
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Baseten.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.baseten.co/v1/prepare_model_upload \<br/>
/// --header "Authorization: Api-Key $BASETEN_API_KEY" \<br/>
/// --data '{<br/>
/// "deployment": {<br/>
/// "config": null,<br/>
/// "raw_config": null,<br/>
/// "user_env": null,<br/>
/// "environment_name": null,<br/>
/// "preserve_env_instance_type": null,<br/>
/// "deploy_timeout_minutes": null,<br/>
/// "deployment_name": null,<br/>
/// "labels": null<br/>
/// },<br/>
/// "name": null,<br/>
/// "team_id": null,<br/>
/// "model_id": null,<br/>
/// "dry_run": null,<br/>
/// "is_development": null<br/>
/// }'
/// </remarks>
global::System.Threading.Tasks.Task<global::Baseten.AutoSDKHttpResponse<global::Baseten.PrepareModelUploadResponseV1>> CreatePrepareModelUploadAsResponseAsync(

global::Baseten.PrepareModelUploadRequestV1 request,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Validates a model push payload and issues upload credentials
/// </summary>
/// <param name="deployment">
/// Deployment-level payload, identical to the payload sent at commit.
/// </param>
/// <param name="name">
/// Set to validate a new-model push. Exactly one of `name` or `model_id` is required.<br/>
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </param>
/// <param name="teamId">
/// 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).<br/>
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </param>
/// <param name="modelId">
/// Set to validate an add-deployment push to an existing model. Exactly one of `name` or `model_id` is required.<br/>
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </param>
/// <param name="dryRun">
/// If true, validate the payload only and do not issue upload credentials. The response sets `creds`, `s3_bucket`, and `s3_key` to `null`.<br/>
/// Default Value: false
/// </param>
/// <param name="isDevelopment">
/// 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`.<br/>
/// Default Value: false
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Baseten.PrepareModelUploadResponseV1> 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);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#nullable enable

namespace Baseten
{
public partial interface IBasetenClient
{
/// <summary>
/// Creates a new model from a source<br/>
/// 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.
/// </summary>
/// <param name="teamId"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Baseten.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.baseten.co/v1/teams/{team_id}/models \<br/>
/// --header "Authorization: Api-Key $BASETEN_API_KEY" \<br/>
/// --data '{<br/>
/// "source": null<br/>
/// }'
/// </remarks>
global::System.Threading.Tasks.Task<global::Baseten.CreatedModelDeploymentV1> CreateTeamsByTeamIdModelsAsync(
string teamId,

global::Baseten.CreateModelRequestV1 request,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Creates a new model from a source<br/>
/// 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.
/// </summary>
/// <param name="teamId"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Baseten.ApiException"></exception>
/// <remarks>
/// curl --request POST \<br/>
/// --url https://api.baseten.co/v1/teams/{team_id}/models \<br/>
/// --header "Authorization: Api-Key $BASETEN_API_KEY" \<br/>
/// --data '{<br/>
/// "source": null<br/>
/// }'
/// </remarks>
global::System.Threading.Tasks.Task<global::Baseten.AutoSDKHttpResponse<global::Baseten.CreatedModelDeploymentV1>> CreateTeamsByTeamIdModelsAsResponseAsync(
string teamId,

global::Baseten.CreateModelRequestV1 request,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Creates a new model from a source<br/>
/// 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.
/// </summary>
/// <param name="teamId"></param>
/// <param name="source">
/// Where the new model is created from.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Baseten.CreatedModelDeploymentV1> CreateTeamsByTeamIdModelsAsync(
string teamId,
global::Baseten.Source source,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading