yandexcloud 0.304.0__py3-none-any.whl → 0.305.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandexcloud/_operation_waiter.py +2 -2
- yandexcloud/_sdk.py +1 -1
- yandexcloud/operations.py +3 -3
- {yandexcloud-0.304.0.dist-info → yandexcloud-0.305.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.304.0.dist-info → yandexcloud-0.305.0.dist-info}/RECORD +9 -9
- {yandexcloud-0.304.0.dist-info → yandexcloud-0.305.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.304.0.dist-info → yandexcloud-0.305.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.304.0.dist-info → yandexcloud-0.305.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.304.0.dist-info → yandexcloud-0.305.0.dist-info}/top_level.txt +0 -0
yandexcloud/_operation_waiter.py
CHANGED
|
@@ -56,11 +56,11 @@ def get_operation_result(
|
|
|
56
56
|
meta_type: Optional[Type["MetaType"]] = None,
|
|
57
57
|
timeout: Optional[float] = None,
|
|
58
58
|
logger: Optional[logging.Logger] = None,
|
|
59
|
-
) -> Union["OperationResult", "OperationError"]:
|
|
59
|
+
) -> Union["OperationResult[ResponseType, MetaType]", "OperationError"]:
|
|
60
60
|
if not logger:
|
|
61
61
|
logger = logging.getLogger()
|
|
62
62
|
logger.addHandler(logging.NullHandler())
|
|
63
|
-
operation_result = OperationResult(operation)
|
|
63
|
+
operation_result: OperationResult[ResponseType, MetaType] = OperationResult(operation)
|
|
64
64
|
created_at = datetime.fromtimestamp(operation.created_at.seconds)
|
|
65
65
|
message = (
|
|
66
66
|
"Running Yandex.Cloud operation. ID: {id}. "
|
yandexcloud/_sdk.py
CHANGED
|
@@ -104,7 +104,7 @@ class SDK:
|
|
|
104
104
|
meta_type: Optional[Type["MetaType"]] = None,
|
|
105
105
|
timeout: Optional[float] = None,
|
|
106
106
|
logger: Optional["logging.Logger"] = None,
|
|
107
|
-
) -> Union["OperationResult", "OperationError"]:
|
|
107
|
+
) -> Union["OperationResult[ResponseType, MetaType]", "OperationError"]:
|
|
108
108
|
return _operation_waiter.get_operation_result(self, operation, response_type, meta_type, timeout, logger)
|
|
109
109
|
|
|
110
110
|
def create_operation_and_get_result(
|
yandexcloud/operations.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import TYPE_CHECKING, Optional, TypeVar
|
|
1
|
+
from typing import TYPE_CHECKING, Generic, Optional, TypeVar
|
|
2
2
|
|
|
3
3
|
if TYPE_CHECKING:
|
|
4
4
|
import google.protobuf.message
|
|
@@ -11,7 +11,7 @@ ResponseType = TypeVar("ResponseType", bound="google.protobuf.message.Message")
|
|
|
11
11
|
MetaType = TypeVar("MetaType", bound="google.protobuf.message.Message") # pylint: disable=C0103
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
class OperationResult:
|
|
14
|
+
class OperationResult(Generic[ResponseType, MetaType]):
|
|
15
15
|
def __init__(
|
|
16
16
|
self,
|
|
17
17
|
operation: "Operation",
|
|
@@ -24,7 +24,7 @@ class OperationResult:
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class OperationError(RuntimeError):
|
|
27
|
-
def __init__(self, message: str, operation_result: OperationResult):
|
|
27
|
+
def __init__(self, message: str, operation_result: OperationResult[ResponseType, MetaType]):
|
|
28
28
|
super(OperationError, self).__init__(message) # pylint: disable=super-with-arguments
|
|
29
29
|
self.message = message
|
|
30
30
|
self.operation_result = operation_result
|
|
@@ -2418,17 +2418,17 @@ yandexcloud/_auth_plugin.py,sha256=ASc_uAcfoXKtC7w7JOEQeHSvNYB3h7YepVG2LbrZoyc,3
|
|
|
2418
2418
|
yandexcloud/_backoff.py,sha256=dXoKZZOFJnEjc2VH35zfHjpJ3hwN2kecy9qzDF-QSso,1246
|
|
2419
2419
|
yandexcloud/_channels.py,sha256=p-A6JRG5V_z0tBgsFJDxslYDGsofsOCBm1PCts_ihfI,5017
|
|
2420
2420
|
yandexcloud/_helpers.py,sha256=EeTeR_m8FvpWMSrOW4mzVlCdsTaEvg4YOEOy_VnnFpk,3054
|
|
2421
|
-
yandexcloud/_operation_waiter.py,sha256=
|
|
2421
|
+
yandexcloud/_operation_waiter.py,sha256=RqfzO51WP6Ui6auwanJ8NZ_-97znWA1okZtBKZRjGcI,4914
|
|
2422
2422
|
yandexcloud/_retry_interceptor.py,sha256=UdRxyLSfX6EZrvFNTfVkB_LprCSilWRtxIyRhLwpmXU,7642
|
|
2423
|
-
yandexcloud/_sdk.py,sha256=
|
|
2423
|
+
yandexcloud/_sdk.py,sha256=eESvsOt-W4-fyRUWaHs8KTdm_ELFyRPHtI1Z6bnZLiU,7814
|
|
2424
2424
|
yandexcloud/auth.py,sha256=SD_IVGUhN_Ny8f-qtnNWtZQ1VPYrGbKypFAbQcaSQ58,1008
|
|
2425
|
-
yandexcloud/operations.py,sha256=
|
|
2425
|
+
yandexcloud/operations.py,sha256=rOlhJT3Nx7u3hjRY4tnMc1_Z-yctcjcCkc_7GsDpSwY,1111
|
|
2426
2426
|
yandexcloud/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2427
2427
|
yandexcloud/_wrappers/__init__.py,sha256=z19vuf3vgVGWFc-0d1LFsyVXiM-SYlhvvWRQI8l1T_8,428
|
|
2428
2428
|
yandexcloud/_wrappers/dataproc/__init__.py,sha256=QWM1jhd8dHwTEjhdiAalreNzac1g4jJ5djXoDdXRdfg,33016
|
|
2429
|
-
yandexcloud-0.
|
|
2430
|
-
yandexcloud-0.
|
|
2431
|
-
yandexcloud-0.
|
|
2432
|
-
yandexcloud-0.
|
|
2433
|
-
yandexcloud-0.
|
|
2434
|
-
yandexcloud-0.
|
|
2429
|
+
yandexcloud-0.305.0.dist-info/AUTHORS,sha256=0o7IPkgdTswBveGhbt_73xRPpCrfeEGoZE11AiLvYSQ,231
|
|
2430
|
+
yandexcloud-0.305.0.dist-info/LICENSE,sha256=AFcOYhNOyuBQP89lObqyipdScN2KUUS-OuWoUlVo6yE,1077
|
|
2431
|
+
yandexcloud-0.305.0.dist-info/METADATA,sha256=HPC5rbSo3q4rzgOQfldiqHuzaszs3UTG72l3iPSDdN4,10419
|
|
2432
|
+
yandexcloud-0.305.0.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
|
2433
|
+
yandexcloud-0.305.0.dist-info/top_level.txt,sha256=p6aBMPGD526A1jM2WVnAneI2qO4kGDWeJi6uwYApDqg,19
|
|
2434
|
+
yandexcloud-0.305.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|