flywheel-sdk 17.4.0rc1__py2.py3-none-any.whl → 17.4.0rc2__py2.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.
- flywheel/api_client.py +1 -1
- flywheel/client.py +10 -0
- flywheel/configuration.py +2 -2
- flywheel/drone_login.py +1 -1
- flywheel/flywheel.py +1 -1
- flywheel/models/__init__.py +1 -1
- {flywheel_sdk-17.4.0rc1.dist-info → flywheel_sdk-17.4.0rc2.dist-info}/METADATA +1 -1
- {flywheel_sdk-17.4.0rc1.dist-info → flywheel_sdk-17.4.0rc2.dist-info}/RECORD +11 -11
- {flywheel_sdk-17.4.0rc1.dist-info → flywheel_sdk-17.4.0rc2.dist-info}/LICENSE.txt +0 -0
- {flywheel_sdk-17.4.0rc1.dist-info → flywheel_sdk-17.4.0rc2.dist-info}/WHEEL +0 -0
- {flywheel_sdk-17.4.0rc1.dist-info → flywheel_sdk-17.4.0rc2.dist-info}/top_level.txt +0 -0
flywheel/api_client.py
CHANGED
|
@@ -81,7 +81,7 @@ class ApiClient(object):
|
|
|
81
81
|
self.default_query_params = []
|
|
82
82
|
self.cookie = cookie
|
|
83
83
|
# Set default User-Agent.
|
|
84
|
-
self.user_agent = 'Swagger-Codegen/17.4.0-
|
|
84
|
+
self.user_agent = 'Swagger-Codegen/17.4.0-rc2/python'
|
|
85
85
|
self.last_response = None
|
|
86
86
|
self._version_check_fn = None
|
|
87
87
|
self._context = context
|
flywheel/client.py
CHANGED
|
@@ -5,6 +5,7 @@ import sys
|
|
|
5
5
|
from .util import params_to_dict
|
|
6
6
|
from .flywheel import Flywheel
|
|
7
7
|
from .view_builder import ViewBuilder
|
|
8
|
+
from .rest import ApiException
|
|
8
9
|
|
|
9
10
|
def get_api_key_from_cli(path):
|
|
10
11
|
try:
|
|
@@ -42,7 +43,16 @@ class Client(object):
|
|
|
42
43
|
**kwargs)
|
|
43
44
|
|
|
44
45
|
if not disable_auth_check:
|
|
46
|
+
self._auth_check()
|
|
47
|
+
|
|
48
|
+
def _auth_check(self):
|
|
49
|
+
try:
|
|
45
50
|
self._fw.get_current_user()
|
|
51
|
+
except ApiException as e:
|
|
52
|
+
if e.status == 403:
|
|
53
|
+
self._fw.get_current_device()
|
|
54
|
+
else:
|
|
55
|
+
raise
|
|
46
56
|
|
|
47
57
|
def shutdown(self):
|
|
48
58
|
"""Release any outstanding resources"""
|
flywheel/configuration.py
CHANGED
|
@@ -246,6 +246,6 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
246
246
|
return "Python SDK Debug Report:\n"\
|
|
247
247
|
"OS: {env}\n"\
|
|
248
248
|
"Python Version: {pyversion}\n"\
|
|
249
|
-
"Version of the API: 17.4.0-
|
|
250
|
-
"SDK Package Version: 17.4.0-
|
|
249
|
+
"Version of the API: 17.4.0-rc2\n"\
|
|
250
|
+
"SDK Package Version: 17.4.0-rc2".\
|
|
251
251
|
format(env=sys.platform, pyversion=sys.version)
|
flywheel/drone_login.py
CHANGED
flywheel/flywheel.py
CHANGED
flywheel/models/__init__.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
8
8
|
|
|
9
|
-
OpenAPI spec version: 17.4.0-
|
|
9
|
+
OpenAPI spec version: 17.4.0-rc2
|
|
10
10
|
|
|
11
11
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
"""
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
flywheel/__init__.py,sha256=GNVOewZ1RAPPlP3fwopXI-BW6mKt_1N6o5qLlLo9QxU,36634
|
|
2
|
-
flywheel/api_client.py,sha256=
|
|
3
|
-
flywheel/client.py,sha256=
|
|
4
|
-
flywheel/configuration.py,sha256=
|
|
5
|
-
flywheel/drone_login.py,sha256=
|
|
2
|
+
flywheel/api_client.py,sha256=r-ppT6GDlW2eiZykbcAgxop7MWCsQYDGtfsZFDzRrq0,28077
|
|
3
|
+
flywheel/client.py,sha256=Dqmvhcc-ajewAOmVbwnC3nxAw5G_EILYAE7TR1FFErU,10696
|
|
4
|
+
flywheel/configuration.py,sha256=TiToFvZbmaFhPSCv3an_dmcLbqt9R4gace-jx2BdDac,8298
|
|
5
|
+
flywheel/drone_login.py,sha256=8nELIBYBJMuPHQ0zdrGjWB20C3OTZbxpFVyxWmQ0kr0,2229
|
|
6
6
|
flywheel/file_spec.py,sha256=5vWBzK8h_YCbwZhcsWRpD7ByO1iw-Zcw-_7B3E5OTEg,1375
|
|
7
7
|
flywheel/finder.py,sha256=FAHS8c7CTRTFTT29lX1axYCHs62EappPch7zrS2oOow,6652
|
|
8
|
-
flywheel/flywheel.py,sha256=
|
|
8
|
+
flywheel/flywheel.py,sha256=DtNxhyXAPThVU6BPjODLOjLvWMO6rO6TeHg1xUNaGlQ,375252
|
|
9
9
|
flywheel/gear_context.py,sha256=oVLQ3jk9OVq5Ew7jxIrkt_dNBRiLt7eZbFBAy61m37o,13290
|
|
10
10
|
flywheel/partial_reader.py,sha256=XSmOq5jEmh92GJLxMJ96IhluTAtkJT_leFLlDsSnv3w,1181
|
|
11
11
|
flywheel/rest.py,sha256=tySJ4D7hkflkDhMwivM9wuCftycgnkTLqQ8VsKWuE5A,13145
|
|
@@ -42,7 +42,7 @@ flywheel/api/upload_api.py,sha256=qqLZSxkHzeKNnUn5SrsmbtiTXcgv3yu_LDEm9RLdmIQ,50
|
|
|
42
42
|
flywheel/api/users_api.py,sha256=dYX3rsxQdWXokbTy7a0QrVrQs16uXClfPZxfHRzW1YI,78528
|
|
43
43
|
flywheel/api/views_api.py,sha256=tWP2FCvGOYYGJ9lmW8toGnMa4wrhlWVC_juVoVzbg9c,40309
|
|
44
44
|
flywheel/api/workspaces_api.py,sha256=SxAKe5CTY4AI0v2sQ9qSk52PvJZXqe1rgZYJhWCo5xg,8447
|
|
45
|
-
flywheel/models/__init__.py,sha256=
|
|
45
|
+
flywheel/models/__init__.py,sha256=NKeGTMm8avNqxZIfpxn5en5dOEHMsoU75HkoH0tryVM,34685
|
|
46
46
|
flywheel/models/access_level.py,sha256=v_ZzTvJfimSzHQixvMszGqlKrsooajItsG7PiECEubw,525
|
|
47
47
|
flywheel/models/access_permission.py,sha256=-IYmy-yb8zecmGZx7iE0bhZW7PvuWpm3zAHr2FwCyLI,5336
|
|
48
48
|
flywheel/models/access_permission_output.py,sha256=faCnvyMYozmSVSlLFYMdJw84hQc3ugxx7LH2JzBfnoE,5202
|
|
@@ -582,8 +582,8 @@ flywheel/models/workspace_output.py,sha256=Vox576UtbogTx5T3e87D8ggVIgC-rNmgg2ssk
|
|
|
582
582
|
flywheel/models/workspace_update.py,sha256=cI6bzUydCISXYqaMc7THQIWHCM0Lp0wgJrBsIhG_pfY,3916
|
|
583
583
|
flywheel/models/zipfile_info.py,sha256=8ivqs0rTQaiC8KirTaK_WqSGkLvCndI_58dylOBKwa4,5243
|
|
584
584
|
flywheel/models/zipfile_member_info.py,sha256=zAg9wRUeYXbz6bvXdo4xYFHtvv9eRSCjvyaTrQ3zvN4,6346
|
|
585
|
-
flywheel_sdk-17.4.
|
|
586
|
-
flywheel_sdk-17.4.
|
|
587
|
-
flywheel_sdk-17.4.
|
|
588
|
-
flywheel_sdk-17.4.
|
|
589
|
-
flywheel_sdk-17.4.
|
|
585
|
+
flywheel_sdk-17.4.0rc2.dist-info/LICENSE.txt,sha256=F_Wp8b8L-2vc2xxcRr402gN1gg-2y0p2oG8aSj3hdMA,1057
|
|
586
|
+
flywheel_sdk-17.4.0rc2.dist-info/METADATA,sha256=HhSPxa2rzJ7TdFntC28_721PnmUCwctL4UcVF-0w0t4,931
|
|
587
|
+
flywheel_sdk-17.4.0rc2.dist-info/WHEEL,sha256=Z-nyYpwrcSqxfdux5Mbn_DQ525iP7J2DG3JgGvOYyTQ,110
|
|
588
|
+
flywheel_sdk-17.4.0rc2.dist-info/top_level.txt,sha256=BQ1fXyhiudo2To7zMNcPOOGa6qtZuhx0V_I7CO-vU6w,9
|
|
589
|
+
flywheel_sdk-17.4.0rc2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|