You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ListZoneLockdowns should paginate through the results and return all ZoneLockdowns. It is especially important in cf-terraforming, that we can generate every zone lockdowns.
@jacobbednarz the documentation mentions Nested methods and services like client.Zones.List(). But I haven't found any case like that. Shall I update ZoneLockedowns similarly? client.ZoneLockdown.List()
@jacobbednarz the documentation mentions Nested methods and services like client.Zones.List(). But I haven't found any case like that. Shall I update ZoneLockedowns similarly? client.ZoneLockdown.List()
https://github.com/cloudflare/cloudflare-go/blob/master/zones.go is an example of this pattern however, we shouldn't be taking that just yet. it's only available on the experimental client that we are still ironing out. you should use the tunnels examples and put the methods on the global client.
Should we focus on a similar signature where we define different params type similar to (TunnelCreateParams, TunnelUpdateParams)
yep, this. we want the methods to accept their own parameter structs as new resources don't always have the same parameters as an existing resource that needs to be updated in place.
Current cloudflare-go version
latest
Description
ListZoneLockdowns
should paginate through the results and return allZoneLockdowns
. It is especially important in cf-terraforming, that we can generate every zone lockdowns.Also, taking the chance to bring methods to a common method signature, based on https://github.com/cloudflare/cloudflare-go/blob/master/docs/experimental.md
@jacobbednarz the documentation mentions
Nested methods and services
likeclient.Zones.List()
. But I haven't found any case like that. Shall I update ZoneLockedowns similarly?client.ZoneLockdown.List()
Also, in the example you shared: https://github.com/cloudflare/cloudflare-go/blob/master/tunnel.go some method signatures differ from what the documentation suggests (sort of).
Should we focus on a similar signature where we define different params type similar to (
TunnelCreateParams, TunnelUpdateParams
)Or should we use a more standard example like:
Use cases
cf-terraforming has to generate every zone lockdown.
Potential cloudflare-go usage
-
References
No response
The text was updated successfully, but these errors were encountered: