mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-07 20:57:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.406.0
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: 3eeea668-4ef4-464e-a888-bdfa023bedf5
|
id: 3eeea668-4ef4-464e-a888-bdfa023bedf5
|
||||||
management:
|
management:
|
||||||
docChecksum: 1ee2e5413af07e886e33659b9b269dd5
|
docChecksum: 23094f3a9fe02710a8628ad5456f5d42
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.406.0
|
speakeasyVersion: 1.406.0
|
||||||
generationVersion: 2.429.0
|
generationVersion: 2.429.0
|
||||||
releaseVersion: 0.18.0
|
releaseVersion: 0.18.1
|
||||||
configChecksum: e357b7383fed09bd82526585e2d029a5
|
configChecksum: 27d83bc47a0500872e772670c043a30f
|
||||||
repoURL: https://github.com/LukeHagar/plexpy.git
|
repoURL: https://github.com/LukeHagar/plexpy.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
installationURL: https://github.com/LukeHagar/plexpy.git
|
installationURL: https://github.com/LukeHagar/plexpy.git
|
||||||
@@ -2084,7 +2084,7 @@ examples:
|
|||||||
speakeasy-default-get-token-details:
|
speakeasy-default-get-token-details:
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null}
|
application/json: {"adsConsent": true, "adsConsentReminderAt": 1556281940, "adsConsentSetAt": 1556281940, "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null}
|
||||||
"400":
|
"400":
|
||||||
application/json: {"errors": []}
|
application/json: {"errors": []}
|
||||||
"401":
|
"401":
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
python:
|
python:
|
||||||
version: 0.18.0
|
version: 0.18.1
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dev: {}
|
dev: {}
|
||||||
main: {}
|
main: {}
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ sources:
|
|||||||
- latest
|
- latest
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:c6ab8f13847c7cdc4ab3752f517164d7da08266726255aa0d614b1eaea66fb0e
|
sourceRevisionDigest: sha256:8d2eb3adbd97ce5976291c4b123d1eadfef62d1f6bf86c6a18bcd89443f2f390
|
||||||
sourceBlobDigest: sha256:64c7694915a0828aeb256d10d2fa0ea477681785b818916b6681be8cc5ffb93b
|
sourceBlobDigest: sha256:3e48471b7e058840fc598ccd75b2cbf8187961c7e625fe7b606555ce9a9bf109
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- main
|
- main
|
||||||
@@ -17,10 +17,10 @@ targets:
|
|||||||
plexpy:
|
plexpy:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:c6ab8f13847c7cdc4ab3752f517164d7da08266726255aa0d614b1eaea66fb0e
|
sourceRevisionDigest: sha256:8d2eb3adbd97ce5976291c4b123d1eadfef62d1f6bf86c6a18bcd89443f2f390
|
||||||
sourceBlobDigest: sha256:64c7694915a0828aeb256d10d2fa0ea477681785b818916b6681be8cc5ffb93b
|
sourceBlobDigest: sha256:3e48471b7e058840fc598ccd75b2cbf8187961c7e625fe7b606555ce9a9bf109
|
||||||
codeSamplesNamespace: code-samples-python-plexpy
|
codeSamplesNamespace: code-samples-python-plexpy
|
||||||
codeSamplesRevisionDigest: sha256:54884c9042f29a53422bd5060a7927c6d89db6df31124460f1b798ff8afe224f
|
codeSamplesRevisionDigest: sha256:4c3a9ba8019062f6e536d8db47448dda1ddd3ec48c9b39cb21e8736754e8f0b3
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -839,3 +839,13 @@ Based on:
|
|||||||
- [python v0.18.0] .
|
- [python v0.18.0] .
|
||||||
### Releases
|
### Releases
|
||||||
- [PyPI v0.18.0] https://pypi.org/project/plex-api-client/0.18.0 - .
|
- [PyPI v0.18.0] https://pypi.org/project/plex-api-client/0.18.0 - .
|
||||||
|
|
||||||
|
## 2024-10-04 00:01:22
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.406.0 (2.429.0) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [python v0.18.1] .
|
||||||
|
### Releases
|
||||||
|
- [PyPI v0.18.1] https://pypi.org/project/plex-api-client/0.18.1 - .
|
||||||
@@ -24,10 +24,10 @@ The Meta object is only included in the response if the `includeMeta` parameter
|
|||||||
| `title1` | *str* | :heavy_check_mark: | N/A | Movies |
|
| `title1` | *str* | :heavy_check_mark: | N/A | Movies |
|
||||||
| `title2` | *str* | :heavy_check_mark: | N/A | Recently Released |
|
| `title2` | *str* | :heavy_check_mark: | N/A | Recently Released |
|
||||||
| `view_group` | *str* | :heavy_check_mark: | N/A | movie |
|
| `view_group` | *str* | :heavy_check_mark: | N/A | movie |
|
||||||
| `metadata` | List[[operations.GetLibraryItemsMetadata](../../models/operations/getlibraryitemsmetadata.md)] | :heavy_check_mark: | N/A | |
|
|
||||||
| `type` | List[[operations.GetLibraryItemsType](../../models/operations/getlibraryitemstype.md)] | :heavy_minus_sign: | N/A | |
|
| `type` | List[[operations.GetLibraryItemsType](../../models/operations/getlibraryitemstype.md)] | :heavy_minus_sign: | N/A | |
|
||||||
| `field_type` | List[[operations.GetLibraryItemsFieldType](../../models/operations/getlibraryitemsfieldtype.md)] | :heavy_minus_sign: | N/A | |
|
| `field_type` | List[[operations.GetLibraryItemsFieldType](../../models/operations/getlibraryitemsfieldtype.md)] | :heavy_minus_sign: | N/A | |
|
||||||
| `nocache` | *Optional[bool]* | :heavy_minus_sign: | N/A | true |
|
| `nocache` | *Optional[bool]* | :heavy_minus_sign: | N/A | true |
|
||||||
| `view_mode` | *Optional[int]* | :heavy_minus_sign: | N/A | 65592 |
|
| `view_mode` | *Optional[int]* | :heavy_minus_sign: | N/A | 65592 |
|
||||||
| `mixed_parents` | *Optional[bool]* | :heavy_minus_sign: | N/A | true |
|
| `mixed_parents` | *Optional[bool]* | :heavy_minus_sign: | N/A | true |
|
||||||
|
| `metadata` | List[[operations.GetLibraryItemsMetadata](../../models/operations/getlibraryitemsmetadata.md)] | :heavy_minus_sign: | N/A | |
|
||||||
| `meta` | [Optional[operations.GetLibraryItemsMeta]](../../models/operations/getlibraryitemsmeta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |
|
| `meta` | [Optional[operations.GetLibraryItemsMeta]](../../models/operations/getlibraryitemsmeta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |
|
||||||
File diff suppressed because one or more lines are too long
@@ -8,8 +8,8 @@ Logged in user details
|
|||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `ads_consent` | *Nullable[bool]* | :heavy_check_mark: | Unknown | |
|
| `ads_consent` | *Nullable[bool]* | :heavy_check_mark: | Unknown | |
|
||||||
| `ads_consent_reminder_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Unknown | |
|
| `ads_consent_reminder_at` | *Nullable[int]* | :heavy_check_mark: | N/A | 1556281940 |
|
||||||
| `ads_consent_set_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Unknown | |
|
| `ads_consent_set_at` | *Nullable[int]* | :heavy_check_mark: | N/A | 1556281940 |
|
||||||
| `auth_token` | *str* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf |
|
| `auth_token` | *str* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf |
|
||||||
| `country` | *str* | :heavy_check_mark: | The account country | US |
|
| `country` | *str* | :heavy_check_mark: | The account country | US |
|
||||||
| `email` | *str* | :heavy_check_mark: | The account email address | username@email.com |
|
| `email` | *str* | :heavy_check_mark: | The account email address | username@email.com |
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -8,8 +8,8 @@ Returns the user account data with a valid auth token
|
|||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `ads_consent` | *Nullable[bool]* | :heavy_check_mark: | Unknown | |
|
| `ads_consent` | *Nullable[bool]* | :heavy_check_mark: | Unknown | |
|
||||||
| `ads_consent_reminder_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Unknown | |
|
| `ads_consent_reminder_at` | *Nullable[int]* | :heavy_check_mark: | N/A | 1556281940 |
|
||||||
| `ads_consent_set_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Unknown | |
|
| `ads_consent_set_at` | *Nullable[int]* | :heavy_check_mark: | N/A | 1556281940 |
|
||||||
| `auth_token` | *str* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf |
|
| `auth_token` | *str* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf |
|
||||||
| `country` | *str* | :heavy_check_mark: | The account country | US |
|
| `country` | *str* | :heavy_check_mark: | The account country | US |
|
||||||
| `email` | *str* | :heavy_check_mark: | The account email address | username@email.com |
|
| `email` | *str* | :heavy_check_mark: | The account email address | username@email.com |
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "plex-api-client"
|
name = "plex-api-client"
|
||||||
version = "0.18.0"
|
version = "0.18.1"
|
||||||
description = "Python Client SDK Generated by Speakeasy"
|
description = "Python Client SDK Generated by Speakeasy"
|
||||||
authors = ["Speakeasy",]
|
authors = ["Speakeasy",]
|
||||||
readme = "README-PYPI.md"
|
readme = "README-PYPI.md"
|
||||||
|
|||||||
@@ -59,14 +59,10 @@ class Activities(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -154,14 +150,10 @@ class Activities(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -256,14 +248,10 @@ class Activities(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -355,14 +343,10 @@ class Activities(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -62,14 +62,10 @@ class Authentication(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -165,14 +161,10 @@ class Authentication(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -266,14 +258,10 @@ class Authentication(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -367,14 +355,10 @@ class Authentication(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -461,14 +445,10 @@ class Authentication(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -558,14 +538,10 @@ class Authentication(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -678,14 +654,10 @@ class Authentication(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -799,14 +771,10 @@ class Authentication(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -51,14 +51,10 @@ class Butler(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -146,14 +142,10 @@ class Butler(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -246,14 +238,10 @@ class Butler(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -343,14 +331,10 @@ class Butler(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -436,14 +420,10 @@ class Butler(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -529,14 +509,10 @@ class Butler(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -633,14 +609,10 @@ class Butler(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -733,14 +705,10 @@ class Butler(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -829,14 +797,10 @@ class Butler(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -925,14 +889,10 @@ class Butler(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -61,14 +61,10 @@ class Hubs(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -166,14 +162,10 @@ class Hubs(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -272,14 +264,10 @@ class Hubs(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -365,14 +353,10 @@ class Hubs(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -461,14 +445,10 @@ class Hubs(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -570,14 +550,10 @@ class Hubs(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -61,14 +61,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -161,14 +157,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -264,14 +256,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -373,14 +361,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -475,14 +459,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -576,14 +556,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -722,14 +698,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -868,14 +840,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -970,14 +938,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1069,14 +1033,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1191,14 +1151,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1316,14 +1272,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1422,14 +1374,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1525,14 +1473,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1645,14 +1589,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1768,14 +1708,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1877,14 +1813,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1987,14 +1919,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -2091,14 +2019,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -2195,14 +2119,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -2302,14 +2222,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -2408,14 +2324,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -2514,14 +2426,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -2620,14 +2528,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -2716,14 +2620,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -2808,14 +2708,10 @@ class Library(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -65,14 +65,10 @@ class Log(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -167,14 +163,10 @@ class Log(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -282,14 +274,10 @@ class Log(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -401,14 +389,10 @@ class Log(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -494,14 +478,10 @@ class Log(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -587,14 +567,10 @@ class Log(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -58,14 +58,10 @@ class Media(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -155,14 +151,10 @@ class Media(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -252,14 +244,10 @@ class Media(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -351,14 +339,10 @@ class Media(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -457,14 +441,10 @@ class Media(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -563,14 +543,10 @@ class Media(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -664,14 +640,10 @@ class Media(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -768,14 +740,10 @@ class Media(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -872,14 +840,10 @@ class Media(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -976,14 +940,10 @@ class Media(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -1414,12 +1414,12 @@ class GetLibraryItemsMediaContainerTypedDict(TypedDict):
|
|||||||
title1: str
|
title1: str
|
||||||
title2: str
|
title2: str
|
||||||
view_group: str
|
view_group: str
|
||||||
metadata: List[GetLibraryItemsMetadataTypedDict]
|
|
||||||
type: NotRequired[List[GetLibraryItemsTypeTypedDict]]
|
type: NotRequired[List[GetLibraryItemsTypeTypedDict]]
|
||||||
field_type: NotRequired[List[GetLibraryItemsFieldTypeTypedDict]]
|
field_type: NotRequired[List[GetLibraryItemsFieldTypeTypedDict]]
|
||||||
nocache: NotRequired[bool]
|
nocache: NotRequired[bool]
|
||||||
view_mode: NotRequired[int]
|
view_mode: NotRequired[int]
|
||||||
mixed_parents: NotRequired[bool]
|
mixed_parents: NotRequired[bool]
|
||||||
|
metadata: NotRequired[List[GetLibraryItemsMetadataTypedDict]]
|
||||||
meta: NotRequired[GetLibraryItemsMetaTypedDict]
|
meta: NotRequired[GetLibraryItemsMetaTypedDict]
|
||||||
r"""The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
r"""The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||||
|
|
||||||
@@ -1461,8 +1461,6 @@ class GetLibraryItemsMediaContainer(BaseModel):
|
|||||||
|
|
||||||
view_group: Annotated[str, pydantic.Field(alias="viewGroup")]
|
view_group: Annotated[str, pydantic.Field(alias="viewGroup")]
|
||||||
|
|
||||||
metadata: Annotated[List[GetLibraryItemsMetadata], pydantic.Field(alias="Metadata")]
|
|
||||||
|
|
||||||
type: Annotated[
|
type: Annotated[
|
||||||
Optional[List[GetLibraryItemsType]], pydantic.Field(alias="Type")
|
Optional[List[GetLibraryItemsType]], pydantic.Field(alias="Type")
|
||||||
] = None
|
] = None
|
||||||
@@ -1479,6 +1477,10 @@ class GetLibraryItemsMediaContainer(BaseModel):
|
|||||||
None
|
None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
metadata: Annotated[
|
||||||
|
Optional[List[GetLibraryItemsMetadata]], pydantic.Field(alias="Metadata")
|
||||||
|
] = None
|
||||||
|
|
||||||
meta: Annotated[Optional[GetLibraryItemsMeta], pydantic.Field(alias="Meta")] = None
|
meta: Annotated[Optional[GetLibraryItemsMeta], pydantic.Field(alias="Meta")] = None
|
||||||
r"""The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
r"""The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from datetime import datetime
|
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
import httpx
|
import httpx
|
||||||
from plex_api_client.types import (
|
from plex_api_client.types import (
|
||||||
@@ -382,10 +381,8 @@ class GetTokenDetailsUserPlexAccountTypedDict(TypedDict):
|
|||||||
|
|
||||||
ads_consent: Nullable[bool]
|
ads_consent: Nullable[bool]
|
||||||
r"""Unknown"""
|
r"""Unknown"""
|
||||||
ads_consent_reminder_at: Nullable[datetime]
|
ads_consent_reminder_at: Nullable[int]
|
||||||
r"""Unknown"""
|
ads_consent_set_at: Nullable[int]
|
||||||
ads_consent_set_at: Nullable[datetime]
|
|
||||||
r"""Unknown"""
|
|
||||||
auth_token: str
|
auth_token: str
|
||||||
r"""The account token"""
|
r"""The account token"""
|
||||||
country: str
|
country: str
|
||||||
@@ -467,14 +464,12 @@ class GetTokenDetailsUserPlexAccount(BaseModel):
|
|||||||
r"""Unknown"""
|
r"""Unknown"""
|
||||||
|
|
||||||
ads_consent_reminder_at: Annotated[
|
ads_consent_reminder_at: Annotated[
|
||||||
Nullable[datetime], pydantic.Field(alias="adsConsentReminderAt")
|
Nullable[int], pydantic.Field(alias="adsConsentReminderAt")
|
||||||
]
|
]
|
||||||
r"""Unknown"""
|
|
||||||
|
|
||||||
ads_consent_set_at: Annotated[
|
ads_consent_set_at: Annotated[
|
||||||
Nullable[datetime], pydantic.Field(alias="adsConsentSetAt")
|
Nullable[int], pydantic.Field(alias="adsConsentSetAt")
|
||||||
]
|
]
|
||||||
r"""Unknown"""
|
|
||||||
|
|
||||||
auth_token: Annotated[str, pydantic.Field(alias="authToken")]
|
auth_token: Annotated[str, pydantic.Field(alias="authToken")]
|
||||||
r"""The account token"""
|
r"""The account token"""
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from datetime import datetime
|
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
import httpx
|
import httpx
|
||||||
from plex_api_client.types import (
|
from plex_api_client.types import (
|
||||||
@@ -681,10 +680,8 @@ class PostUsersSignInDataUserPlexAccountTypedDict(TypedDict):
|
|||||||
|
|
||||||
ads_consent: Nullable[bool]
|
ads_consent: Nullable[bool]
|
||||||
r"""Unknown"""
|
r"""Unknown"""
|
||||||
ads_consent_reminder_at: Nullable[datetime]
|
ads_consent_reminder_at: Nullable[int]
|
||||||
r"""Unknown"""
|
ads_consent_set_at: Nullable[int]
|
||||||
ads_consent_set_at: Nullable[datetime]
|
|
||||||
r"""Unknown"""
|
|
||||||
auth_token: str
|
auth_token: str
|
||||||
r"""The account token"""
|
r"""The account token"""
|
||||||
country: str
|
country: str
|
||||||
@@ -768,14 +765,12 @@ class PostUsersSignInDataUserPlexAccount(BaseModel):
|
|||||||
r"""Unknown"""
|
r"""Unknown"""
|
||||||
|
|
||||||
ads_consent_reminder_at: Annotated[
|
ads_consent_reminder_at: Annotated[
|
||||||
Nullable[datetime], pydantic.Field(alias="adsConsentReminderAt")
|
Nullable[int], pydantic.Field(alias="adsConsentReminderAt")
|
||||||
]
|
]
|
||||||
r"""Unknown"""
|
|
||||||
|
|
||||||
ads_consent_set_at: Annotated[
|
ads_consent_set_at: Annotated[
|
||||||
Nullable[datetime], pydantic.Field(alias="adsConsentSetAt")
|
Nullable[int], pydantic.Field(alias="adsConsentSetAt")
|
||||||
]
|
]
|
||||||
r"""Unknown"""
|
|
||||||
|
|
||||||
auth_token: Annotated[str, pydantic.Field(alias="authToken")]
|
auth_token: Annotated[str, pydantic.Field(alias="authToken")]
|
||||||
r"""The account token"""
|
r"""The account token"""
|
||||||
|
|||||||
@@ -68,14 +68,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -175,14 +171,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -280,14 +272,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -385,14 +373,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -489,14 +473,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -591,14 +571,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -692,14 +668,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -792,14 +764,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -898,14 +866,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1004,14 +968,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1110,14 +1070,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1219,14 +1175,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1322,14 +1274,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1422,14 +1370,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1529,14 +1473,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1639,14 +1579,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1748,14 +1684,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1854,14 +1786,10 @@ class Playlists(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -53,14 +53,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -150,14 +146,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -247,14 +239,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -344,14 +332,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -440,14 +424,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -532,14 +512,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -623,14 +599,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -716,14 +688,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -836,14 +804,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -958,14 +922,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1068,14 +1028,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1168,14 +1124,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1271,14 +1223,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1382,14 +1330,10 @@ class Plex(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -39,9 +39,9 @@ class SDKConfiguration:
|
|||||||
server_defaults: List[Dict[str, str]] = field(default_factory=List)
|
server_defaults: List[Dict[str, str]] = field(default_factory=List)
|
||||||
language: str = "python"
|
language: str = "python"
|
||||||
openapi_doc_version: str = "0.0.3"
|
openapi_doc_version: str = "0.0.3"
|
||||||
sdk_version: str = "0.18.0"
|
sdk_version: str = "0.18.1"
|
||||||
gen_version: str = "2.429.0"
|
gen_version: str = "2.429.0"
|
||||||
user_agent: str = "speakeasy-sdk/python 0.18.0 2.429.0 0.0.3 plex-api-client"
|
user_agent: str = "speakeasy-sdk/python 0.18.1 2.429.0 0.0.3 plex-api-client"
|
||||||
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
|
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
|
||||||
timeout_ms: Optional[int] = None
|
timeout_ms: Optional[int] = None
|
||||||
|
|
||||||
|
|||||||
@@ -76,14 +76,10 @@ class Search(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -193,14 +189,10 @@ class Search(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -302,14 +294,10 @@ class Search(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -411,14 +399,10 @@ class Search(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -510,14 +494,10 @@ class Search(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -612,14 +592,10 @@ class Search(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -51,14 +51,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -147,14 +143,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -243,14 +235,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -338,14 +326,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -433,14 +417,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -528,14 +508,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -623,14 +599,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -716,14 +688,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -808,14 +776,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -896,14 +860,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -985,14 +945,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1080,14 +1036,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1186,14 +1138,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1289,14 +1237,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1388,14 +1332,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1490,14 +1430,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1585,14 +1521,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -1680,14 +1612,10 @@ class Server(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -51,14 +51,10 @@ class Sessions(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -144,14 +140,10 @@ class Sessions(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -257,14 +249,10 @@ class Sessions(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -372,14 +360,10 @@ class Sessions(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -467,14 +451,10 @@ class Sessions(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -562,14 +542,10 @@ class Sessions(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -664,14 +640,10 @@ class Sessions(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -763,14 +735,10 @@ class Sessions(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -58,14 +58,10 @@ class Statistics(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -160,14 +156,10 @@ class Statistics(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -262,14 +254,10 @@ class Statistics(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -365,14 +353,10 @@ class Statistics(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -468,14 +452,10 @@ class Statistics(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -571,14 +551,10 @@ class Statistics(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -54,14 +54,10 @@ class Updater(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -149,14 +145,10 @@ class Updater(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -251,14 +243,10 @@ class Updater(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -350,14 +338,10 @@ class Updater(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -453,14 +437,10 @@ class Updater(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -556,14 +536,10 @@ class Updater(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -60,14 +60,10 @@ class Video(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -159,14 +155,10 @@ class Video(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -261,14 +253,10 @@ class Video(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -365,14 +353,10 @@ class Video(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
@@ -62,14 +62,10 @@ class Watchlist(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = self.do_request(
|
http_res = self.do_request(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
@@ -168,14 +164,10 @@ class Watchlist(BaseSDK):
|
|||||||
if retries == UNSET:
|
if retries == UNSET:
|
||||||
if self.sdk_configuration.retry_config is not UNSET:
|
if self.sdk_configuration.retry_config is not UNSET:
|
||||||
retries = self.sdk_configuration.retry_config
|
retries = self.sdk_configuration.retry_config
|
||||||
else:
|
|
||||||
retries = utils.RetryConfig(
|
|
||||||
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
||||||
)
|
|
||||||
|
|
||||||
retry_config = None
|
retry_config = None
|
||||||
if isinstance(retries, utils.RetryConfig):
|
if isinstance(retries, utils.RetryConfig):
|
||||||
retry_config = (retries, ["5XX"])
|
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
||||||
|
|
||||||
http_res = await self.do_request_async(
|
http_res = await self.do_request_async(
|
||||||
hook_ctx=HookContext(
|
hook_ctx=HookContext(
|
||||||
|
|||||||
Reference in New Issue
Block a user