Skip to content

Commit a915dbf

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat: OpenAPI spec update via Stainless API (#117)
1 parent 37b3038 commit a915dbf

File tree

3 files changed

+254
-32
lines changed

3 files changed

+254
-32
lines changed

src/cloudflare/types/pages/pages_projects.py

+120-12
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,55 @@
1818
"DeploymentConfigsPreviewAIBindingsAIBinding",
1919
"DeploymentConfigsPreviewAnalyticsEngineDatasets",
2020
"DeploymentConfigsPreviewAnalyticsEngineDatasetsAnalyticsEngineBinding",
21+
"DeploymentConfigsPreviewBrowsers",
2122
"DeploymentConfigsPreviewD1Databases",
2223
"DeploymentConfigsPreviewD1DatabasesD1Binding",
2324
"DeploymentConfigsPreviewDurableObjectNamespaces",
2425
"DeploymentConfigsPreviewDurableObjectNamespacesDoBinding",
2526
"DeploymentConfigsPreviewEnvVars",
2627
"DeploymentConfigsPreviewEnvVarsEnvironmentVariable",
28+
"DeploymentConfigsPreviewHyperdriveBindings",
29+
"DeploymentConfigsPreviewHyperdriveBindingsHyperdrive",
2730
"DeploymentConfigsPreviewKVNamespaces",
2831
"DeploymentConfigsPreviewKVNamespacesKVBinding",
32+
"DeploymentConfigsPreviewMTLSCertificates",
33+
"DeploymentConfigsPreviewMTLSCertificatesMTLS",
2934
"DeploymentConfigsPreviewPlacement",
3035
"DeploymentConfigsPreviewQueueProducers",
3136
"DeploymentConfigsPreviewQueueProducersQueueProducerBinding",
3237
"DeploymentConfigsPreviewR2Buckets",
3338
"DeploymentConfigsPreviewR2BucketsR2Binding",
34-
"DeploymentConfigsPreviewServiceBindings",
35-
"DeploymentConfigsPreviewServiceBindingsServiceBinding",
39+
"DeploymentConfigsPreviewServices",
40+
"DeploymentConfigsPreviewServicesServiceBinding",
41+
"DeploymentConfigsPreviewVectorizeBindings",
42+
"DeploymentConfigsPreviewVectorizeBindingsVectorize",
3643
"DeploymentConfigsProduction",
3744
"DeploymentConfigsProductionAIBindings",
3845
"DeploymentConfigsProductionAIBindingsAIBinding",
3946
"DeploymentConfigsProductionAnalyticsEngineDatasets",
4047
"DeploymentConfigsProductionAnalyticsEngineDatasetsAnalyticsEngineBinding",
48+
"DeploymentConfigsProductionBrowsers",
4149
"DeploymentConfigsProductionD1Databases",
4250
"DeploymentConfigsProductionD1DatabasesD1Binding",
4351
"DeploymentConfigsProductionDurableObjectNamespaces",
4452
"DeploymentConfigsProductionDurableObjectNamespacesDoBinding",
4553
"DeploymentConfigsProductionEnvVars",
4654
"DeploymentConfigsProductionEnvVarsEnvironmentVariable",
55+
"DeploymentConfigsProductionHyperdriveBindings",
56+
"DeploymentConfigsProductionHyperdriveBindingsHyperdrive",
4757
"DeploymentConfigsProductionKVNamespaces",
4858
"DeploymentConfigsProductionKVNamespacesKVBinding",
59+
"DeploymentConfigsProductionMTLSCertificates",
60+
"DeploymentConfigsProductionMTLSCertificatesMTLS",
4961
"DeploymentConfigsProductionPlacement",
5062
"DeploymentConfigsProductionQueueProducers",
5163
"DeploymentConfigsProductionQueueProducersQueueProducerBinding",
5264
"DeploymentConfigsProductionR2Buckets",
5365
"DeploymentConfigsProductionR2BucketsR2Binding",
54-
"DeploymentConfigsProductionServiceBindings",
55-
"DeploymentConfigsProductionServiceBindingsServiceBinding",
66+
"DeploymentConfigsProductionServices",
67+
"DeploymentConfigsProductionServicesServiceBinding",
68+
"DeploymentConfigsProductionVectorizeBindings",
69+
"DeploymentConfigsProductionVectorizeBindingsVectorize",
5670
]
5771

