Skip to content

Commit 1f7df7f

Browse files
chore: trigger build
1 parent 820139a commit 1f7df7f

3 files changed

Lines changed: 58 additions & 2 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 48
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc/imagekit-af1d84da7e0b7c07c32d0cdf0423f40a55b4aab339cbad65e495bee483d0e3cd.yml
3-
openapi_spec_hash: 333878ccaade1f9d0186530386bff8c5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc/imagekit-219cd09f920d87469cda8b4d45b74dbfcac5352281e240e78230934ceb5b19a4.yml
3+
openapi_spec_hash: 790e2ebbfb462a5f38999ec543e6124e
44
config_hash: ea9d73f82c079f2c34302ff663f2aa56

‎src/Imagekit.Tests/Models/Dummy/DummyCreateParamsTest.cs‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,15 @@ public void FieldRoundtrip_Works()
446446
},
447447
],
448448
},
449+
SolidColorOverlayTransformation = new()
450+
{
451+
Alpha = 1,
452+
Background = "background",
453+
Gradient = new Default(),
454+
Height = 0,
455+
Radius = new Max(),
456+
Width = 0,
457+
},
449458
SrcOptions = new()
450459
{
451460
Src = "/my-image.jpg",
@@ -1310,6 +1319,15 @@ public void FieldRoundtrip_Works()
13101319
},
13111320
],
13121321
};
1322+
SolidColorOverlayTransformation expectedSolidColorOverlayTransformation = new()
1323+
{
1324+
Alpha = 1,
1325+
Background = "background",
1326+
Gradient = new Default(),
1327+
Height = 0,
1328+
Radius = new Max(),
1329+
Width = 0,
1330+
};
13131331
SrcOptions expectedSrcOptions = new()
13141332
{
13151333
Src = "/my-image.jpg",
@@ -1757,6 +1775,10 @@ public void FieldRoundtrip_Works()
17571775
Assert.Equal(expectedResponsiveImageAttributes, parameters.ResponsiveImageAttributes);
17581776
Assert.Equal(expectedSavedExtensions, parameters.SavedExtensions);
17591777
Assert.Equal(expectedSolidColorOverlay, parameters.SolidColorOverlay);
1778+
Assert.Equal(
1779+
expectedSolidColorOverlayTransformation,
1780+
parameters.SolidColorOverlayTransformation
1781+
);
17601782
Assert.Equal(expectedSrcOptions, parameters.SrcOptions);
17611783
Assert.Equal(expectedStreamingResolution, parameters.StreamingResolution);
17621784
Assert.Equal(expectedSubtitleOverlay, parameters.SubtitleOverlay);
@@ -1798,6 +1820,8 @@ public void OptionalNonNullableParamsUnsetAreNotSet_Works()
17981820
Assert.False(parameters.RawBodyData.ContainsKey("savedExtensions"));
17991821
Assert.Null(parameters.SolidColorOverlay);
18001822
Assert.False(parameters.RawBodyData.ContainsKey("solidColorOverlay"));
1823+
Assert.Null(parameters.SolidColorOverlayTransformation);
1824+
Assert.False(parameters.RawBodyData.ContainsKey("solidColorOverlayTransformation"));
18011825
Assert.Null(parameters.SrcOptions);
18021826
Assert.False(parameters.RawBodyData.ContainsKey("srcOptions"));
18031827
Assert.Null(parameters.StreamingResolution);
@@ -1835,6 +1859,7 @@ public void OptionalNonNullableParamsSetToNullAreNotSet_Works()
18351859
ResponsiveImageAttributes = null,
18361860
SavedExtensions = null,
18371861
SolidColorOverlay = null,
1862+
SolidColorOverlayTransformation = null,
18381863
SrcOptions = null,
18391864
StreamingResolution = null,
18401865
SubtitleOverlay = null,
@@ -1868,6 +1893,8 @@ public void OptionalNonNullableParamsSetToNullAreNotSet_Works()
18681893
Assert.False(parameters.RawBodyData.ContainsKey("savedExtensions"));
18691894
Assert.Null(parameters.SolidColorOverlay);
18701895
Assert.False(parameters.RawBodyData.ContainsKey("solidColorOverlay"));
1896+
Assert.Null(parameters.SolidColorOverlayTransformation);
1897+
Assert.False(parameters.RawBodyData.ContainsKey("solidColorOverlayTransformation"));
18711898
Assert.Null(parameters.SrcOptions);
18721899
Assert.False(parameters.RawBodyData.ContainsKey("srcOptions"));
18731900
Assert.Null(parameters.StreamingResolution);
@@ -2336,6 +2363,15 @@ public void CopyConstructor_Works()
23362363
},
23372364
],
23382365
},
2366+
SolidColorOverlayTransformation = new()
2367+
{
2368+
Alpha = 1,
2369+
Background = "background",
2370+
Gradient = new Default(),
2371+
Height = 0,
2372+
Radius = new Max(),
2373+
Width = 0,
2374+
},
23392375
SrcOptions = new()
23402376
{
23412377
Src = "/my-image.jpg",

‎src/Imagekit/Models/Dummy/DummyCreateParams.cs‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,26 @@ public SolidColorOverlay? SolidColorOverlay
256256
}
257257
}
258258

259+
public SolidColorOverlayTransformation? SolidColorOverlayTransformation
260+
{
261+
get
262+
{
263+
this._rawBodyData.Freeze();
264+
return this._rawBodyData.GetNullableClass<SolidColorOverlayTransformation>(
265+
"solidColorOverlayTransformation"
266+
);
267+
}
268+
init
269+
{
270+
if (value == null)
271+
{
272+
return;
273+
}
274+
275+
this._rawBodyData.Set("solidColorOverlayTransformation", value);
276+
}
277+
}
278+
259279
/// <summary>
260280
/// Options for generating ImageKit URLs with transformations. See the [Transformations guide](https://imagekit.io/docs/transformations).
261281
/// </summary>

0 commit comments

Comments
 (0)