yandexcloud 0.302.0__py3-none-any.whl → 0.304.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 +8 -5
- yandexcloud/_sdk.py +12 -8
- yandexcloud/_wrappers/dataproc/__init__.py +3 -3
- yandexcloud/operations.py +7 -4
- {yandexcloud-0.302.0.dist-info → yandexcloud-0.304.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.302.0.dist-info → yandexcloud-0.304.0.dist-info}/RECORD +10 -10
- {yandexcloud-0.302.0.dist-info → yandexcloud-0.304.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.302.0.dist-info → yandexcloud-0.304.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.302.0.dist-info → yandexcloud-0.304.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.302.0.dist-info → yandexcloud-0.304.0.dist-info}/top_level.txt +0 -0
yandexcloud/_operation_waiter.py
CHANGED
|
@@ -10,11 +10,14 @@ from yandex.cloud.operation.operation_service_pb2 import GetOperationRequest
|
|
|
10
10
|
from yandex.cloud.operation.operation_service_pb2_grpc import OperationServiceStub
|
|
11
11
|
from yandexcloud._backoff import backoff_exponential_jittered_min_interval
|
|
12
12
|
from yandexcloud._retry_interceptor import RetryInterceptor
|
|
13
|
-
from yandexcloud.operations import
|
|
13
|
+
from yandexcloud.operations import (
|
|
14
|
+
MetaType,
|
|
15
|
+
OperationError,
|
|
16
|
+
OperationResult,
|
|
17
|
+
ResponseType,
|
|
18
|
+
)
|
|
14
19
|
|
|
15
20
|
if TYPE_CHECKING:
|
|
16
|
-
import google.protobuf.message
|
|
17
|
-
|
|
18
21
|
from yandex.cloud.operation.operation_pb2 import Operation
|
|
19
22
|
from yandexcloud._sdk import SDK
|
|
20
23
|
|
|
@@ -49,8 +52,8 @@ def wait_for_operation(sdk: "SDK", operation_id: str, timeout: Optional[float])
|
|
|
49
52
|
def get_operation_result(
|
|
50
53
|
sdk: "SDK",
|
|
51
54
|
operation: "Operation",
|
|
52
|
-
response_type: Optional[Type["
|
|
53
|
-
meta_type: Optional[Type["
|
|
55
|
+
response_type: Optional[Type["ResponseType"]] = None,
|
|
56
|
+
meta_type: Optional[Type["MetaType"]] = None,
|
|
54
57
|
timeout: Optional[float] = None,
|
|
55
58
|
logger: Optional[logging.Logger] = None,
|
|
56
59
|
) -> Union["OperationResult", "OperationError"]:
|
yandexcloud/_sdk.py
CHANGED
|
@@ -11,11 +11,15 @@ from yandexcloud._wrappers import Wrappers
|
|
|
11
11
|
if TYPE_CHECKING:
|
|
12
12
|
import logging
|
|
13
13
|
|
|
14
|
-
import google.protobuf.message
|
|
15
|
-
|
|
16
14
|
from yandex.cloud.operation.operation_pb2 import Operation
|
|
17
15
|
from yandexcloud._operation_waiter import OperationWaiter
|
|
18
|
-
from yandexcloud.operations import
|
|
16
|
+
from yandexcloud.operations import (
|
|
17
|
+
MetaType,
|
|
18
|
+
OperationError,
|
|
19
|
+
OperationResult,
|
|
20
|
+
RequestType,
|
|
21
|
+
ResponseType,
|
|
22
|
+
)
|
|
19
23
|
|
|
20
24
|
|
|
21
25
|
class SDK:
|
|
@@ -96,8 +100,8 @@ class SDK:
|
|
|
96
100
|
def wait_operation_and_get_result(
|
|
97
101
|
self,
|
|
98
102
|
operation: "Operation",
|
|
99
|
-
response_type: Optional[Type["
|
|
100
|
-
meta_type: Optional[Type["
|
|
103
|
+
response_type: Optional[Type["ResponseType"]] = None,
|
|
104
|
+
meta_type: Optional[Type["MetaType"]] = None,
|
|
101
105
|
timeout: Optional[float] = None,
|
|
102
106
|
logger: Optional["logging.Logger"] = None,
|
|
103
107
|
) -> Union["OperationResult", "OperationError"]:
|
|
@@ -105,11 +109,11 @@ class SDK:
|
|
|
105
109
|
|
|
106
110
|
def create_operation_and_get_result(
|
|
107
111
|
self,
|
|
108
|
-
request: Type["
|
|
112
|
+
request: Type["RequestType"],
|
|
109
113
|
service: Any,
|
|
110
114
|
method_name: str,
|
|
111
|
-
response_type: Optional[Type["
|
|
112
|
-
meta_type: Optional[Type["
|
|
115
|
+
response_type: Optional[Type["ResponseType"]] = None,
|
|
116
|
+
meta_type: Optional[Type["MetaType"]] = None,
|
|
113
117
|
timeout: Optional[float] = None,
|
|
114
118
|
logger: Optional["logging.Logger"] = None,
|
|
115
119
|
) -> Union["OperationResult", "OperationError"]:
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# mypy: ignore-errors
|
|
4
4
|
import logging
|
|
5
5
|
import random
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import Iterable, NamedTuple
|
|
7
7
|
|
|
8
8
|
from google.protobuf.field_mask_pb2 import FieldMask
|
|
9
9
|
from six import string_types
|
|
@@ -22,7 +22,7 @@ import yandex.cloud.dataproc.v1.subcluster_service_pb2_grpc as subcluster_servic
|
|
|
22
22
|
|
|
23
23
|
class InitializationAction(NamedTuple):
|
|
24
24
|
uri: str # Uri of the executable file
|
|
25
|
-
args:
|
|
25
|
+
args: Iterable[str] # Arguments to the initialization action
|
|
26
26
|
timeout: int # Execution timeout
|
|
27
27
|
|
|
28
28
|
def to_grpc(self):
|
|
@@ -183,7 +183,7 @@ class Dataproc:
|
|
|
183
183
|
Docs: https://cloud.yandex.com/en-ru/docs/data-proc/concepts/network#security-groups
|
|
184
184
|
:type security_group_ids: List[str]
|
|
185
185
|
:param initialization_actions: Set of init-actions to run when cluster starts
|
|
186
|
-
:type initialization_actions:
|
|
186
|
+
:type initialization_actions: Iterable[InitializationAction]
|
|
187
187
|
:param labels: Cluster labels as key:value pairs. No more than 64 per resource.
|
|
188
188
|
:type labels: Dict[str, str]
|
|
189
189
|
|
yandexcloud/operations.py
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
from typing import TYPE_CHECKING, Optional
|
|
1
|
+
from typing import TYPE_CHECKING, Optional, TypeVar
|
|
2
2
|
|
|
3
3
|
if TYPE_CHECKING:
|
|
4
4
|
import google.protobuf.message
|
|
5
5
|
|
|
6
6
|
from yandex.cloud.operation.operation_pb2 import Operation
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
RequestType = TypeVar("RequestType", bound="google.protobuf.message.Message") # pylint: disable=C0103
|
|
10
|
+
ResponseType = TypeVar("ResponseType", bound="google.protobuf.message.Message") # pylint: disable=C0103
|
|
11
|
+
MetaType = TypeVar("MetaType", bound="google.protobuf.message.Message") # pylint: disable=C0103
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
class OperationResult:
|
|
12
15
|
def __init__(
|
|
13
16
|
self,
|
|
14
17
|
operation: "Operation",
|
|
15
|
-
response: Optional["
|
|
16
|
-
meta: Optional["
|
|
18
|
+
response: Optional["ResponseType"] = None,
|
|
19
|
+
meta: Optional["MetaType"] = None,
|
|
17
20
|
):
|
|
18
21
|
self.operation = operation
|
|
19
22
|
self.response = response
|
|
@@ -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=kQyk0yqtfiwidO0Pb0ns4ZCfE6GoiGhq-q-62nBEsDU,4849
|
|
2422
2422
|
yandexcloud/_retry_interceptor.py,sha256=UdRxyLSfX6EZrvFNTfVkB_LprCSilWRtxIyRhLwpmXU,7642
|
|
2423
|
-
yandexcloud/_sdk.py,sha256=
|
|
2423
|
+
yandexcloud/_sdk.py,sha256=gnLwncNmZaGx2clIRZtkt71v284GQYSSlIx5y09HAR8,7790
|
|
2424
2424
|
yandexcloud/auth.py,sha256=SD_IVGUhN_Ny8f-qtnNWtZQ1VPYrGbKypFAbQcaSQ58,1008
|
|
2425
|
-
yandexcloud/operations.py,sha256=
|
|
2425
|
+
yandexcloud/operations.py,sha256=66h-UkxYQvN8S5YRMc2OdF_Qcetznl24EnPDezwEqw4,1045
|
|
2426
2426
|
yandexcloud/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2427
2427
|
yandexcloud/_wrappers/__init__.py,sha256=z19vuf3vgVGWFc-0d1LFsyVXiM-SYlhvvWRQI8l1T_8,428
|
|
2428
|
-
yandexcloud/_wrappers/dataproc/__init__.py,sha256=
|
|
2429
|
-
yandexcloud-0.
|
|
2430
|
-
yandexcloud-0.
|
|
2431
|
-
yandexcloud-0.
|
|
2432
|
-
yandexcloud-0.
|
|
2433
|
-
yandexcloud-0.
|
|
2434
|
-
yandexcloud-0.
|
|
2428
|
+
yandexcloud/_wrappers/dataproc/__init__.py,sha256=QWM1jhd8dHwTEjhdiAalreNzac1g4jJ5djXoDdXRdfg,33016
|
|
2429
|
+
yandexcloud-0.304.0.dist-info/AUTHORS,sha256=0o7IPkgdTswBveGhbt_73xRPpCrfeEGoZE11AiLvYSQ,231
|
|
2430
|
+
yandexcloud-0.304.0.dist-info/LICENSE,sha256=AFcOYhNOyuBQP89lObqyipdScN2KUUS-OuWoUlVo6yE,1077
|
|
2431
|
+
yandexcloud-0.304.0.dist-info/METADATA,sha256=ryzhC81EVHwDqTaDLP-3bCd5diLa431nm4b2JkD2X38,10419
|
|
2432
|
+
yandexcloud-0.304.0.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
|
2433
|
+
yandexcloud-0.304.0.dist-info/top_level.txt,sha256=p6aBMPGD526A1jM2WVnAneI2qO4kGDWeJi6uwYApDqg,19
|
|
2434
|
+
yandexcloud-0.304.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|