@@ -96,13 +96,15 @@ export default class StorageBucketApi {
96
96
* The default value is null, which allows files with all mime types to be uploaded.
97
97
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
98
98
* @returns newly created bucket id
99
+ * @param options.icebergCatalog (private-beta) specifies whether this bucket can be used as an Iceberg data lake.
99
100
*/
100
101
async createBucket (
101
102
id : string ,
102
103
options : {
103
104
public : boolean
104
105
fileSizeLimit ?: number | string | null
105
106
allowedMimeTypes ?: string [ ] | null
107
+ icebergCatalog ?: boolean | null
106
108
} = {
107
109
public : false ,
108
110
}
@@ -126,6 +128,7 @@ export default class StorageBucketApi {
126
128
public : options . public ,
127
129
file_size_limit : options . fileSizeLimit ,
128
130
allowed_mime_types : options . allowedMimeTypes ,
131
+ iceberg_catalog : options . icebergCatalog ,
129
132
} ,
130
133
{ headers : this . headers }
131
134
)
@@ -150,13 +153,15 @@ export default class StorageBucketApi {
150
153
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
151
154
* The default value is null, which allows files with all mime types to be uploaded.
152
155
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
156
+ * @param options.icebergCatalog (private-beta) specifies whether this bucket can be used as an Iceberg data lake.
153
157
*/
154
158
async updateBucket (
155
159
id : string ,
156
160
options : {
157
161
public : boolean
158
162
fileSizeLimit ?: number | string | null
159
163
allowedMimeTypes ?: string [ ] | null
164
+ icebergCatalog ?: boolean | null
160
165
}
161
166
) : Promise <
162
167
| {
@@ -178,6 +183,7 @@ export default class StorageBucketApi {
178
183
public : options . public ,
179
184
file_size_limit : options . fileSizeLimit ,
180
185
allowed_mime_types : options . allowedMimeTypes ,
186
+ iceberg_catalog : options . icebergCatalog ,
181
187
} ,
182
188
{ headers : this . headers }
183
189
)
0 commit comments