33package com.imagekit.api.models.files
44
55import com.imagekit.api.core.JsonValue
6+ import com.imagekit.api.models.UnnamedSchemaWithArrayParent3
67import kotlin.jvm.optionals.getOrNull
78import org.assertj.core.api.Assertions.assertThat
89import org.junit.jupiter.api.Test
@@ -25,13 +26,10 @@ internal class FileUpdateParamsTest {
2526 .description(" description" )
2627 .extensions(
2728 listOf (
28- FileUpdateParams .Update .UpdateFileDetails .Extension .ofRemoveBg(
29- FileUpdateParams .Update .UpdateFileDetails .Extension .RemoveBg
30- .builder()
29+ UnnamedSchemaWithArrayParent3 .ofRemoveBg(
30+ UnnamedSchemaWithArrayParent3 .RemoveBg .builder()
3131 .options(
32- FileUpdateParams .Update .UpdateFileDetails .Extension .RemoveBg
33- .Options
34- .builder()
32+ UnnamedSchemaWithArrayParent3 .RemoveBg .Options .builder()
3533 .addShadow(true )
3634 .bgColor(" bg_color" )
3735 .bgImageUrl(" bg_image_url" )
@@ -40,36 +38,27 @@ internal class FileUpdateParamsTest {
4038 )
4139 .build()
4240 ),
43- FileUpdateParams .Update .UpdateFileDetails .Extension .ofAutoTagging(
44- FileUpdateParams .Update .UpdateFileDetails .Extension
45- .AutoTaggingExtension
46- .builder()
41+ UnnamedSchemaWithArrayParent3 .ofAutoTaggingExtension(
42+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .builder()
4743 .maxTags(10L )
4844 .minConfidence(80L )
4945 .name(
50- FileUpdateParams .Update .UpdateFileDetails .Extension
51- .AutoTaggingExtension
52- .Name
46+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .Name
5347 .GOOGLE_AUTO_TAGGING
5448 )
5549 .build()
5650 ),
57- FileUpdateParams .Update .UpdateFileDetails .Extension .ofAutoTagging(
58- FileUpdateParams .Update .UpdateFileDetails .Extension
59- .AutoTaggingExtension
60- .builder()
51+ UnnamedSchemaWithArrayParent3 .ofAutoTaggingExtension(
52+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .builder()
6153 .maxTags(10L )
6254 .minConfidence(80L )
6355 .name(
64- FileUpdateParams .Update .UpdateFileDetails .Extension
65- .AutoTaggingExtension
66- .Name
56+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .Name
6757 .AWS_AUTO_TAGGING
6858 )
6959 .build()
7060 ),
71- FileUpdateParams .Update .UpdateFileDetails .Extension
72- .ofAiAutoDescription(),
61+ UnnamedSchemaWithArrayParent3 .ofAiAutoDescription(),
7362 )
7463 )
7564 .removeAiTagsOfStrings(listOf (" car" , " vehicle" , " motorsports" ))
@@ -107,14 +96,10 @@ internal class FileUpdateParamsTest {
10796 .description(" description" )
10897 .extensions(
10998 listOf (
110- FileUpdateParams .Update .UpdateFileDetails .Extension .ofRemoveBg(
111- FileUpdateParams .Update .UpdateFileDetails .Extension .RemoveBg
112- .builder()
99+ UnnamedSchemaWithArrayParent3 .ofRemoveBg(
100+ UnnamedSchemaWithArrayParent3 .RemoveBg .builder()
113101 .options(
114- FileUpdateParams .Update .UpdateFileDetails .Extension
115- .RemoveBg
116- .Options
117- .builder()
102+ UnnamedSchemaWithArrayParent3 .RemoveBg .Options .builder()
118103 .addShadow(true )
119104 .bgColor(" bg_color" )
120105 .bgImageUrl(" bg_image_url" )
@@ -123,36 +108,27 @@ internal class FileUpdateParamsTest {
123108 )
124109 .build()
125110 ),
126- FileUpdateParams .Update .UpdateFileDetails .Extension .ofAutoTagging(
127- FileUpdateParams .Update .UpdateFileDetails .Extension
128- .AutoTaggingExtension
129- .builder()
111+ UnnamedSchemaWithArrayParent3 .ofAutoTaggingExtension(
112+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .builder()
130113 .maxTags(10L )
131114 .minConfidence(80L )
132115 .name(
133- FileUpdateParams .Update .UpdateFileDetails .Extension
134- .AutoTaggingExtension
135- .Name
116+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .Name
136117 .GOOGLE_AUTO_TAGGING
137118 )
138119 .build()
139120 ),
140- FileUpdateParams .Update .UpdateFileDetails .Extension .ofAutoTagging(
141- FileUpdateParams .Update .UpdateFileDetails .Extension
142- .AutoTaggingExtension
143- .builder()
121+ UnnamedSchemaWithArrayParent3 .ofAutoTaggingExtension(
122+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .builder()
144123 .maxTags(10L )
145124 .minConfidence(80L )
146125 .name(
147- FileUpdateParams .Update .UpdateFileDetails .Extension
148- .AutoTaggingExtension
149- .Name
126+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .Name
150127 .AWS_AUTO_TAGGING
151128 )
152129 .build()
153130 ),
154- FileUpdateParams .Update .UpdateFileDetails .Extension
155- .ofAiAutoDescription(),
131+ UnnamedSchemaWithArrayParent3 .ofAiAutoDescription(),
156132 )
157133 )
158134 .removeAiTagsOfStrings(listOf (" car" , " vehicle" , " motorsports" ))
@@ -179,14 +155,10 @@ internal class FileUpdateParamsTest {
179155 .description(" description" )
180156 .extensions(
181157 listOf (
182- FileUpdateParams .Update .UpdateFileDetails .Extension .ofRemoveBg(
183- FileUpdateParams .Update .UpdateFileDetails .Extension .RemoveBg
184- .builder()
158+ UnnamedSchemaWithArrayParent3 .ofRemoveBg(
159+ UnnamedSchemaWithArrayParent3 .RemoveBg .builder()
185160 .options(
186- FileUpdateParams .Update .UpdateFileDetails .Extension
187- .RemoveBg
188- .Options
189- .builder()
161+ UnnamedSchemaWithArrayParent3 .RemoveBg .Options .builder()
190162 .addShadow(true )
191163 .bgColor(" bg_color" )
192164 .bgImageUrl(" bg_image_url" )
@@ -195,36 +167,27 @@ internal class FileUpdateParamsTest {
195167 )
196168 .build()
197169 ),
198- FileUpdateParams .Update .UpdateFileDetails .Extension .ofAutoTagging(
199- FileUpdateParams .Update .UpdateFileDetails .Extension
200- .AutoTaggingExtension
201- .builder()
170+ UnnamedSchemaWithArrayParent3 .ofAutoTaggingExtension(
171+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .builder()
202172 .maxTags(10L )
203173 .minConfidence(80L )
204174 .name(
205- FileUpdateParams .Update .UpdateFileDetails .Extension
206- .AutoTaggingExtension
207- .Name
175+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .Name
208176 .GOOGLE_AUTO_TAGGING
209177 )
210178 .build()
211179 ),
212- FileUpdateParams .Update .UpdateFileDetails .Extension .ofAutoTagging(
213- FileUpdateParams .Update .UpdateFileDetails .Extension
214- .AutoTaggingExtension
215- .builder()
180+ UnnamedSchemaWithArrayParent3 .ofAutoTaggingExtension(
181+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .builder()
216182 .maxTags(10L )
217183 .minConfidence(80L )
218184 .name(
219- FileUpdateParams .Update .UpdateFileDetails .Extension
220- .AutoTaggingExtension
221- .Name
185+ UnnamedSchemaWithArrayParent3 .AutoTaggingExtension .Name
222186 .AWS_AUTO_TAGGING
223187 )
224188 .build()
225189 ),
226- FileUpdateParams .Update .UpdateFileDetails .Extension
227- .ofAiAutoDescription(),
190+ UnnamedSchemaWithArrayParent3 .ofAiAutoDescription(),
228191 )
229192 )
230193 .removeAiTagsOfStrings(listOf (" car" , " vehicle" , " motorsports" ))
0 commit comments