Skip to content

Commit cfbcd29

Browse files
Replace schemas.json with a wellformed version. (#800)
1 parent 4a32568 commit cfbcd29

10 files changed

Lines changed: 12 additions & 51389 deletions

juju/client/_client.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from juju.client._definitions import *
55

66

7-
from juju.client import _client7, _client1, _client3, _client4, _client2, _client15, _client6, _client5, _client11, _client9, _client18, _client17, _client10
7+
from juju.client import _client7, _client1, _client3, _client4, _client2, _client17, _client6, _client11, _client10, _client5, _client9, _client18
88

99

1010
CLIENTS = {
@@ -13,14 +13,13 @@
1313
"3": _client3,
1414
"4": _client4,
1515
"2": _client2,
16-
"15": _client15,
16+
"17": _client17,
1717
"6": _client6,
18-
"5": _client5,
1918
"11": _client11,
19+
"10": _client10,
20+
"5": _client5,
2021
"9": _client9,
21-
"18": _client18,
22-
"17": _client17,
23-
"10": _client10
22+
"18": _client18
2423
}
2524

2625

juju/client/_client1.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9501,8 +9501,7 @@ class SecretsFacade(Type):
95019501
'required': ['show-secrets', 'filter'],
95029502
'type': 'object'},
95039503
'SecretRevision': {'additionalProperties': False,
9504-
'properties': {'backend-name': {'type': 'string'},
9505-
'create-time': {'format': 'date-time',
9504+
'properties': {'create-time': {'format': 'date-time',
95069505
'type': 'string'},
95079506
'expire-time': {'format': 'date-time',
95089507
'type': 'string'},
@@ -9740,8 +9739,7 @@ class SecretsManagerFacade(Type):
97409739
'required': ['results'],
97419740
'type': 'object'},
97429741
'SecretRevision': {'additionalProperties': False,
9743-
'properties': {'backend-name': {'type': 'string'},
9744-
'create-time': {'format': 'date-time',
9742+
'properties': {'create-time': {'format': 'date-time',
97459743
'type': 'string'},
97469744
'expire-time': {'format': 'date-time',
97479745
'type': 'string'},

juju/client/_client17.py

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
class ApplicationFacade(Type):
99
name = 'Application'
1010
version = 17
11-
schema = {'definitions': {'': {'additionalProperties': False, 'type': 'object'},
12-
'AddApplicationUnits': {'additionalProperties': False,
11+
schema = {'definitions': {'AddApplicationUnits': {'additionalProperties': False,
1312
'properties': {'application': {'type': 'string'},
1413
'attach-storage': {'items': {'type': 'string'},
1514
'type': 'array'},
@@ -713,8 +712,6 @@ class ApplicationFacade(Type):
713712
'properties': {'Params': {'$ref': '#/definitions/ApplicationsDeploy'},
714713
'Result': {'$ref': '#/definitions/ErrorResults'}},
715714
'type': 'object'},
716-
'Destroy': {'properties': {'Params': {'$ref': '#/definitions/'}},
717-
'type': 'object'},
718715
'DestroyApplication': {'description': 'DestroyApplication '
719716
'removes a given set of '
720717
'applications.',
@@ -741,8 +738,6 @@ class ApplicationFacade(Type):
741738
'properties': {'Params': {'$ref': '#/definitions/DestroyUnitsParams'},
742739
'Result': {'$ref': '#/definitions/DestroyUnitResults'}},
743740
'type': 'object'},
744-
'DestroyUnits': {'properties': {'Params': {'$ref': '#/definitions/'}},
745-
'type': 'object'},
746741
'Expose': {'description': 'Expose changes the juju-managed '
747742
'firewall to expose any ports that\n'
748743
'were also explicitly marked by '
@@ -1058,25 +1053,6 @@ async def Deploy(self, applications=None):
10581053

10591054

10601055

1061-
@ReturnMapping(None)
1062-
async def Destroy(self):
1063-
'''
1064-
1065-
Returns -> None
1066-
'''
1067-
1068-
# map input types to rpc msg
1069-
_params = dict()
1070-
msg = dict(type='Application',
1071-
request='Destroy',
1072-
version=17,
1073-
params=_params)
1074-
1075-
reply = await self.rpc(msg)
1076-
return reply
1077-
1078-
1079-
10801056
@ReturnMapping(DestroyApplicationResults)
10811057
async def DestroyApplication(self, applications=None):
10821058
'''
@@ -1185,25 +1161,6 @@ async def DestroyUnit(self, units=None):
11851161

11861162

11871163

1188-
@ReturnMapping(None)
1189-
async def DestroyUnits(self):
1190-
'''
1191-
1192-
Returns -> None
1193-
'''
1194-
1195-
# map input types to rpc msg
1196-
_params = dict()
1197-
msg = dict(type='Application',
1198-
request='DestroyUnits',
1199-
version=17,
1200-
params=_params)
1201-
1202-
reply = await self.rpc(msg)
1203-
return reply
1204-
1205-
1206-
12071164
@ReturnMapping(None)
12081165
async def Expose(self, application=None, exposed_endpoints=None):
12091166
'''

juju/client/_client18.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,7 @@ class UniterFacade(Type):
782782
'required': ['results'],
783783
'type': 'object'},
784784
'SecretRevision': {'additionalProperties': False,
785-
'properties': {'backend-name': {'type': 'string'},
786-
'create-time': {'format': 'date-time',
785+
'properties': {'create-time': {'format': 'date-time',
787786
'type': 'string'},
788787
'expire-time': {'format': 'date-time',
789788
'type': 'string'},

0 commit comments

Comments
 (0)