maleo-foundation 0.3.62__py3-none-any.whl → 0.3.65__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/enums.py +2 -0
- maleo_foundation/models/responses.py +14 -5
- {maleo_foundation-0.3.62.dist-info → maleo_foundation-0.3.65.dist-info}/METADATA +1 -1
- {maleo_foundation-0.3.62.dist-info → maleo_foundation-0.3.65.dist-info}/RECORD +6 -6
- {maleo_foundation-0.3.62.dist-info → maleo_foundation-0.3.65.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.3.62.dist-info → maleo_foundation-0.3.65.dist-info}/top_level.txt +0 -0
maleo_foundation/enums.py
CHANGED
@@ -101,10 +101,12 @@ class BaseEnums:
|
|
101
101
|
DATABASE = "database"
|
102
102
|
MICROSERVICE = "microservice"
|
103
103
|
THIRD_PARTY = "third_party"
|
104
|
+
INTERNAL = "internal"
|
104
105
|
|
105
106
|
class ClientOperationTarget(StrEnum):
|
106
107
|
CACHE = "cache"
|
107
108
|
CONTROLLER = "controller"
|
109
|
+
INTERNAL = "internal"
|
108
110
|
|
109
111
|
class OperationTarget(StrEnum):
|
110
112
|
CACHE = "cache"
|
@@ -79,6 +79,11 @@ class BaseResponses:
|
|
79
79
|
message: str = "Forbidden Request"
|
80
80
|
description: str = "You are forbidden from requesting this resource"
|
81
81
|
|
82
|
+
class NotFound(Fail):
|
83
|
+
code: str = "MAL-NTF-001"
|
84
|
+
message: str = "Resource not found"
|
85
|
+
description: str = "The requested resource can not be found."
|
86
|
+
|
82
87
|
class MethodNotAllowed(Fail):
|
83
88
|
code: str = "MAL-MTA-002"
|
84
89
|
message: str = "Method Not Allowed"
|
@@ -108,10 +113,10 @@ class BaseResponses:
|
|
108
113
|
message: str = "Not Implemented"
|
109
114
|
description: str = "This request is not yet implemented by the system."
|
110
115
|
|
111
|
-
class
|
112
|
-
code: str = "MAL-
|
113
|
-
message: str = "
|
114
|
-
description: str = "The
|
116
|
+
class Unavailable(Fail):
|
117
|
+
code: str = "MAL-UNV-001"
|
118
|
+
message: str = "Unavailable"
|
119
|
+
description: str = "The service is unavailable to process the request."
|
115
120
|
|
116
121
|
class NoData(Success):
|
117
122
|
code: str = "MAL-NDT-001"
|
@@ -211,6 +216,10 @@ class BaseResponses:
|
|
211
216
|
},
|
212
217
|
status.HTTP_501_NOT_IMPLEMENTED: {
|
213
218
|
"description": "Not Implemented Response",
|
214
|
-
"model":
|
219
|
+
"model": NotImplemented,
|
220
|
+
},
|
221
|
+
status.HTTP_503_SERVICE_UNAVAILABLE: {
|
222
|
+
"description": "Service Unavailable Response",
|
223
|
+
"model": Unavailable,
|
215
224
|
},
|
216
225
|
}
|
@@ -2,7 +2,7 @@ maleo_foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
2
2
|
maleo_foundation/authentication.py,sha256=2Y2py-teDSO_YTFdZiPtuYhC8r3qIzn7CKyLNN8b2NQ,2727
|
3
3
|
maleo_foundation/authorization.py,sha256=8P1hleBYRv8kda4uQcbHVujHVAlI92YV1Flfzf-oJEU,285
|
4
4
|
maleo_foundation/constants.py,sha256=cgW2TjXYEdQRoYCL3fMk3r5B2Yr-Av67CaEAdY5SZ6o,1529
|
5
|
-
maleo_foundation/enums.py,sha256=
|
5
|
+
maleo_foundation/enums.py,sha256=5ft9F3CcLM2lwDNGVVNFZRwol1Y_BLYJcxi3yPjsS7Y,6277
|
6
6
|
maleo_foundation/extended_types.py,sha256=oOAYc5f89WcPt5OWEaNdeceENHiPVr4KDhdttg6bA_w,305
|
7
7
|
maleo_foundation/rest_controller_result.py,sha256=uZxBxZ5hB98q1B4hNyRigHcO0560NYfUjq8L662aOPw,2172
|
8
8
|
maleo_foundation/types.py,sha256=Tq50KOISbnsMslVGBCqlY77lRAQZa-UUFDGqqwRglow,2466
|
@@ -50,7 +50,7 @@ maleo_foundation/middlewares/authentication.py,sha256=b4dPkLKFqJBmhWKEvynTLe45Wa
|
|
50
50
|
maleo_foundation/middlewares/base.py,sha256=ZXMJTiuDBa6sIbgD_g1MhhlMkszsYkt3Ocl4boPtbEU,16825
|
51
51
|
maleo_foundation/middlewares/cors.py,sha256=1QgRXOcURuEhBYMerclqbECgtAE4CFo0EhB4gJXu8Yg,2294
|
52
52
|
maleo_foundation/models/__init__.py,sha256=OlZXaeOhGXz_FppPm87jIOItnr-r179QhIcOWDOORyQ,248
|
53
|
-
maleo_foundation/models/responses.py,sha256=
|
53
|
+
maleo_foundation/models/responses.py,sha256=WNAz67ewOyWV0oHyiB_BF_-sfaoDF-FVzcwg4AulH1g,8824
|
54
54
|
maleo_foundation/models/table.py,sha256=k0-OtahF2KRmvFUL8TborT6PoIhGsyoVrPJBKGg1QbU,1855
|
55
55
|
maleo_foundation/models/schemas/__init__.py,sha256=tmjBCyG4uMRjiTbnbhIjZaR8q7zk0_J_CqnRzsSfoBQ,279
|
56
56
|
maleo_foundation/models/schemas/encryption.py,sha256=S86FGlcBhyGxxZ5ObNSHTjSDwBUlUtLOMoCAKd5wE34,687
|
@@ -135,7 +135,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=g-cAxkTE2EtHaG8Tv52
|
|
135
135
|
maleo_foundation/utils/loaders/credential/google.py,sha256=GCJl-bsKSSxoE_ERAkIzRrRNIbIEeqYOhHwzFuBr0mk,6576
|
136
136
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=RfqIbUxkdlx1xrbzJZPD_JHiRFNFLRuQs8JoUPCGCv4,108
|
137
137
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=UXcP0rr4QVacTsHLNQuU05wcow5CHWz-JW-zsVxlbPs,4121
|
138
|
-
maleo_foundation-0.3.
|
139
|
-
maleo_foundation-0.3.
|
140
|
-
maleo_foundation-0.3.
|
141
|
-
maleo_foundation-0.3.
|
138
|
+
maleo_foundation-0.3.65.dist-info/METADATA,sha256=W0-RwcxXeM2WhaLxIae5xYA6q9GiyhKfXBjA4KmahiM,4150
|
139
|
+
maleo_foundation-0.3.65.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
140
|
+
maleo_foundation-0.3.65.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
141
|
+
maleo_foundation-0.3.65.dist-info/RECORD,,
|
File without changes
|
File without changes
|