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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ public partial class BasetenClient
};
partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdConfigArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Baseten.DeploymentConfigOutputFormat? outputFormat,
ref string modelId,
ref string deploymentId);
partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdConfigRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::Baseten.DeploymentConfigOutputFormat? outputFormat,
string modelId,
string deploymentId);
partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdConfigResponse(
Expand All @@ -47,6 +49,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdConfigResponseCon
/// Gets a deployment's config<br/>
/// Returns the deployment's config. `output_format` query param picks the shape: 'raw' (config.yaml text), 'parsed' (dict with defaults), or 'both' (default).
/// </summary>
/// <param name="outputFormat">
/// Default Value: both
/// </param>
/// <param name="modelId"></param>
/// <param name="deploymentId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -60,12 +65,14 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdConfigResponseCon
public async global::System.Threading.Tasks.Task<global::Baseten.DeploymentConfigResponseV1> GetModelsByModelIdDeploymentsByDeploymentIdConfigAsync(
string modelId,
string deploymentId,
global::Baseten.DeploymentConfigOutputFormat? outputFormat = default,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await GetModelsByModelIdDeploymentsByDeploymentIdConfigAsResponseAsync(
modelId: modelId,
deploymentId: deploymentId,
outputFormat: outputFormat,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
Expand All @@ -76,6 +83,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdConfigResponseCon
/// Gets a deployment's config<br/>
/// Returns the deployment's config. `output_format` query param picks the shape: 'raw' (config.yaml text), 'parsed' (dict with defaults), or 'both' (default).
/// </summary>
/// <param name="outputFormat">
/// Default Value: both
/// </param>
/// <param name="modelId"></param>
/// <param name="deploymentId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -89,13 +99,15 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdConfigResponseCon
public async global::System.Threading.Tasks.Task<global::Baseten.AutoSDKHttpResponse<global::Baseten.DeploymentConfigResponseV1>> GetModelsByModelIdDeploymentsByDeploymentIdConfigAsResponseAsync(
string modelId,
string deploymentId,
global::Baseten.DeploymentConfigOutputFormat? outputFormat = default,
global::Baseten.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareGetModelsByModelIdDeploymentsByDeploymentIdConfigArguments(
httpClient: HttpClient,
outputFormat: ref outputFormat,
modelId: ref modelId,
deploymentId: ref deploymentId);

Expand Down Expand Up @@ -125,6 +137,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdConfigResponseCon
var __pathBuilder = new global::Baseten.PathBuilder(
path: $"/v1/models/{modelId}/deployments/{deploymentId}/config",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("output_format", outputFormat?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::Baseten.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down Expand Up @@ -165,6 +180,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdConfigResponseCon
PrepareGetModelsByModelIdDeploymentsByDeploymentIdConfigRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
outputFormat: outputFormat,
modelId: modelId!,
deploymentId: deploymentId!);

Expand Down
Loading