V2.0a17#77
Merged
Merged
Conversation
added 9 commits
March 24, 2026 13:03
…ber to match API behaviour
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This release introduces transient error retry with exponential backoff in the HTTP layer, refactors device attribute initialization, expands the known cluster URL registry, and updates getting-started documentation to clarify authentication prerequisites.
New Features
request_urlnow automatically retries on transient transport failures (DNS errors, connection failures, timeouts, proxy errors) with exponential backoff up to 3 attemptsRETRY_MAX_RETRIES,RETRY_INITIAL_BACKOFF,RETRY_BACKOFF_MULTIPLIER, andTRANSIENT_TRANSPORT_ERRORSconstants tobase.pyResponseErrorwithout retrying_resolve_base_urlnow validates the resolved URL against known cluster URLsUserWarningif the URL is not a recognized Central cluster, expected for Central-On Prem & other non-production environmentsImprovements
self.materialized = Falseinitialization at the top ofDevice.__init__for clarityfrom_apibranch inDevice.__init__now raisesValueErrorifdevice_attributesisNone, preventing silent failuressetattrcalls inDevice.__init__with new_apply_api_attributes()helper methodDevice.get()now usesfilter_str="serialNumber eq {serial}"instead of thesearch=parameter to match updated API behaviorCLUSTER_BASE_URLSinconstants.pywith changes to API Gateway Base URLs_return_client_credentialsmethod frombase.pyAuthentication&Quickstartguide