-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernise Worker methods and conventions #1137
Modernise Worker methods and conventions #1137
Conversation
changelog detected ✅ |
Updates all the available Workers endpoints to follow the new method signatures and conventions for calling the API.
Updates all the available Workers endpoints to follow the new method signatures and conventions for calling the API.
45fb88f
to
1c2393c
Compare
Codecov Report
@@ Coverage Diff @@
## master #1137 +/- ##
==========================================
- Coverage 50.11% 49.66% -0.45%
==========================================
Files 121 125 +4
Lines 11722 12005 +283
==========================================
+ Hits 5874 5962 +88
- Misses 4565 4698 +133
- Partials 1283 1345 +62
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
return WorkerRouteResponse{}, ErrMissingIdentifier | ||
} | ||
|
||
uri := fmt.Sprintf("/zones/%s/workers/routes", rc.Identifier) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worker routes still use the /workers/routes
endpoint instead of the services route as that isn't documented. once we have that documented, we can swap it over.
This functionality has been released in v0.57.0. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
For the 4.x release of the Terraform provider, we are removing the global
api.AccountID
that is configured on the client due to ongoing issues with it (see cloudflare/terraform-provider-cloudflare#1646). Workers are the last set of methods that rely on this behaviour 🌟In doing this, we're also modernising the methods to match our future conventions and method signatures outlined for the experimental client.
This should be pretty well 1:1 functionality wise as everything Workers related is now accessible on the account resource level instead of the older split between zone/account for non-ent and enterprise configurations. The other major change here is that now the various parts of the Workers ecosystem are in their own files so that we can start to assign specific ownership rules instead of lumping it all together.