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 @@ -54,7 +54,9 @@ public sealed partial class AccountGetResponse
/// <param name="username">
/// The username of the account.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public AccountGetResponse(
string? githubUrl,
string? name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ public sealed partial class DeploymentsCreateRequest
/// <param name="version">
/// The 64-character string ID of the model version that you want to deploy.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsCreateRequest(
string hardware,
int maxInstances,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public sealed partial class DeploymentsCreateResponse
/// <param name="owner">
/// The owner of the deployment.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsCreateResponse(
global::Replicate.DeploymentsCreateResponseCurrentRelease? currentRelease,
string? name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public sealed partial class DeploymentsCreateResponseCurrentRelease
/// <param name="version">
/// The ID of the model version used in the release.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsCreateResponseCurrentRelease(
global::Replicate.DeploymentsCreateResponseCurrentReleaseConfiguration? configuration,
global::System.DateTime? createdAt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public sealed partial class DeploymentsCreateResponseCurrentReleaseConfiguration
/// <param name="minInstances">
/// The minimum number of instances for scaling.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsCreateResponseCurrentReleaseConfiguration(
string? hardware,
int? maxInstances,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public sealed partial class DeploymentsCreateResponseCurrentReleaseCreatedBy
/// <param name="username">
/// The username of the account that created the release.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsCreateResponseCurrentReleaseCreatedBy(
string? githubUrl,
string? name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public sealed partial class DeploymentsGetResponse
/// <param name="owner">
/// The owner of the deployment.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsGetResponse(
global::Replicate.DeploymentsGetResponseCurrentRelease? currentRelease,
string? name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public sealed partial class DeploymentsGetResponseCurrentRelease
/// <param name="version">
/// The ID of the model version used in the release.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsGetResponseCurrentRelease(
global::Replicate.DeploymentsGetResponseCurrentReleaseConfiguration? configuration,
global::System.DateTime? createdAt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public sealed partial class DeploymentsGetResponseCurrentReleaseConfiguration
/// <param name="minInstances">
/// The minimum number of instances for scaling.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsGetResponseCurrentReleaseConfiguration(
string? hardware,
int? maxInstances,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public sealed partial class DeploymentsGetResponseCurrentReleaseCreatedBy
/// <param name="username">
/// The username of the account that created the release.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsGetResponseCurrentReleaseCreatedBy(
string? githubUrl,
string? name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public sealed partial class DeploymentsListResponse
/// <param name="results">
/// An array containing a page of deployment objects
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsListResponse(
string? next,
string? previous,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public sealed partial class DeploymentsListResponseResult
/// <param name="owner">
/// The owner of the deployment.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsListResponseResult(
global::Replicate.DeploymentsListResponseResultCurrentRelease? currentRelease,
string? name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public sealed partial class DeploymentsListResponseResultCurrentRelease
/// <param name="version">
/// The ID of the model version used in the release.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsListResponseResultCurrentRelease(
global::Replicate.DeploymentsListResponseResultCurrentReleaseConfiguration? configuration,
global::System.DateTime? createdAt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public sealed partial class DeploymentsListResponseResultCurrentReleaseConfigura
/// <param name="minInstances">
/// The minimum number of instances for scaling.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsListResponseResultCurrentReleaseConfiguration(
string? hardware,
int? maxInstances,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public sealed partial class DeploymentsListResponseResultCurrentReleaseCreatedBy
/// <param name="username">
/// The username of the account that created the release.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsListResponseResultCurrentReleaseCreatedBy(
string? githubUrl,
string? name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public sealed partial class DeploymentsUpdateRequest
/// <param name="version">
/// The ID of the model version that you want to deploy
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsUpdateRequest(
string? hardware,
int? maxInstances,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public sealed partial class DeploymentsUpdateResponse
/// <param name="owner">
/// The owner of the deployment.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsUpdateResponse(
global::Replicate.DeploymentsUpdateResponseCurrentRelease? currentRelease,
string? name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public sealed partial class DeploymentsUpdateResponseCurrentRelease
/// <param name="version">
/// The ID of the model version used in the release.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsUpdateResponseCurrentRelease(
global::Replicate.DeploymentsUpdateResponseCurrentReleaseConfiguration? configuration,
global::System.DateTime? createdAt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public sealed partial class DeploymentsUpdateResponseCurrentReleaseConfiguration
/// <param name="minInstances">
/// The minimum number of instances for scaling.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsUpdateResponseCurrentReleaseConfiguration(
string? hardware,
int? maxInstances,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public sealed partial class DeploymentsUpdateResponseCurrentReleaseCreatedBy
/// <param name="username">
/// The username of the account that created the release.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsUpdateResponseCurrentReleaseCreatedBy(
string? githubUrl,
string? name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public sealed partial class HardwareListResponseItem
/// <param name="sku">
/// The SKU of the hardware.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public HardwareListResponseItem(
string? name,
string? sku)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public sealed partial class ModelsCreateRequest
/// <param name="visibility">
/// Whether the model should be public or private. A public model can be viewed and run by anyone, whereas a private model can be viewed and run only by the user or organization members that own the model.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ModelsCreateRequest(
string hardware,
string name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ public sealed partial class PredictionResponse
/// <param name="status"></param>
/// <param name="urls"></param>
/// <param name="version"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public PredictionResponse(
string? completedAt,
string? createdAt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public sealed partial class PredictionResponseInput
/// <param name="interval"></param>
/// <param name="aspectRatio"></param>
/// <param name="safetyTolerance"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public PredictionResponseInput(
double? seed,
double? steps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public sealed partial class PredictionResponseMetrics
/// <param name="imageCount"></param>
/// <param name="predictTime"></param>
/// <param name="totalTime"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public PredictionResponseMetrics(
double? imageCount,
double? predictTime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public sealed partial class PredictionResponseUrls
/// </summary>
/// <param name="get"></param>
/// <param name="cancel"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public PredictionResponseUrls(
string? get,
string? cancel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ public sealed partial class SchemasPredictionRequest
/// ```<br/>
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public SchemasPredictionRequest(
object input,
bool? stream,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ public sealed partial class SchemasTrainingRequest
/// ```<br/>
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public SchemasTrainingRequest(
string destination,
object input,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ public sealed partial class SchemasVersionPredictionRequest
/// ```<br/>
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public SchemasVersionPredictionRequest(
object input,
string version,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public sealed partial class WebhooksDefaultSecretGetResponse
/// <param name="key">
/// The signing secret.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public WebhooksDefaultSecretGetResponse(
string? key)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ partial void ProcessAccountGetResponseContent(

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 @@ -151,7 +155,11 @@ partial void ProcessAccountGetResponseContent(
};
}

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::Replicate.AccountGetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ partial void ProcessDeploymentsCreateResponseContent(

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 @@ -190,7 +194,11 @@ partial void ProcessDeploymentsCreateResponseContent(
};
}

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::Replicate.DeploymentsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ partial void ProcessDeploymentsGetResponseContent(

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 @@ -178,7 +182,11 @@ partial void ProcessDeploymentsGetResponseContent(
};
}

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::Replicate.DeploymentsGetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Loading