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
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ partial void ProcessUpdateFlagResponseContent(
/// <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::Vercel.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Vercel.OneOf<global::Vercel.AutoSDKShared348824e7d17eab26, global::Vercel.Flag>> UpdateFlagAsync(
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKShared348824e7d17eab26> UpdateFlagAsync(
string projectIdOrName,
string flagIdOrSlug,

Expand Down Expand Up @@ -132,7 +132,7 @@ partial void ProcessUpdateFlagResponseContent(
/// <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::Vercel.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.OneOf<global::Vercel.AutoSDKShared348824e7d17eab26, global::Vercel.Flag>>> UpdateFlagAsResponseAsync(
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared348824e7d17eab26>> UpdateFlagAsResponseAsync(
string projectIdOrName,
string flagIdOrSlug,

Expand Down Expand Up @@ -699,9 +699,9 @@ partial void ProcessUpdateFlagResponseContent(
{
__response.EnsureSuccessStatusCode();

var __value = global::Vercel.OneOf<global::Vercel.AutoSDKShared348824e7d17eab26, global::Vercel.Flag>.FromJson(__content, JsonSerializerContext) ??
var __value = global::Vercel.AutoSDKShared348824e7d17eab26.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.OneOf<global::Vercel.AutoSDKShared348824e7d17eab26, global::Vercel.Flag>>(
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared348824e7d17eab26>(
statusCode: __response.StatusCode,
headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
Expand Down Expand Up @@ -731,9 +731,9 @@ partial void ProcessUpdateFlagResponseContent(
#endif
).ConfigureAwait(false);

var __value = await global::Vercel.OneOf<global::Vercel.AutoSDKShared348824e7d17eab26, global::Vercel.Flag>.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
var __value = await global::Vercel.AutoSDKShared348824e7d17eab26.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.OneOf<global::Vercel.AutoSDKShared348824e7d17eab26, global::Vercel.Flag>>(
return new global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared348824e7d17eab26>(
statusCode: __response.StatusCode,
headers: global::Vercel.AutoSDKHttpResponse.CreateHeaders(__response),
requestUri: __response.RequestMessage?.RequestUri,
Expand Down Expand Up @@ -826,7 +826,7 @@ partial void ProcessUpdateFlagResponseContent(
/// <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>
public async global::System.Threading.Tasks.Task<global::Vercel.OneOf<global::Vercel.AutoSDKShared348824e7d17eab26, global::Vercel.Flag>> UpdateFlagAsync(
public async global::System.Threading.Tasks.Task<global::Vercel.AutoSDKShared348824e7d17eab26> UpdateFlagAsync(
string projectIdOrName,
string flagIdOrSlug,
string? ifMatch = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public partial interface IFeatureFlagsClient
/// <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::Vercel.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vercel.OneOf<global::Vercel.AutoSDKShared348824e7d17eab26, global::Vercel.Flag>> UpdateFlagAsync(
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKShared348824e7d17eab26> UpdateFlagAsync(
string projectIdOrName,
string flagIdOrSlug,

Expand Down Expand Up @@ -67,7 +67,7 @@ public partial interface IFeatureFlagsClient
/// <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::Vercel.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.OneOf<global::Vercel.AutoSDKShared348824e7d17eab26, global::Vercel.Flag>>> UpdateFlagAsResponseAsync(
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKShared348824e7d17eab26>> UpdateFlagAsResponseAsync(
string projectIdOrName,
string flagIdOrSlug,

Expand Down Expand Up @@ -131,7 +131,7 @@ public partial interface IFeatureFlagsClient
/// <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::Vercel.OneOf<global::Vercel.AutoSDKShared348824e7d17eab26, global::Vercel.Flag>> UpdateFlagAsync(
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKShared348824e7d17eab26> UpdateFlagAsync(
string projectIdOrName,
string flagIdOrSlug,
string? ifMatch = default,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#nullable enable

namespace Vercel
{
public partial interface IProjectsClient
{
/// <summary>
/// Delete a project avatar<br/>
/// Remove the avatar of the project identified by `idOrName`. Deletes the chosen avatar field so the next production deploy can run auto-detection again. Does not delete the stored image.
/// </summary>
/// <param name="idOrName">
/// The unique project identifier or the project name.
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
/// <param name="slug">
/// Example: my-team-url-slug
/// </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::Vercel.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKSharede870b907cc1fb37e> DeleteProjectAvatarAsync(
string idOrName,
string? teamId = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Delete a project avatar<br/>
/// Remove the avatar of the project identified by `idOrName`. Deletes the chosen avatar field so the next production deploy can run auto-detection again. Does not delete the stored image.
/// </summary>
/// <param name="idOrName">
/// The unique project identifier or the project name.
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
/// <param name="slug">
/// Example: my-team-url-slug
/// </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::Vercel.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.AutoSDKSharede870b907cc1fb37e>> DeleteProjectAvatarAsResponseAsync(
string idOrName,
string? teamId = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading
Loading