aio-kong 3.3.0__py3-none-any.whl → 3.3.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.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2022 Quantmind
1
+ Copyright (c) 2023 Quantmind
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification,
4
4
  are permitted provided that the following conditions are met:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aio-kong
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: Asynchronous Kong Client
5
5
  License: BSD-3-Clause
6
6
  Author: Luca
@@ -1,16 +1,17 @@
1
- kong/__init__.py,sha256=Ed7dB43yB-SUqXnqWM90MiXWJSrjfg1R2aKBteMqGtM,54
2
- kong/auths.py,sha256=ANGfR6gxL9GWyUECW7EVu763qSbkOqhms1B9JbQd-V8,2315
1
+ kong/__init__.py,sha256=vdv-cfsgeGr34QVY6y3BSJQEdqEL73gXPn4si6yPkOc,54
2
+ kong/auths.py,sha256=QcY6pT_4Jf9R8KNafMoAHNV-ixjew5Nq63dlgo3wadc,2314
3
3
  kong/certificates.py,sha256=MFRmFz7X2oqZN434VD7BzB7ozsUj-HD0Jv5anZZkYHw,278
4
4
  kong/cli.py,sha256=OMTNQ50kEI6WqWjWlAA9HcBWRb5eqEFqgUmtUKvuVQM,1986
5
5
  kong/client.py,sha256=JWky7Eu4b9ED0FQihy6jKLbV20XtXni3izro9davHVY,3783
6
6
  kong/components.py,sha256=JrQrxkVSdq7ZsBvb_nG28TMEL8uFpNsdApODRr0T5o4,5342
7
7
  kong/consumers.py,sha256=PRIa07WU8xNRfod5XmeK2V_f59wfTlOP6ZK8iR1iAkY,2720
8
8
  kong/plugins.py,sha256=QlxPuWmui64iiauJ-pXTjZd84wrNARe45v1yIMGCPAU,2685
9
- kong/routes.py,sha256=pOdZOzFPJGxqg_xPCySE5DOQLCxPo1hpUJ-x3-NpY3Q,1526
9
+ kong/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ kong/routes.py,sha256=GkNfaKZDuO9BDDhri3Ah3b2qy_VfAHcAmamRHlbOA0k,1482
10
11
  kong/services.py,sha256=ForaPLtEKyITZb9GqVb-XJUf4iOvKYh26YZSfo1SY6k,2514
11
12
  kong/snis.py,sha256=UfEVp_PAwXYVH9mK-ND7HCtf_H6T9RqUEoHU2sne_bY,665
12
13
  kong/utils.py,sha256=j3KmyZ4dtszteIl5saaxJa0JJaNTSearIAHOZrw8O7M,931
13
- aio_kong-3.3.0.dist-info/LICENSE,sha256=EoHxNd1ly7t_8uzEQiWVO2jSiheGTvKXCOIs9Yw2PEw,1461
14
- aio_kong-3.3.0.dist-info/METADATA,sha256=Szb2QhHnF8-eRnm1o-mth4yr0Slm2gfwOE7Z1YPrppw,3452
15
- aio_kong-3.3.0.dist-info/WHEEL,sha256=WGfLGfLX43Ei_YORXSnT54hxFygu34kMpcQdmgmEwCQ,88
16
- aio_kong-3.3.0.dist-info/RECORD,,
14
+ aio_kong-3.3.1.dist-info/LICENSE,sha256=4S4Rfy2EEQkrBsn1cu8_EZkf2Q8XfOoxjabtI0BOhdQ,1461
15
+ aio_kong-3.3.1.dist-info/METADATA,sha256=Maz8MGtOZ86cDDkVGn-o9HOqG4yQpDuB0Sy2dfUnf_Q,3452
16
+ aio_kong-3.3.1.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
17
+ aio_kong-3.3.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.6.0
2
+ Generator: poetry-core 1.6.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
kong/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """Asynchronous Kong client"""
2
2
 
3
- __version__ = "3.3.0"
3
+ __version__ = "3.3.1"
kong/auths.py CHANGED
@@ -15,7 +15,6 @@ def auth_factory(consumer: Consumer, auth_type: str) -> ConsumerAuth:
15
15
 
16
16
 
17
17
  class ConsumerAuth(CrudComponent):
18
-
19
18
  unique_field: str = ""
20
19
 
21
20
  @property
kong/py.typed ADDED
File without changes
kong/routes.py CHANGED
@@ -32,10 +32,9 @@ class Routes(CrudComponent):
32
32
  as_list("hosts", entry)
33
33
  as_list("paths", entry)
34
34
  as_list("methods", entry)
35
- if not route:
36
- entity = await self.create(**entry)
37
- else:
38
- entity = await self.update(route.id, **entry)
35
+ if route:
36
+ await self.delete(route.id)
37
+ entity = await self.create(**entry)
39
38
  route = cast(KongEntityWithPlugins, entity)
40
39
  route.data["plugins"] = await route.plugins.apply_json(plugins)
41
40
  result.append(route.data)