Add Support for Log Streams Management APIs #451
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for the Log Streams APIs available in the Management API. The following new methods are added:
Auth0\SDK\API\Management\LogStreams::getAll()
Auth0\SDK\API\Management\LogStreams::get($log_stream_id)
Auth0\SDK\API\Management\LogStreams::create($data)
Auth0\SDK\API\Management\LogStreams::update($log_stream_id, $data)
Auth0\SDK\API\Management\LogStreams::delete($log_stream_id)
References
Testing
Unit tests are added. I did develop an integration test to verify locally, but am not including it on the PR as there are limits on the number of Log Streams that can be created (limit is two), and any failure to clean up the created data or pause the Log Stream would lead to unnecessary resource usage.
Checklist
master