yandexcloud 0.277.0__py3-none-any.whl → 0.278.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.
- yandexcloud/auth.py +13 -3
- {yandexcloud-0.277.0.dist-info → yandexcloud-0.278.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.277.0.dist-info → yandexcloud-0.278.0.dist-info}/RECORD +7 -7
- {yandexcloud-0.277.0.dist-info → yandexcloud-0.278.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.277.0.dist-info → yandexcloud-0.278.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.277.0.dist-info → yandexcloud-0.278.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.277.0.dist-info → yandexcloud-0.278.0.dist-info}/top_level.txt +0 -0
yandexcloud/auth.py
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
from yandex.cloud.iam.v1.iam_token_service_pb2_grpc import IamTokenServiceStub
|
|
2
2
|
from yandexcloud import SDK
|
|
3
|
-
from yandexcloud._auth_fabric import
|
|
3
|
+
from yandexcloud._auth_fabric import (
|
|
4
|
+
YC_API_ENDPOINT,
|
|
5
|
+
MetadataAuth,
|
|
6
|
+
get_auth_token_requester,
|
|
7
|
+
)
|
|
4
8
|
|
|
5
9
|
|
|
6
|
-
def get_auth_token(token=None, service_account_key=None, iam_token=None, metadata_addr=None):
|
|
7
|
-
requester = get_auth_token_requester(
|
|
10
|
+
def get_auth_token(token=None, service_account_key=None, iam_token=None, metadata_addr=None, endpoint=YC_API_ENDPOINT):
|
|
11
|
+
requester = get_auth_token_requester(
|
|
12
|
+
token=token,
|
|
13
|
+
service_account_key=service_account_key,
|
|
14
|
+
iam_token=iam_token,
|
|
15
|
+
metadata_addr=metadata_addr,
|
|
16
|
+
endpoint=endpoint,
|
|
17
|
+
)
|
|
8
18
|
if isinstance(requester, MetadataAuth):
|
|
9
19
|
return requester.get_token()
|
|
10
20
|
|
|
@@ -1242,13 +1242,13 @@ yandexcloud/_helpers.py,sha256=wtkkvklZYnFSTl9ge16ryR-e9kyeWOlSFCBpoL-f3-g,3388
|
|
|
1242
1242
|
yandexcloud/_operation_waiter.py,sha256=Fg2BRdOpVZwD5QQDUTlWTseclsjkwcEn3fyAH7bezDo,4160
|
|
1243
1243
|
yandexcloud/_retry_interceptor.py,sha256=W7JVatSB8bGwinUH4Bq2URbticG2atVuYhceivuUJwc,6518
|
|
1244
1244
|
yandexcloud/_sdk.py,sha256=lPI6MwfXDFhhhmaQgM_4YQ1gPoInI9rBwAWDBgXM1sQ,5843
|
|
1245
|
-
yandexcloud/auth.py,sha256=
|
|
1245
|
+
yandexcloud/auth.py,sha256=Ioy7LuI7sHSA56qTo_2f3H4XMvMM6v4f6lR4qKQVHro,759
|
|
1246
1246
|
yandexcloud/operations.py,sha256=ajTQtALe76_77uYVCUPQ2KAkRRhdmjqbt-jFIVKNULg,448
|
|
1247
1247
|
yandexcloud/_wrappers/__init__.py,sha256=_GdM0-eMpcQCmyNHlnqTHpLzN0riBLaq-ACVavLNSrM,251
|
|
1248
1248
|
yandexcloud/_wrappers/dataproc/__init__.py,sha256=3YXJfktefML0KRNMtTFXncbswIdd9yBlqQkhDqclang,33215
|
|
1249
|
-
yandexcloud-0.
|
|
1250
|
-
yandexcloud-0.
|
|
1251
|
-
yandexcloud-0.
|
|
1252
|
-
yandexcloud-0.
|
|
1253
|
-
yandexcloud-0.
|
|
1254
|
-
yandexcloud-0.
|
|
1249
|
+
yandexcloud-0.278.0.dist-info/AUTHORS,sha256=BYzvivX5Y67xcqFAJhmqcKy5UwHCngxlnDt4i_PhNO4,264
|
|
1250
|
+
yandexcloud-0.278.0.dist-info/LICENSE,sha256=AFcOYhNOyuBQP89lObqyipdScN2KUUS-OuWoUlVo6yE,1077
|
|
1251
|
+
yandexcloud-0.278.0.dist-info/METADATA,sha256=DoEHLvT-GvOwTt53FaWl_z7atIWdR-7bKTVZsAZqjUE,846
|
|
1252
|
+
yandexcloud-0.278.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
1253
|
+
yandexcloud-0.278.0.dist-info/top_level.txt,sha256=p6aBMPGD526A1jM2WVnAneI2qO4kGDWeJi6uwYApDqg,19
|
|
1254
|
+
yandexcloud-0.278.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|