You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -541,8 +541,8 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
541
541
542
542
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
543
543
```python
544
-
from glean.api_clientimport Glean, models
545
-
from glean.api_client.utils import BackoffStrategy, RetryConfig, parse_datetime
544
+
from glean import Glean, models
545
+
from glean.utils import BackoffStrategy, RetryConfig, parse_datetime
546
546
import os
547
547
548
548
@@ -582,8 +582,8 @@ with Glean(
582
582
583
583
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
584
584
```python
585
-
from glean.api_clientimport Glean, models
586
-
from glean.api_client.utils import BackoffStrategy, RetryConfig, parse_datetime
585
+
from glean import Glean, models
586
+
from glean.utils import BackoffStrategy, RetryConfig, parse_datetime
587
587
import os
588
588
589
589
@@ -720,8 +720,8 @@ The default server `https://{instance}-be.glean.com` contains variables and is s
720
720
#### Example
721
721
722
722
```python
723
-
from glean.api_clientimport Glean, models
724
-
from glean.api_client.utils import parse_datetime
723
+
from glean import Glean, models
724
+
from glean.utils import parse_datetime
725
725
import os
726
726
727
727
@@ -763,8 +763,8 @@ with Glean(
763
763
764
764
The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
765
765
```python
766
-
from glean.api_clientimport Glean, models
767
-
from glean.api_client.utils import parse_datetime
766
+
from glean import Glean, models
767
+
from glean.utils import parse_datetime
768
768
import os
769
769
770
770
@@ -812,7 +812,7 @@ This allows you to wrap the client with your own custom logic, such as adding cu
812
812
813
813
For example, you could specify a header for every request that this sdk makes as follows:
0 commit comments