@@ -9,6 +9,7 @@ def api_v4(self):
9
9
user_load_balancers (self )
10
10
user_load_balancing_analytics (self )
11
11
user_virtual_dns (self )
12
+ user_workers (self )
12
13
13
14
# The API commands for /zones/
14
15
zones (self )
@@ -23,6 +24,7 @@ def api_v4(self):
23
24
zones_rate_limits (self )
24
25
zones_settings (self )
25
26
zones_ssl (self )
27
+ zones_workers (self )
26
28
27
29
# The API commands for /railguns/
28
30
railguns (self )
@@ -31,6 +33,7 @@ def api_v4(self):
31
33
organizations (self )
32
34
organizations_audit_logs (self )
33
35
organizations_virtual_dns (self )
36
+ organizations_workers (self )
34
37
35
38
# The API commands for /certificates/
36
39
certificates (self )
@@ -409,6 +412,21 @@ def zones_ssl(self):
409
412
setattr (branch , "settings" ,
410
413
self ._add_with_auth (base , "zones" , "ssl/universal/settings" ))
411
414
415
+ def zones_workers (self ):
416
+ """ API core commands for Cloudflare API"""
417
+
418
+ base = self ._base
419
+ branch = self .zones
420
+ setattr (branch , "workers" ,
421
+ self ._add_unused (base , "zones" , "workers" ))
422
+ branch = self .zones .workers
423
+ setattr (branch , "filters" ,
424
+ self ._add_with_auth (base , "zones" , "workers/filters" ))
425
+ setattr (branch , "routes" ,
426
+ self ._add_with_auth (base , "zones" , "workers/routes" ))
427
+ setattr (branch , "scripts" ,
428
+ self ._add_with_auth (base , "zones" , "workers/scripts" ))
429
+
412
430
def zones_load_balancers (self ):
413
431
""" API core commands for Cloudflare API"""
414
432
@@ -447,6 +465,17 @@ def user_virtual_dns(self):
447
465
setattr (branch , "bytime" ,
448
466
self ._add_with_auth (base , "user/virtual_dns" , "dns_analytics/report/bytime" ))
449
467
468
+ def user_workers (self ):
469
+ """ API core commands for Cloudflare API"""
470
+
471
+ base = self ._base
472
+ branch = self .user
473
+ setattr (branch , "workers" ,
474
+ self ._add_unused (base , "user/workers" ))
475
+ branch = self .user .workers
476
+ setattr (branch , "scripts" ,
477
+ self ._add_with_auth (base , "user/workers/scripts" ))
478
+
450
479
def organizations_virtual_dns (self ):
451
480
""" API core commands for Cloudflare API"""
452
481
@@ -493,6 +522,17 @@ def organizations_audit_logs(self):
493
522
setattr (branch , "audit_logs" ,
494
523
self ._add_with_auth (base , "organizations" , "audit_logs" ))
495
524
525
+ def organizations_workers (self ):
526
+ """ API core commands for Cloudflare API"""
527
+
528
+ base = self ._base
529
+ branch = self .organizations
530
+ setattr (branch , "workers" ,
531
+ self ._add_unused (base , "organizations" , "workers" ))
532
+ branch = self .organizations .workers
533
+ setattr (branch , "scripts" ,
534
+ self ._add_with_auth (base , "organizations" , "workers/scripts" ))
535
+
496
536
def account (self ):
497
537
""" API core commands for Cloudflare API"""
498
538
0 commit comments