port-ocean 0.14.7__py3-none-any.whl → 0.15.1__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 port-ocean might be problematic. Click here for more details.
- port_ocean/config/settings.py +1 -1
- port_ocean/core/models.py +5 -0
- port_ocean/ocean.py +1 -2
- {port_ocean-0.14.7.dist-info → port_ocean-0.15.1.dist-info}/METADATA +1 -1
- {port_ocean-0.14.7.dist-info → port_ocean-0.15.1.dist-info}/RECORD +8 -8
- {port_ocean-0.14.7.dist-info → port_ocean-0.15.1.dist-info}/LICENSE.md +0 -0
- {port_ocean-0.14.7.dist-info → port_ocean-0.15.1.dist-info}/WHEEL +0 -0
- {port_ocean-0.14.7.dist-info → port_ocean-0.15.1.dist-info}/entry_points.txt +0 -0
port_ocean/config/settings.py
CHANGED
|
@@ -103,7 +103,7 @@ class IntegrationConfiguration(BaseOceanSettings, extra=Extra.allow):
|
|
|
103
103
|
|
|
104
104
|
@validator("runtime")
|
|
105
105
|
def validate_runtime(cls, runtime: Runtime) -> Runtime:
|
|
106
|
-
if runtime
|
|
106
|
+
if runtime.is_saas_runtime:
|
|
107
107
|
spec = get_spec_file()
|
|
108
108
|
if spec is None:
|
|
109
109
|
raise ValueError(
|
port_ocean/core/models.py
CHANGED
|
@@ -8,8 +8,13 @@ from pydantic.fields import Field
|
|
|
8
8
|
|
|
9
9
|
class Runtime(Enum):
|
|
10
10
|
Saas = "Saas"
|
|
11
|
+
SaasOauth2 = "SaasOauth2"
|
|
11
12
|
OnPrem = "OnPrem"
|
|
12
13
|
|
|
14
|
+
@property
|
|
15
|
+
def is_saas_runtime(self) -> bool:
|
|
16
|
+
return self in [Runtime.Saas, Runtime.SaasOauth2]
|
|
17
|
+
|
|
13
18
|
|
|
14
19
|
class Entity(BaseModel):
|
|
15
20
|
identifier: Any
|
port_ocean/ocean.py
CHANGED
|
@@ -10,7 +10,6 @@ from pydantic import BaseModel
|
|
|
10
10
|
from starlette.types import Scope, Receive, Send
|
|
11
11
|
|
|
12
12
|
from port_ocean.core.handlers.resync_state_updater import ResyncStateUpdater
|
|
13
|
-
from port_ocean.core.models import Runtime
|
|
14
13
|
from port_ocean.clients.port.client import PortClient
|
|
15
14
|
from port_ocean.config.settings import (
|
|
16
15
|
IntegrationConfiguration,
|
|
@@ -73,7 +72,7 @@ class Ocean:
|
|
|
73
72
|
self.app_initialized = False
|
|
74
73
|
|
|
75
74
|
def is_saas(self) -> bool:
|
|
76
|
-
return self.config.runtime
|
|
75
|
+
return self.config.runtime.is_saas_runtime
|
|
77
76
|
|
|
78
77
|
async def _setup_scheduled_resync(
|
|
79
78
|
self,
|
|
@@ -58,7 +58,7 @@ port_ocean/clients/port/utils.py,sha256=SjhgmJXAqH2JqXfGy8GoGwzUYiJvUhWDrJyxQcen
|
|
|
58
58
|
port_ocean/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
59
59
|
port_ocean/config/base.py,sha256=x1gFbzujrxn7EJudRT81C6eN9WsYAb3vOHwcpcpX8Tc,6370
|
|
60
60
|
port_ocean/config/dynamic.py,sha256=qOFkRoJsn_BW7581omi_AoMxoHqasf_foxDQ_G11_SI,2030
|
|
61
|
-
port_ocean/config/settings.py,sha256=
|
|
61
|
+
port_ocean/config/settings.py,sha256=cxGnOTO9cEwwFcTSzOmwMw1yPkQHniVJFyCQCyEZ6yY,4333
|
|
62
62
|
port_ocean/consumers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
63
|
port_ocean/consumers/kafka_consumer.py,sha256=N8KocjBi9aR0BOPG8hgKovg-ns_ggpEjrSxqSqF_BSo,4710
|
|
64
64
|
port_ocean/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -102,7 +102,7 @@ port_ocean/core/integrations/mixins/handler.py,sha256=mZ7-0UlG3LcrwJttFbMe-R4xcO
|
|
|
102
102
|
port_ocean/core/integrations/mixins/sync.py,sha256=B9fEs8faaYLLikH9GBjE_E61vo0bQDjIGQsQ1SRXOlA,3931
|
|
103
103
|
port_ocean/core/integrations/mixins/sync_raw.py,sha256=BGS5EnZ2N3ifcAi94Wo-ZassSJ-_Se9eFJMpBDT7pNY,18841
|
|
104
104
|
port_ocean/core/integrations/mixins/utils.py,sha256=7y1rGETZIjOQadyIjFJXIHKkQFKx_SwiP-TrAIsyyLY,2303
|
|
105
|
-
port_ocean/core/models.py,sha256=
|
|
105
|
+
port_ocean/core/models.py,sha256=YWLy-b3N3VnMjD__BTytHqXG78lNjVqnIuhvcVLSlrs,1484
|
|
106
106
|
port_ocean/core/ocean_types.py,sha256=3_d8-n626f1kWLQ_Jxw194LEyrOVupz05qs_Y1pvB-A,990
|
|
107
107
|
port_ocean/core/utils.py,sha256=40UjRauRJO47WDSNn9bkCRD2bfhfB3e-dnOLULnuVzE,3631
|
|
108
108
|
port_ocean/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -121,7 +121,7 @@ port_ocean/log/handlers.py,sha256=ncVjgqrZRh6BhyRrA6DQG86Wsbxph1yWYuEC0cWfe-Q,36
|
|
|
121
121
|
port_ocean/log/logger_setup.py,sha256=CoEDowe5OwNOL_5clU6Z4faktfh0VWaOTS0VLmyhHjw,2404
|
|
122
122
|
port_ocean/log/sensetive.py,sha256=lVKiZH6b7TkrZAMmhEJRhcl67HNM94e56x12DwFgCQk,2920
|
|
123
123
|
port_ocean/middlewares.py,sha256=9wYCdyzRZGK1vjEJ28FY_DkfwDNENmXp504UKPf5NaQ,2727
|
|
124
|
-
port_ocean/ocean.py,sha256=
|
|
124
|
+
port_ocean/ocean.py,sha256=XxO-aRExs1hcy6aJY_nceu-QXRWB2ZLpkIPPuBkp-bQ,5247
|
|
125
125
|
port_ocean/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
126
126
|
port_ocean/run.py,sha256=rTxBlrQd4yyrtgErCFJCHCEHs7d1OXrRiJehUYmIbN0,2212
|
|
127
127
|
port_ocean/sonar-project.properties,sha256=X_wLzDOkEVmpGLRMb2fg9Rb0DxWwUFSvESId8qpvrPI,73
|
|
@@ -151,8 +151,8 @@ port_ocean/utils/repeat.py,sha256=0EFWM9d8lLXAhZmAyczY20LAnijw6UbIECf5lpGbOas,32
|
|
|
151
151
|
port_ocean/utils/signal.py,sha256=K-6kKFQTltcmKDhtyZAcn0IMa3sUpOHGOAUdWKgx0_E,1369
|
|
152
152
|
port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
|
|
153
153
|
port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
|
|
154
|
-
port_ocean-0.
|
|
155
|
-
port_ocean-0.
|
|
156
|
-
port_ocean-0.
|
|
157
|
-
port_ocean-0.
|
|
158
|
-
port_ocean-0.
|
|
154
|
+
port_ocean-0.15.1.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
155
|
+
port_ocean-0.15.1.dist-info/METADATA,sha256=1TN3ywl0FoNAvU1dTww8197vioantB9hlQO2hQnMP04,6673
|
|
156
|
+
port_ocean-0.15.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
157
|
+
port_ocean-0.15.1.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
|
|
158
|
+
port_ocean-0.15.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|