@@ -11,6 +11,8 @@ def api_v4(self):
1111 zones_analytics (self )
1212 zones_firewall (self )
1313 zones_rate_limits (self )
14+ zones_dns_analytics (self )
15+ zones_amp (self )
1416 # The API commands for /railguns/
1517 railguns (self )
1618 # The API commands for /organizations/
@@ -239,6 +241,31 @@ def zones_rate_limits(self):
239241 setattr (branch , "rate_limits" ,
240242 self ._add_with_auth (base , "zones" , "rate_limits" ))
241243
244+ def zones_dns_analytics (self ):
245+ """ API core commands for Cloudflare API"""
246+
247+ base = self ._base
248+ branch = getattr (self , "zones" )
249+ setattr (branch , "dns_analytics" ,
250+ self ._add_unused (base , "zones" , "dns_analytics" ))
251+ branch = getattr (getattr (self , "zones" ), "dns_analytics" )
252+ setattr (branch , "report" ,
253+ self ._add_with_auth (base , "zones" , "dns_analytics/report" ))
254+ branch = getattr (getattr (getattr (self , "zones" ), "dns_analytics" ), "report" )
255+ setattr (branch , "bytime" ,
256+ self ._add_with_auth (base , "zones" , "dns_analytics/report/bytime" ))
257+
258+ def zones_amp (self ):
259+ """ API core commands for Cloudflare API"""
260+
261+ base = self ._base
262+ branch = getattr (self , "zones" )
263+ setattr (branch , "amp" ,
264+ self ._add_unused (base , "zones" , "amp" ))
265+ branch = getattr (getattr (self , "zones" ), "amp" )
266+ setattr (branch , "viewer" ,
267+ self ._add_with_auth (base , "zones" , "amp/viewer" ))
268+
242269def railguns (self ):
243270 """ API core commands for Cloudflare API"""
244271
0 commit comments