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 @@ -216,8 +216,8 @@ partial void ProcessReingestAllStoresResponseContent(
PrepareReingestAllStoresRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
organizationId: organizationId!,
storeIdentifier: storeIdentifier!,
organizationId: organizationId,
storeIdentifier: storeIdentifier,
statuses: statuses,
billable: billable);

Expand All @@ -241,7 +241,7 @@ partial void ProcessReingestAllStoresResponseContent(
pathTemplate: "$\"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -275,7 +275,7 @@ partial void ProcessReingestAllStoresResponseContent(
pathTemplate: "$\"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -316,7 +316,7 @@ partial void ProcessReingestAllStoresResponseContent(
pathTemplate: "$\"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -364,7 +364,7 @@ partial void ProcessReingestAllStoresResponseContent(
pathTemplate: "$\"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -386,7 +386,7 @@ partial void ProcessReingestAllStoresResponseContent(
pathTemplate: "$\"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
32 changes: 16 additions & 16 deletions src/libs/Mixedbread/Generated/Mixedbread.AnyOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public bool TryPickValue1(
/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
public T1 PickValue1() => Value1 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
Expand Down Expand Up @@ -78,8 +78,8 @@ public bool TryPickValue2(
/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
public T2 PickValue2() => Value2 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
/// <summary>
///
Expand Down Expand Up @@ -176,13 +176,13 @@ public bool Validate()
Validate();
}

if (IsValue1 && value1 != null)
if (Value1 is { } __value0 && value1 != null)
{
return value1(Value1!);
return value1(__value0);
}
else if (IsValue2 && value2 != null)
else if (Value2 is { } __value1 && value2 != null)
{
return value2(Value2!);
return value2(__value1);
}

return default(TResult);
Expand All @@ -202,13 +202,13 @@ public void Match(
Validate();
}

if (IsValue1)
if (Value1 is { } __value0)
{
value1?.Invoke(Value1!);
value1?.Invoke(__value0);
}
else if (IsValue2)
else if (Value2 is { } __value1)
{
value2?.Invoke(Value2!);
value2?.Invoke(__value1);
}
}

Expand All @@ -225,13 +225,13 @@ public void Switch(
Validate();
}

if (IsValue1)
if (Value1 is { } __value0)
{
value1?.Invoke(Value1!);
value1?.Invoke(__value0);
}
else if (IsValue2)
else if (Value2 is { } __value1)
{
value2?.Invoke(Value2!);
value2?.Invoke(__value1);
}
}

Expand Down
48 changes: 24 additions & 24 deletions src/libs/Mixedbread/Generated/Mixedbread.AnyOf.3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public bool TryPickValue1(
/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
public T1 PickValue1() => Value1 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
Expand Down Expand Up @@ -78,8 +78,8 @@ public bool TryPickValue2(
/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
public T2 PickValue2() => Value2 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");

/// <summary>
Expand Down Expand Up @@ -115,8 +115,8 @@ public bool TryPickValue3(
/// <summary>
///
/// </summary>
public T3 PickValue3() => IsValue3
? Value3!
public T3 PickValue3() => Value3 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}.");
/// <summary>
///
Expand Down Expand Up @@ -241,17 +241,17 @@ public bool Validate()
Validate();
}

if (IsValue1 && value1 != null)
if (Value1 is { } __value0 && value1 != null)
{
return value1(Value1!);
return value1(__value0);
}
else if (IsValue2 && value2 != null)
else if (Value2 is { } __value1 && value2 != null)
{
return value2(Value2!);
return value2(__value1);
}
else if (IsValue3 && value3 != null)
else if (Value3 is { } __value2 && value3 != null)
{
return value3(Value3!);
return value3(__value2);
}

return default(TResult);
Expand All @@ -273,17 +273,17 @@ public void Match(
Validate();
}

if (IsValue1)
if (Value1 is { } __value0)
{
value1?.Invoke(Value1!);
value1?.Invoke(__value0);
}
else if (IsValue2)
else if (Value2 is { } __value1)
{
value2?.Invoke(Value2!);
value2?.Invoke(__value1);
}
else if (IsValue3)
else if (Value3 is { } __value2)
{
value3?.Invoke(Value3!);
value3?.Invoke(__value2);
}
}

