From c82f3b8da2288a71c3b121c04d0cc7a5257adf13 Mon Sep 17 00:00:00 2001 From: alexdrydew Date: Fri, 24 Feb 2023 10:08:36 +0000 Subject: [PATCH] [Autogenerated] stub files --- src/async_client/client.pyi | 4 +++- src/client/__init__.pyi | 8 +++++++- src/client/filter.pyi | 10 ++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/async_client/client.pyi b/src/async_client/client.pyi index 2f0c5609..34b70c2d 100644 --- a/src/async_client/client.pyi +++ b/src/async_client/client.pyi @@ -4,6 +4,7 @@ __all__ = [ import datetime import decimal import pandas +import ssl import toloka.client import toloka.client.aggregation import toloka.client.analytics_request @@ -53,7 +54,8 @@ class AsyncTolokaClient: url: typing.Optional[str] = None, retry_quotas: typing.Union[typing.List[str], str, None] = 'MIN', retryer_factory: typing.Optional[typing.Callable[[], urllib3.util.retry.Retry]] = None, - act_under_account_id: typing.Optional[str] = None + act_under_account_id: typing.Optional[str] = None, + verify: typing.Union[str, bool, ssl.SSLContext] = True ): ... def __getattr__(self, name): diff --git a/src/client/__init__.pyi b/src/client/__init__.pyi index 98084c39..7ff9e336 100644 --- a/src/client/__init__.pyi +++ b/src/client/__init__.pyi @@ -71,6 +71,7 @@ import datetime import decimal import enum import pandas +import ssl import toloka.client.aggregation import toloka.client.analytics_request import toloka.client.app @@ -235,6 +236,10 @@ class TolokaClient: All requests will be made using a specified account. See [Shared access to the requester's account](https://toloka.ai/en/docs/guide/concepts/multiple-access) documentation page. ID of the requester can be retrieved using the [get_requester](toloka.client.TolokaClient.get_requester.md) method (this method should be called by the account owner using account's token). + verify: SSL certificates (a.k.a CA bundle) used to + verify the identity of requested hosts. Either `True` (default CA bundle), + a path to an SSL certificate file, an `ssl.SSLContext`, or `False` + (which will disable verification) Example: How to create `TolokaClient` instance and make your first request to Toloka. @@ -266,7 +271,8 @@ class TolokaClient: url: typing.Optional[str] = None, retry_quotas: typing.Union[typing.List[str], str, None] = 'MIN', retryer_factory: typing.Optional[typing.Callable[[], urllib3.util.retry.Retry]] = None, - act_under_account_id: typing.Optional[str] = None + act_under_account_id: typing.Optional[str] = None, + verify: typing.Union[str, bool, ssl.SSLContext] = True ): ... @typing.overload diff --git a/src/client/filter.pyi b/src/client/filter.pyi index 6860e0b6..1d93d735 100644 --- a/src/client/filter.pyi +++ b/src/client/filter.pyi @@ -614,6 +614,16 @@ class OSFamily(Computed, toloka.client.primitives.operators.IdentityConditionMix class OSFamily(toloka.util._extendable_enum.ExtendableStrEnum): """OS families. + + Attributes: + WINDOWS: Microsoft Windows operating system developed and marketed by Microsoft for personal computers. + OS_X: macOS operating system developed by Apple Inc. since 2001 for Mac computers. + MAC_OS: Classic Mac OS operating system developed by Apple Inc. before 2001 for the Macintosh family of personal computers. + LINUX: A family of open-source Unix-like operating systems based on the Linux kernel. + BSD: An operating system based on Research Unix, developed and distributed by the CSRG, and its open-source descendants like FreeBSD, OpenBSD, NetBSD, and DragonFly BSD. + ANDROID: Android mobile operating system based on a modified version of the Linux kernel, designed primarily for touchscreen mobile devices. + IOS: iOS mobile operating system developed by Apple Inc. exclusively for its mobile devices. + BLACKBERRY: BlackBerry OS mobile operating system developed by BlackBerry Limited for its BlackBerry smartphone devices. """ WINDOWS = 'WINDOWS'