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 @@ -233,7 +233,11 @@ partial void ProcessPostEditImageResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -287,7 +291,11 @@ partial void ProcessPostEditImageResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.GenerateImageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ partial void ProcessPostGenerateImageResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -251,7 +255,11 @@ partial void ProcessPostGenerateImageResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.GenerateImageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,11 @@ partial void ProcessPostReframeImageResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -275,7 +279,11 @@ partial void ProcessPostReframeImageResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.GenerateImageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ partial void ProcessPostRemixImageResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -256,7 +260,11 @@ partial void ProcessPostRemixImageResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.GenerateImageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ partial void ProcessPostUpscaleImageResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -255,7 +259,11 @@ partial void ProcessPostUpscaleImageResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.GenerateImageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ partial void ProcessPostInternalTestingResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -251,7 +255,11 @@ partial void ProcessPostInternalTestingResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.PostInternalTesting200Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ partial void ProcessCreateApiKeyResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -183,7 +187,11 @@ partial void ProcessCreateApiKeyResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.PostApiKeyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeys.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ partial void ProcessGetApiKeysResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -183,7 +187,11 @@ partial void ProcessGetApiKeysResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.GetApiKeysResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ partial void ProcessGetApiStripeSubscriptionResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -192,7 +196,11 @@ partial void ProcessGetApiStripeSubscriptionResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.ManageApiStripeSubscriptionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ partial void ProcessGetApiSubscriptionResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -183,7 +187,11 @@ partial void ProcessGetApiSubscriptionResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.ManageApiSubscriptionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiTerms.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ partial void ProcessGetApiTermsResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -183,7 +187,11 @@ partial void ProcessGetApiTermsResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.GetApiTermsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ partial void ProcessPostApiSubscriptionResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -225,7 +229,11 @@ partial void ProcessPostApiSubscriptionResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.PostApiSubscriptionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ partial void ProcessReactivateSubscriptionResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -207,7 +211,11 @@ partial void ProcessReactivateSubscriptionResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Ideogram.PostApiReactivateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
2 changes: 2 additions & 0 deletions src/libs/Ideogram/Generated/Ideogram.Models.ApiTerms.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public sealed partial class ApiTerms
/// <param name="termsUrl">
/// The URL where the terms are hosted.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ApiTerms(
string termsId,
string termsUrl)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public sealed partial class ColorPaletteMember
/// The weight of the color in the color palette.<br/>
/// Example: 0.25
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ColorPaletteMember(
string colorHex,
double? colorWeight)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public sealed partial class ColorPaletteWithMembers
/// It is recommended that these weights descend from highest to lowest for the color hexes provided.<br/>
/// Example: [, , , , ]
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ColorPaletteWithMembers(
global::System.Collections.Generic.IList<global::Ideogram.ColorPaletteMember> members)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public sealed partial class ColorPaletteWithPresetName
/// A color palette preset value<br/>
/// Example: PASTEL
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ColorPaletteWithPresetName(
global::Ideogram.ColorPalettePresetName name)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public sealed partial class DescribeRequest
/// </summary>
/// <param name="imageFile"></param>
/// <param name="imageFilename"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DescribeRequest(
byte[] imageFile,
string imageFilename)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public sealed partial class DescribeResponse
/// <param name="descriptions">
/// A collection of descriptions for given content
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DescribeResponse(
global::System.Collections.Generic.IList<global::Ideogram.Description>? descriptions)
{
Expand Down
Loading
Loading