Expand All @@ -301,17 +301,17 @@ public void Switch(
Validate();
}

if (IsValue1)
if (Value1 is { } __value0)
{
value1?.Invoke(Value1!);
value1?.Invoke(__value0);
}
else if (IsValue2)
else if (Value2 is { } __value1)
{
value2?.Invoke(Value2!);
value2?.Invoke(__value1);
}
else if (IsValue3)
else if (Value3 is { } __value2)
{
value3?.Invoke(Value3!);
value3?.Invoke(__value2);
}
}

Expand Down
64 changes: 32 additions & 32 deletions src/libs/Mixedbread/Generated/Mixedbread.AnyOf.4.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public bool TryPickValue1(
/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
public T1 PickValue1() => Value1 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
Expand Down Expand Up @@ -78,8 +78,8 @@ public bool TryPickValue2(
/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
public T2 PickValue2() => Value2 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");

/// <summary>
Expand Down Expand Up @@ -115,8 +115,8 @@ public bool TryPickValue3(
/// <summary>
///
/// </summary>
public T3 PickValue3() => IsValue3
? Value3!
public T3 PickValue3() => Value3 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}.");

/// <summary>
Expand Down Expand Up @@ -152,8 +152,8 @@ public bool TryPickValue4(
/// <summary>
///
/// </summary>
public T4 PickValue4() => IsValue4
? Value4!
public T4 PickValue4() => Value4 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}.");
/// <summary>
///
Expand Down Expand Up @@ -306,21 +306,21 @@ public bool Validate()
Validate();
}

if (IsValue1 && value1 != null)
if (Value1 is { } __value0 && value1 != null)
{
return value1(Value1!);
return value1(__value0);
}
else if (IsValue2 && value2 != null)
else if (Value2 is { } __value1 && value2 != null)
{
return value2(Value2!);
return value2(__value1);
}
else if (IsValue3 && value3 != null)
else if (Value3 is { } __value2 && value3 != null)
{
return value3(Value3!);
return value3(__value2);
}
else if (IsValue4 && value4 != null)
else if (Value4 is { } __value3 && value4 != null)
{
return value4(Value4!);
return value4(__value3);
}

return default(TResult);
Expand All @@ -344,21 +344,21 @@ public void Match(
Validate();
}

if (IsValue1)
if (Value1 is { } __value0)
{
value1?.Invoke(Value1!);
value1?.Invoke(__value0);
}
else if (IsValue2)
else if (Value2 is { } __value1)
{
value2?.Invoke(Value2!);
value2?.Invoke(__value1);
}
else if (IsValue3)
else if (Value3 is { } __value2)
{
value3?.Invoke(Value3!);
value3?.Invoke(__value2);
}
else if (IsValue4)
else if (Value4 is { } __value3)
{
value4?.Invoke(Value4!);
value4?.Invoke(__value3);
}
}

Expand All @@ -377,21 +377,21 @@ public void Switch(
Validate();
}

if (IsValue1)
if (Value1 is { } __value0)
{
value1?.Invoke(Value1!);
value1?.Invoke(__value0);
}
else if (IsValue2)
else if (Value2 is { } __value1)
{
value2?.Invoke(Value2!);
value2?.Invoke(__value1);
}
else if (IsValue3)
else if (Value3 is { } __value2)
{
value3?.Invoke(Value3!);
value3?.Invoke(__value2);
}
else if (IsValue4)
else if (Value4 is { } __value3)
{
value4?.Invoke(Value4!);
value4?.Invoke(__value3);
}
}

Expand Down
Loading
Loading