@@ -41,7 +41,7 @@ func TestUserAgentHeader(t *testing.T) {
41
41
},
42
42
}),
43
43
)
44
- client .Files .Upload (context .Background (), imagekit.FileUploadParams {
44
+ client .Files .Upload (context .Background (), imagekit.FileUploadParamsFileUploadV1 {
45
45
File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
46
46
FileName : "file-name.jpg" ,
47
47
})
@@ -69,7 +69,7 @@ func TestRetryAfter(t *testing.T) {
69
69
},
70
70
}),
71
71
)
72
- _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParams {
72
+ _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParamsFileUploadV1 {
73
73
File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
74
74
FileName : "file-name.jpg" ,
75
75
})
@@ -108,7 +108,7 @@ func TestDeleteRetryCountHeader(t *testing.T) {
108
108
}),
109
109
option .WithHeaderDel ("X-Stainless-Retry-Count" ),
110
110
)
111
- _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParams {
111
+ _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParamsFileUploadV1 {
112
112
File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
113
113
FileName : "file-name.jpg" ,
114
114
})
@@ -142,7 +142,7 @@ func TestOverwriteRetryCountHeader(t *testing.T) {
142
142
}),
143
143
option .WithHeader ("X-Stainless-Retry-Count" , "42" ),
144
144
)
145
- _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParams {
145
+ _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParamsFileUploadV1 {
146
146
File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
147
147
FileName : "file-name.jpg" ,
148
148
})
@@ -175,7 +175,7 @@ func TestRetryAfterMs(t *testing.T) {
175
175
},
176
176
}),
177
177
)
178
- _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParams {
178
+ _ , err := client .Files .Upload (context .Background (), imagekit.FileUploadParamsFileUploadV1 {
179
179
File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
180
180
FileName : "file-name.jpg" ,
181
181
})
@@ -202,7 +202,7 @@ func TestContextCancel(t *testing.T) {
202
202
)
203
203
cancelCtx , cancel := context .WithCancel (context .Background ())
204
204
cancel ()
205
- _ , err := client .Files .Upload (cancelCtx , imagekit.FileUploadParams {
205
+ _ , err := client .Files .Upload (cancelCtx , imagekit.FileUploadParamsFileUploadV1 {
206
206
File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
207
207
FileName : "file-name.jpg" ,
208
208
})
@@ -226,7 +226,7 @@ func TestContextCancelDelay(t *testing.T) {
226
226
)
227
227
cancelCtx , cancel := context .WithTimeout (context .Background (), 2 * time .Millisecond )
228
228
defer cancel ()
229
- _ , err := client .Files .Upload (cancelCtx , imagekit.FileUploadParams {
229
+ _ , err := client .Files .Upload (cancelCtx , imagekit.FileUploadParamsFileUploadV1 {
230
230
File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
231
231
FileName : "file-name.jpg" ,
232
232
})
@@ -256,7 +256,7 @@ func TestContextDeadline(t *testing.T) {
256
256
},
257
257
}),
258
258
)
259
- _ , err := client .Files .Upload (deadlineCtx , imagekit.FileUploadParams {
259
+ _ , err := client .Files .Upload (deadlineCtx , imagekit.FileUploadParamsFileUploadV1 {
260
260
File : io .Reader (bytes .NewBuffer ([]byte ("https://www.example.com/public-url.jpg" ))),
261
261
FileName : "file-name.jpg" ,
262
262
})
0 commit comments