5872

@@ -97,6 +111,11 @@ class DeploymentConfigsPreviewAnalyticsEngineDatasets(BaseModel):
97111
"""Analytics Engine binding."""
98112

99113

114+
class DeploymentConfigsPreviewBrowsers(BaseModel):
115+
browser: Optional[object] = FieldInfo(alias="BROWSER", default=None)
116+
"""Browser binding."""
117+
118+
100119
class DeploymentConfigsPreviewD1DatabasesD1Binding(BaseModel):
101120
id: Optional[str] = None
102121
"""UUID of the D1 database."""
@@ -134,6 +153,17 @@ class DeploymentConfigsPreviewEnvVars(BaseModel):
134153
"""Environment variable."""
135154

136155

156+
class DeploymentConfigsPreviewHyperdriveBindingsHyperdrive(BaseModel):
157+
id: Optional[str] = None
158+
159+
160+
class DeploymentConfigsPreviewHyperdriveBindings(BaseModel):
161+
hyperdrive: Optional[DeploymentConfigsPreviewHyperdriveBindingsHyperdrive] = FieldInfo(
162+
alias="HYPERDRIVE", default=None
163+
)
164+
"""Hyperdrive binding."""
165+
166+
137167
class DeploymentConfigsPreviewKVNamespacesKVBinding(BaseModel):
138168
namespace_id: Optional[str] = None
139169
"""ID of the KV namespace."""
@@ -144,6 +174,15 @@ class DeploymentConfigsPreviewKVNamespaces(BaseModel):
144174
"""KV binding."""
145175

146176

177+
class DeploymentConfigsPreviewMTLSCertificatesMTLS(BaseModel):
178+
certificate_id: Optional[str] = None
179+
180+
181+
class DeploymentConfigsPreviewMTLSCertificates(BaseModel):
182+
mtls: Optional[DeploymentConfigsPreviewMTLSCertificatesMTLS] = FieldInfo(alias="MTLS", default=None)
183+
"""mTLS binding."""
184+
185+
147186
class DeploymentConfigsPreviewPlacement(BaseModel):
148187
mode: Optional[str] = None
149188
"""Placement mode."""
@@ -171,28 +210,40 @@ class DeploymentConfigsPreviewR2Buckets(BaseModel):
171210
"""R2 binding."""
172211

173212

174-
class DeploymentConfigsPreviewServiceBindingsServiceBinding(BaseModel):
213+
class DeploymentConfigsPreviewServicesServiceBinding(BaseModel):
175214
environment: Optional[str] = None
176215
"""The Service environment."""
177216

178217
service: Optional[str] = None
179218
"""The Service name."""
180219

181220

