@@ -5,33 +5,42 @@ def api_v4(self):
55
66 # The API commands for /user/
77 user (self )
8+ user_audit_logs (self )
89 user_load_balancers (self )
10+ user_load_balancing_analytics (self )
911 user_virtual_dns (self )
12+
1013 # The API commands for /zones/
1114 zones (self )
12- zones_settings (self )
15+ zones_amp (self )
1316 zones_analytics (self )
17+ zones_argo (self )
18+ zones_dns_analytics (self )
19+ zones_dnssec (self )
1420 zones_firewall (self )
21+ zones_load_balancers (self )
22+ zones_logs (self )
1523 zones_rate_limits (self )
16- zones_amp (self )
24+ zones_settings (self )
25+ zones_ssl (self )
26+
1727 # The API commands for /railguns/
1828 railguns (self )
29+
1930 # The API commands for /organizations/
2031 organizations (self )
32+ organizations_audit_logs (self )
2133 organizations_virtual_dns (self )
34+
2235 # The API commands for /certificates/
2336 certificates (self )
37+
2438 # The API commands for /ips/
2539 ips (self )
26- # The API commands for /zones/:zone_id/argo
27- zones_argo (self )
28- # The API commands for /zones/:zone_id/dnssec
29- zones_dnssec (self )
30- # The API commands for /zones/:zone_id/ssl
31- zones_ssl (self )
32- # The API commands for CLB /zones/:zone_id/load_balancers & /user/load_balancers
33- zones_load_balancers (self )
34- zones_dns_analytics (self )
40+
41+ # The API commands for /account/
42+ account (self )
43+ account_load_balancing_analytics (self )
3544
3645def user (self ):
3746 """ API core commands for Cloudflare API"""
@@ -279,6 +288,20 @@ def zones_amp(self):
279288 setattr (branch , "viewer" ,
280289 self ._add_with_auth (base , "zones" , "amp/viewer" ))
281290
291+ def zones_logs (self ):
292+ """ API core commands for Cloudflare API"""
293+
294+ base = self ._base
295+ branch = self .zones
296+ setattr (branch , "logs" ,
297+ self ._add_unused (base , "zones" , "logs" ))
298+ branch = self .zones .logs
299+ setattr (branch , "received" ,
300+ self ._add_with_auth_unwrapped (base , "zones" , "logs/received" ))
301+ branch = self .zones .logs .received
302+ setattr (branch , "fields" ,
303+ self ._add_with_auth_unwrapped (base , "zones" , "logs/received/fields" ))
304+
282305def railguns (self ):
283306 """ API core commands for Cloudflare API"""
284307
@@ -320,7 +343,7 @@ def organizations(self):
320343 self ._add_with_auth (base , "organizations" , "firewall/access_rules/rules" ))
321344 branch = self .organizations
322345 setattr (branch , "load_balancers" ,
323- self ._add_with_auth (base , "organizations" , "load_balancers" ))
346+ self ._add_unused (base , "organizations" , "load_balancers" ))
324347 branch = self .organizations .load_balancers
325348 setattr (branch , "monitors" ,
326349 self ._add_with_auth (base , "organizations" , "load_balancers/monitors" ))
@@ -376,6 +399,11 @@ def zones_ssl(self):
376399 self ._add_with_auth (base , "zones" , "ssl/certificate_packs" ))
377400 setattr (branch , "verification" ,
378401 self ._add_with_auth (base , "zones" , "ssl/verification" ))
402+ setattr (branch , "universal" ,
403+ self ._add_unused (base , "zones" , "ssl/universal" ))
404+ branch = self .zones .ssl .universal
405+ setattr (branch , "settings" ,
406+ self ._add_with_auth (base , "zones" , "ssl/universal/settings" ))
379407
380408def zones_load_balancers (self ):
381409 """ API core commands for Cloudflare API"""
@@ -432,3 +460,52 @@ def organizations_virtual_dns(self):
432460 setattr (branch , "bytime" ,
433461 self ._add_with_auth (base , "organizations" , "virtual_dns" , "dns_analytics/report/bytime" ))
434462
463+ def user_audit_logs (self ):
464+ """ API core commands for Cloudflare API"""
465+
466+ base = self ._base
467+ branch = self .user
468+ setattr (branch , "audit_logs" ,
469+ self ._add_with_auth (base , "user/audit_logs" ))
470+
471+ def user_load_balancing_analytics (self ):
472+ """ API core commands for Cloudflare API"""
473+
474+ base = self ._base
475+ branch = self .user
476+ setattr (branch , "load_balancing_analytics" ,
477+ self ._add_unused (base , "user/load_balancing_analytics" ))
478+ branch = self .user .load_balancing_analytics
479+ setattr (branch , "events" ,
480+ self ._add_with_auth (base , "user/load_balancing_analytics/events" ))
481+ setattr (branch , "entities" ,
482+ self ._add_with_auth (base , "user/load_balancing_analytics/entities" ))
483+
484+ def organizations_audit_logs (self ):
485+ """ API core commands for Cloudflare API"""
486+
487+ base = self ._base
488+ branch = self .organizations
489+ setattr (branch , "audit_logs" ,
490+ self ._add_with_auth (base , "organizations" , "audit_logs" ))
491+
492+ def account (self ):
493+ """ API core commands for Cloudflare API"""
494+
495+ base = self ._base
496+ setattr (self , "account" ,
497+ self ._add_unused (base , "account" ))
498+
499+ def account_load_balancing_analytics (self ):
500+ """ API core commands for Cloudflare API"""
501+
502+ base = self ._base
503+ branch = self .account
504+ setattr (branch , "load_balancing_analytics" ,
505+ self ._add_unused (base , "account" , "load_balancing_analytics" ))
506+ branch = self .account .load_balancing_analytics
507+ setattr (branch , "events" ,
508+ self ._add_with_auth (base , "account" , "load_balancing_analytics/events" ))
509+ setattr (branch , "entities" ,
510+ self ._add_with_auth (base , "account" , "load_balancing_analytics/entities" ))
511+
0 commit comments