Skip to content

Commit 844ba48

Browse files
feat(api): api update
1 parent 531c66e commit 844ba48

File tree

2 files changed

+68
-56
lines changed

2 files changed

+68
-56
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1791
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-04598b2a76abd8c4bd5004d99b78cca95c8875378e3dfe9ed3694aa4cc498a7a.yml
3-
openapi_spec_hash: 7406209d814d3c3df2c293018e615083
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a049f02057be457955eb8cb3db64ec8d94091674ee1169ada9e9cfcda180d693.yml
3+
openapi_spec_hash: 9bc9cd7b48ee53676b69cb181d54674b
44
config_hash: de4c81cee29cd7dd907279e8916b334f

src/resources/zero-trust/gateway/certificates.ts

Lines changed: 66 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,14 @@ export interface CertificateCreateResponse {
175175
id?: string;
176176

177177
/**
178-
* The deployment status of the certificate on Cloudflare's edge. Certificates in
179-
* the 'available' (previously called 'active') state may be used for Gateway TLS
180-
* interception.
178+
* The read only deployment status of the certificate on Cloudflare's edge.
179+
* Certificates in the 'available' (previously called 'active') state may be used
180+
* for Gateway TLS interception.
181181
*/
182182
binding_status?: 'pending_deployment' | 'available' | 'pending_deletion' | 'inactive';
183183

184184
/**
185-
* The CA certificate
185+
* The CA certificate(read only).
186186
*/
187187
certificate?: string;
188188

@@ -191,27 +191,29 @@ export interface CertificateCreateResponse {
191191
expires_on?: string;
192192

193193
/**
194-
* The SHA256 fingerprint of the certificate.
194+
* The SHA256 fingerprint of the certificate(read only).
195195
*/
196196
fingerprint?: string;
197197

198198
/**
199-
* Use this certificate for Gateway TLS interception
199+
* Read-only field that shows whether Gateway TLS interception is using this
200+
* certificate. This value cannot be set directly. To configure the certificate for
201+
* interception, use the Gateway configuration setting named certificate.
200202
*/
201203
in_use?: boolean;
202204

203205
/**
204-
* The organization that issued the certificate.
206+
* The organization that issued the certificate(read only).
205207
*/
206208
issuer_org?: string;
207209

208210
/**
209-
* The entire issuer field of the certificate.
211+
* The entire issuer field of the certificate(read only).
210212
*/
211213
issuer_raw?: string;
212214

213215
/**
214-
* The type of certificate, either BYO-PKI (custom) or Gateway-managed.
216+
* The type of certificate, either BYO-PKI (custom) or Gateway-managed(read only).
215217
*/
216218
type?: 'custom' | 'gateway_managed';
217219

@@ -227,14 +229,14 @@ export interface CertificateListResponse {
227229
id?: string;
228230

229231
/**
230-
* The deployment status of the certificate on Cloudflare's edge. Certificates in
231-
* the 'available' (previously called 'active') state may be used for Gateway TLS
232-
* interception.
232+
* The read only deployment status of the certificate on Cloudflare's edge.
233+
* Certificates in the 'available' (previously called 'active') state may be used
234+
* for Gateway TLS interception.
233235
*/
234236
binding_status?: 'pending_deployment' | 'available' | 'pending_deletion' | 'inactive';
235237

236238
/**
237-
* The CA certificate
239+
* The CA certificate(read only).
238240
*/
239241
certificate?: string;
240242

@@ -243,27 +245,29 @@ export interface CertificateListResponse {
243245
expires_on?: string;
244246

245247
/**
246-
* The SHA256 fingerprint of the certificate.
248+
* The SHA256 fingerprint of the certificate(read only).
247249
*/
248250
fingerprint?: string;
249251

250252
/**
251-
* Use this certificate for Gateway TLS interception
253+
* Read-only field that shows whether Gateway TLS interception is using this
254+
* certificate. This value cannot be set directly. To configure the certificate for
255+
* interception, use the Gateway configuration setting named certificate.
252256
*/
253257
in_use?: boolean;
254258

255259
/**
256-
* The organization that issued the certificate.
260+
* The organization that issued the certificate(read only).
257261
*/
258262
issuer_org?: string;
259263

260264
/**
261-
* The entire issuer field of the certificate.
265+
* The entire issuer field of the certificate(read only).
262266
*/
263267
issuer_raw?: string;
264268

265269
/**
266-
* The type of certificate, either BYO-PKI (custom) or Gateway-managed.
270+
* The type of certificate, either BYO-PKI (custom) or Gateway-managed(read only).
267271
*/
268272
type?: 'custom' | 'gateway_managed';
269273

@@ -279,14 +283,14 @@ export interface CertificateDeleteResponse {
279283
id?: string;
280284

281285
/**
282-
* The deployment status of the certificate on Cloudflare's edge. Certificates in
283-
* the 'available' (previously called 'active') state may be used for Gateway TLS
284-
* interception.
286+
* The read only deployment status of the certificate on Cloudflare's edge.
287+
* Certificates in the 'available' (previously called 'active') state may be used
288+
* for Gateway TLS interception.
285289
*/
286290
binding_status?: 'pending_deployment' | 'available' | 'pending_deletion' | 'inactive';
287291

288292
/**
289-
* The CA certificate
293+
* The CA certificate(read only).
290294
*/
291295
certificate?: string;
292296

@@ -295,27 +299,29 @@ export interface CertificateDeleteResponse {
295299
expires_on?: string;
296300

297301
/**
298-
* The SHA256 fingerprint of the certificate.
302+
* The SHA256 fingerprint of the certificate(read only).
299303
*/
300304
fingerprint?: string;
301305

302306
/**
303-
* Use this certificate for Gateway TLS interception
307+
* Read-only field that shows whether Gateway TLS interception is using this
308+
* certificate. This value cannot be set directly. To configure the certificate for
309+
* interception, use the Gateway configuration setting named certificate.
304310
*/
305311
in_use?: boolean;
306312

307313
/**
308-
* The organization that issued the certificate.
314+
* The organization that issued the certificate(read only).
309315
*/
310316
issuer_org?: string;
311317

312318
/**
313-
* The entire issuer field of the certificate.
319+
* The entire issuer field of the certificate(read only).
314320
*/
315321
issuer_raw?: string;
316322

317323
/**
318-
* The type of certificate, either BYO-PKI (custom) or Gateway-managed.
324+
* The type of certificate, either BYO-PKI (custom) or Gateway-managed(read only).
319325
*/
320326
type?: 'custom' | 'gateway_managed';
321327

@@ -331,14 +337,14 @@ export interface CertificateActivateResponse {
331337
id?: string;
332338

333339
/**
334-
* The deployment status of the certificate on Cloudflare's edge. Certificates in
335-
* the 'available' (previously called 'active') state may be used for Gateway TLS
336-
* interception.
340+
* The read only deployment status of the certificate on Cloudflare's edge.
341+
* Certificates in the 'available' (previously called 'active') state may be used
342+
* for Gateway TLS interception.
337343
*/
338344
binding_status?: 'pending_deployment' | 'available' | 'pending_deletion' | 'inactive';
339345

340346
/**
341-
* The CA certificate
347+
* The CA certificate(read only).
342348
*/
343349
certificate?: string;
344350

@@ -347,27 +353,29 @@ export interface CertificateActivateResponse {
347353
expires_on?: string;
348354

349355
/**
350-
* The SHA256 fingerprint of the certificate.
356+
* The SHA256 fingerprint of the certificate(read only).
351357
*/
352358
fingerprint?: string;
353359

354360
/**
355-
* Use this certificate for Gateway TLS interception
361+
* Read-only field that shows whether Gateway TLS interception is using this
362+
* certificate. This value cannot be set directly. To configure the certificate for
363+
* interception, use the Gateway configuration setting named certificate.
356364
*/
357365
in_use?: boolean;
358366

359367
/**
360-
* The organization that issued the certificate.
368+
* The organization that issued the certificate(read only).
361369
*/
362370
issuer_org?: string;
363371

364372
/**
365-
* The entire issuer field of the certificate.
373+
* The entire issuer field of the certificate(read only).
366374
*/
367375
issuer_raw?: string;
368376

369377
/**
370-
* The type of certificate, either BYO-PKI (custom) or Gateway-managed.
378+
* The type of certificate, either BYO-PKI (custom) or Gateway-managed(read only).
371379
*/
372380
type?: 'custom' | 'gateway_managed';
373381

@@ -383,14 +391,14 @@ export interface CertificateDeactivateResponse {
383391
id?: string;
384392

385393
/**
386-
* The deployment status of the certificate on Cloudflare's edge. Certificates in
387-
* the 'available' (previously called 'active') state may be used for Gateway TLS
388-
* interception.
394+
* The read only deployment status of the certificate on Cloudflare's edge.
395+
* Certificates in the 'available' (previously called 'active') state may be used
396+
* for Gateway TLS interception.
389397
*/
390398
binding_status?: 'pending_deployment' | 'available' | 'pending_deletion' | 'inactive';
391399

392400
/**
393-
* The CA certificate
401+
* The CA certificate(read only).
394402
*/
395403
certificate?: string;
396404

@@ -399,27 +407,29 @@ export interface CertificateDeactivateResponse {
399407
expires_on?: string;
400408

401409
/**
402-
* The SHA256 fingerprint of the certificate.
410+
* The SHA256 fingerprint of the certificate(read only).
403411
*/
404412
fingerprint?: string;
405413

406414
/**
407-
* Use this certificate for Gateway TLS interception
415+
* Read-only field that shows whether Gateway TLS interception is using this
416+
* certificate. This value cannot be set directly. To configure the certificate for
417+
* interception, use the Gateway configuration setting named certificate.
408418
*/
409419
in_use?: boolean;
410420

411421
/**
412-
* The organization that issued the certificate.
422+
* The organization that issued the certificate(read only).
413423
*/
414424
issuer_org?: string;
415425

416426
/**
417-
* The entire issuer field of the certificate.
427+
* The entire issuer field of the certificate(read only).
418428
*/
419429
issuer_raw?: string;
420430

421431
/**
422-
* The type of certificate, either BYO-PKI (custom) or Gateway-managed.
432+
* The type of certificate, either BYO-PKI (custom) or Gateway-managed(read only).
423433
*/
424434
type?: 'custom' | 'gateway_managed';
425435

@@ -435,14 +445,14 @@ export interface CertificateGetResponse {
435445
id?: string;
436446

437447
/**
438-
* The deployment status of the certificate on Cloudflare's edge. Certificates in
439-
* the 'available' (previously called 'active') state may be used for Gateway TLS
440-
* interception.
448+
* The read only deployment status of the certificate on Cloudflare's edge.
449+
* Certificates in the 'available' (previously called 'active') state may be used
450+
* for Gateway TLS interception.
441451
*/
442452
binding_status?: 'pending_deployment' | 'available' | 'pending_deletion' | 'inactive';
443453

444454
/**
445-
* The CA certificate
455+
* The CA certificate(read only).
446456
*/
447457
certificate?: string;
448458

@@ -451,27 +461,29 @@ export interface CertificateGetResponse {
451461
expires_on?: string;
452462

453463
/**
454-
* The SHA256 fingerprint of the certificate.
464+
* The SHA256 fingerprint of the certificate(read only).
455465
*/
456466
fingerprint?: string;
457467

458468
/**
459-
* Use this certificate for Gateway TLS interception
469+
* Read-only field that shows whether Gateway TLS interception is using this
470+
* certificate. This value cannot be set directly. To configure the certificate for
471+
* interception, use the Gateway configuration setting named certificate.
460472
*/
461473
in_use?: boolean;
462474

463475
/**
464-
* The organization that issued the certificate.
476+
* The organization that issued the certificate(read only).
465477
*/
466478
issuer_org?: string;
467479

468480
/**
469-
* The entire issuer field of the certificate.
481+
* The entire issuer field of the certificate(read only).
470482
*/
471483
issuer_raw?: string;
472484

473485
/**
474-
* The type of certificate, either BYO-PKI (custom) or Gateway-managed.
486+
* The type of certificate, either BYO-PKI (custom) or Gateway-managed(read only).
475487
*/
476488
type?: 'custom' | 'gateway_managed';
477489

0 commit comments

Comments
 (0)