182-
class DeploymentConfigsPreviewServiceBindings(BaseModel):
183-
service_binding: Optional[DeploymentConfigsPreviewServiceBindingsServiceBinding] = FieldInfo(
221+
class DeploymentConfigsPreviewServices(BaseModel):
222+
service_binding: Optional[DeploymentConfigsPreviewServicesServiceBinding] = FieldInfo(
184223
alias="SERVICE_BINDING", default=None
185224
)
186225
"""Service binding."""
187226

188227

228+
class DeploymentConfigsPreviewVectorizeBindingsVectorize(BaseModel):
229+
index_name: Optional[str] = None
230+
231+
232+
class DeploymentConfigsPreviewVectorizeBindings(BaseModel):
233+
vectorize: Optional[DeploymentConfigsPreviewVectorizeBindingsVectorize] = FieldInfo(alias="VECTORIZE", default=None)
234+
"""Vectorize binding."""
235+
236+
189237
class DeploymentConfigsPreview(BaseModel):
190238
ai_bindings: Optional[DeploymentConfigsPreviewAIBindings] = None
191239
"""Constellation bindings used for Pages Functions."""
192240

193241
analytics_engine_datasets: Optional[DeploymentConfigsPreviewAnalyticsEngineDatasets] = None
194242
"""Analytics Engine bindings used for Pages Functions."""
195243

244+
browsers: Optional[DeploymentConfigsPreviewBrowsers] = None
245+
"""Browser bindings used for Pages Functions."""
246+
196247
compatibility_date: Optional[str] = None
197248
"""Compatibility date used for Pages Functions."""
198249

@@ -208,9 +259,15 @@ class DeploymentConfigsPreview(BaseModel):
208259
env_vars: Optional[DeploymentConfigsPreviewEnvVars] = None
209260
"""Environment variables for build configs."""
210261

262+
hyperdrive_bindings: Optional[DeploymentConfigsPreviewHyperdriveBindings] = None
263+
"""Hyperdrive bindings used for Pages Functions."""
264+
211265
kv_namespaces: Optional[DeploymentConfigsPreviewKVNamespaces] = None
212266
"""KV namespaces used for Pages Functions."""
213267

268+
mtls_certificates: Optional[DeploymentConfigsPreviewMTLSCertificates] = None
269+
"""mTLS bindings used for Pages Functions."""
270+
214271
placement: Optional[DeploymentConfigsPreviewPlacement] = None
215272
"""Placement setting used for Pages Functions."""
216273

@@ -220,9 +277,12 @@ class DeploymentConfigsPreview(BaseModel):
220277
r2_buckets: Optional[DeploymentConfigsPreviewR2Buckets] = None
221278
"""R2 buckets used for Pages Functions."""
222279

223-
service_bindings: Optional[DeploymentConfigsPreviewServiceBindings] = None
280+
services: Optional[DeploymentConfigsPreviewServices] = None
224281
"""Services used for Pages Functions."""
225282

283+
vectorize_bindings: Optional[DeploymentConfigsPreviewVectorizeBindings] = None
284+
"""Vectorize bindings used for Pages Functions."""
285+
226286

227287
class DeploymentConfigsProductionAIBindingsAIBinding(BaseModel):
228288
project_id: Optional[object] = None
@@ -245,6 +305,11 @@ class DeploymentConfigsProductionAnalyticsEngineDatasets(BaseModel):
245305
"""Analytics Engine binding."""
246306

247307

308+
class DeploymentConfigsProductionBrowsers(BaseModel):
309+
browser: Optional[object] = FieldInfo(alias="BROWSER", default=None)
310+
"""Browser binding."""
311+
312+
248313
class DeploymentConfigsProductionD1DatabasesD1Binding(BaseModel):
249314
id: Optional[str] = None
250315
"""UUID of the D1 database."""
@@ -282,6 +347,17 @@ class DeploymentConfigsProductionEnvVars(BaseModel):
282347
"""Environment variable."""
283348

284349

350+
class DeploymentConfigsProductionHyperdriveBindingsHyperdrive(BaseModel):
351+
id: Optional[str] = None
352+
353+
354+
class DeploymentConfigsProductionHyperdriveBindings(BaseModel):
355+
hyperdrive: Optional[DeploymentConfigsProductionHyperdriveBindingsHyperdrive] = FieldInfo(
356+
alias="HYPERDRIVE", default=None
357+
)
358+
"""Hyperdrive binding."""
359+
360+
285361
class DeploymentConfigsProductionKVNamespacesKVBinding(BaseModel):
286362
namespace_id: Optional[str] = None
287363
"""ID of the KV namespace."""
@@ -292,6 +368,15 @@ class DeploymentConfigsProductionKVNamespaces(BaseModel):
292368
"""KV binding."""
293369

294370

371+
class DeploymentConfigsProductionMTLSCertificatesMTLS(BaseModel):
372+
certificate_id: Optional[str] = None
373+
374+
375+
class DeploymentConfigsProductionMTLSCertificates(BaseModel):
376+
mtls: Optional[DeploymentConfigsProductionMTLSCertificatesMTLS] = FieldInfo(alias="MTLS", default=None)
377+
"""mTLS binding."""
378+
379+
295380
class DeploymentConfigsProductionPlacement(BaseModel):
296381
mode: Optional[str] = None
297382
"""Placement mode."""
@@ -319,28 +404,42 @@ class DeploymentConfigsProductionR2Buckets(BaseModel):
319404
"""R2 binding."""
320405

321406

322-
class DeploymentConfigsProductionServiceBindingsServiceBinding(BaseModel):
407+
class DeploymentConfigsProductionServicesServiceBinding(BaseModel):
323408
environment: Optional[str] = None
324409
"""The Service environment."""
325410

326411
service: Optional[str] = None
327412
"""The Service name."""
328413

329414

330-
class DeploymentConfigsProductionServiceBindings(BaseModel):
331-
service_binding: Optional[DeploymentConfigsProductionServiceBindingsServiceBinding] = FieldInfo(
415+
class DeploymentConfigsProductionServices(BaseModel):
416+
service_binding: Optional[DeploymentConfigsProductionServicesServiceBinding] = FieldInfo(
332417
alias="SERVICE_BINDING", default=None
333418
)
334419
"""Service binding."""
335420

336421

422+
class DeploymentConfigsProductionVectorizeBindingsVectorize(BaseModel):
423+
index_name: Optional[str] = None
424+
425+
426+
class DeploymentConfigsProductionVectorizeBindings(BaseModel):
427+
vectorize: Optional[DeploymentConfigsProductionVectorizeBindingsVectorize] = FieldInfo(
428+
alias="VECTORIZE", default=None
429+
)
430+
"""Vectorize binding."""
431+
432+
337433
class DeploymentConfigsProduction(BaseModel):
338434
ai_bindings: Optional[DeploymentConfigsProductionAIBindings] = None
339435
"""Constellation bindings used for Pages Functions."""
340436

341437
analytics_engine_datasets: Optional[DeploymentConfigsProductionAnalyticsEngineDatasets] = None
342438
"""Analytics Engine bindings used for Pages Functions."""
343439

440+
browsers: Optional[DeploymentConfigsProductionBrowsers] = None
441+
"""Browser bindings used for Pages Functions."""
442+
344443
compatibility_date: Optional[str] = None
345444
"""Compatibility date used for Pages Functions."""
346445

@@ -356,9 +455,15 @@ class DeploymentConfigsProduction(BaseModel):
356455
env_vars: Optional[DeploymentConfigsProductionEnvVars] = None
357456
"""Environment variables for build configs."""
358457

458+
hyperdrive_bindings: Optional[DeploymentConfigsProductionHyperdriveBindings] = None
459+
"""Hyperdrive bindings used for Pages Functions."""
460+
359461
kv_namespaces: Optional[DeploymentConfigsProductionKVNamespaces] = None
360462
"""KV namespaces used for Pages Functions."""
361463

464+
mtls_certificates: Optional[DeploymentConfigsProductionMTLSCertificates] = None
465+
"""mTLS bindings used for Pages Functions."""
466+
362467
placement: Optional[DeploymentConfigsProductionPlacement] = None
363468
"""Placement setting used for Pages Functions."""
364469

@@ -368,9 +473,12 @@ class DeploymentConfigsProduction(BaseModel):
368473
r2_buckets: Optional[DeploymentConfigsProductionR2Buckets] = None
369474
"""R2 buckets used for Pages Functions."""
370475

371-
service_bindings: Optional[DeploymentConfigsProductionServiceBindings] = None
476+
services: Optional[DeploymentConfigsProductionServices] = None
372477
"""Services used for Pages Functions."""
373478

479+
vectorize_bindings: Optional[DeploymentConfigsProductionVectorizeBindings] = None
480+
"""Vectorize bindings used for Pages Functions."""
481+
374482

375483
class DeploymentConfigs(BaseModel):
376484
preview: Optional[DeploymentConfigsPreview] = None

0 commit comments

Comments
 (0)