maleo-foundation 0.1.55__py3-none-any.whl → 0.1.57__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.
- maleo_foundation/managers/service.py +2 -9
- {maleo_foundation-0.1.55.dist-info → maleo_foundation-0.1.57.dist-info}/METADATA +1 -1
- {maleo_foundation-0.1.55.dist-info → maleo_foundation-0.1.57.dist-info}/RECORD +5 -5
- {maleo_foundation-0.1.55.dist-info → maleo_foundation-0.1.57.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.1.55.dist-info → maleo_foundation-0.1.57.dist-info}/top_level.txt +0 -0
@@ -86,12 +86,6 @@ class MiddlewareStaticConfigurations(BaseModel):
|
|
86
86
|
class Config:
|
87
87
|
arbitrary_types_allowed=True
|
88
88
|
|
89
|
-
class GoogleCloudStorageConfigurations(BaseModel):
|
90
|
-
bucket_name:str = Field(..., description="Bucket's name")
|
91
|
-
|
92
|
-
class GoogleClientConfigurations(BaseModel):
|
93
|
-
storage:GoogleCloudStorageConfigurations = Field(..., description="Google cloud storage client configurations")
|
94
|
-
|
95
89
|
class MaleoClientConfiguration(BaseModel):
|
96
90
|
key:str = Field(..., description="Client's key")
|
97
91
|
name:str = Field(..., description="Client's name")
|
@@ -115,7 +109,6 @@ class MaleoClientConfigurations(BaseModel):
|
|
115
109
|
arbitrary_types_allowed=True
|
116
110
|
|
117
111
|
class ClientConfigurations(BaseModel):
|
118
|
-
google:GoogleClientConfigurations = Field(..., description="Google client's configurations")
|
119
112
|
maleo:MaleoClientConfigurations = Field(..., description="Maleo client's configurations")
|
120
113
|
|
121
114
|
class Config:
|
@@ -217,7 +210,7 @@ class ServiceManager:
|
|
217
210
|
self._runtime_configs = RuntimeConfigurations.model_validate(runtime_configurations)
|
218
211
|
|
219
212
|
def _initialize_secret_manager(self) -> None:
|
220
|
-
self._secret_manager = GoogleSecretManager(log_config=self._log_config, service_key=self._runtime_configs.service.key, credentials_path=self._settings.
|
213
|
+
self._secret_manager = GoogleSecretManager(log_config=self._log_config, service_key=self._runtime_configs.service.key, credentials_path=self._settings.GOOGLE_CREDENTIALS_PATH)
|
221
214
|
|
222
215
|
@property
|
223
216
|
def secret_manager(self) -> None:
|
@@ -267,7 +260,7 @@ class ServiceManager:
|
|
267
260
|
|
268
261
|
def _initialize_clients(self, environment:BaseEnums.EnvironmentType) -> None:
|
269
262
|
secret = self._secret_manager
|
270
|
-
storage = GoogleCloudStorage(log_config=self._log_config, service_key=self._runtime_configs.service.key, bucket_name=f"maleo-suite-{environment}", credentials_path=self._settings.
|
263
|
+
storage = GoogleCloudStorage(log_config=self._log_config, service_key=self._runtime_configs.service.key, bucket_name=f"maleo-suite-{environment}", credentials_path=self._settings.GOOGLE_CREDENTIALS_PATH)
|
271
264
|
self._google_clients = GoogleClientManagers(secret=secret, storage=storage)
|
272
265
|
foundation = MaleoFoundationClientManager(log_config=self._log_config, service_key=self._runtime_configs.service.key)
|
273
266
|
self._maleo_clients = MaleoClientManagers(foundation=foundation)
|
@@ -17,7 +17,7 @@ maleo_foundation/expanded_types/token.py,sha256=4fRTJw6W5MYq71NksNrWNi7qYHQ4_lQw
|
|
17
17
|
maleo_foundation/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
18
|
maleo_foundation/managers/db.py,sha256=Pn5EZ-c1Hy6-BihN7KokHJWmBIt3Ty96fZ0zF-srtF4,5208
|
19
19
|
maleo_foundation/managers/middleware.py,sha256=7CDXPMb28AR7J72TWOeKFxOlMypKezEtO9mr53a88B0,4032
|
20
|
-
maleo_foundation/managers/service.py,sha256=
|
20
|
+
maleo_foundation/managers/service.py,sha256=kioVTFdLQ-QimQxBnZ9I92ZBlmTilt_g1crmT-eOyXE,16919
|
21
21
|
maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
maleo_foundation/managers/client/base.py,sha256=qfWu_wxoPSSzgZwuTEwRiXERg60diAkz65Qk3fnQej4,3972
|
23
23
|
maleo_foundation/managers/client/maleo.py,sha256=G6C0rn_5c1MEmnoZkJbyXptfoDEofgC5BwLzfQC4NEk,1886
|
@@ -72,7 +72,7 @@ maleo_foundation/utils/loaders/__init__.py,sha256=Dnuv7BWyglSddnbsFb96s-b3KaW7UK
|
|
72
72
|
maleo_foundation/utils/loaders/json.py,sha256=NsXLq3VZSgzmEf99tV1VtrmiudWdQ8Pzh_hI4Rm0cM8,397
|
73
73
|
maleo_foundation/utils/loaders/key.py,sha256=GZ4h1ONfp6Xx8-E8AWoGP4ajAZrwPhZRtidjn_u82Qg,2562
|
74
74
|
maleo_foundation/utils/loaders/yaml.py,sha256=jr8v3BlgmRCMTzdNgKhIYt1tnubaJXcDSSGkKVR8pbw,362
|
75
|
-
maleo_foundation-0.1.
|
76
|
-
maleo_foundation-0.1.
|
77
|
-
maleo_foundation-0.1.
|
78
|
-
maleo_foundation-0.1.
|
75
|
+
maleo_foundation-0.1.57.dist-info/METADATA,sha256=EfpcxsQplJvcq2hDdvHQoREsZOI4bO_J3hYh3n5XfK4,3354
|
76
|
+
maleo_foundation-0.1.57.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
77
|
+
maleo_foundation-0.1.57.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
78
|
+
maleo_foundation-0.1.57.dist-info/RECORD,,
|
File without changes
|
File without changes
|