Skip to content

Commit 4c62870

Browse files
committed
feat: add Juju 3.6 schemata
1 parent 94e12e7 commit 4c62870

10 files changed

Lines changed: 23054 additions & 31 deletions

File tree

juju/client/_client.py

Lines changed: 5 additions & 2 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, _client3, _client4, _client2, _client17, _client6, _client11, _client1, _client10, _client9, _client5, _client19
7+
from juju.client import _client7, _client3, _client4, _client2, _client17, _client6, _client11, _client1, _client10, _client9, _client5, _client19, _client20, _client8, _client12
88

99

1010
CLIENTS = {
@@ -19,7 +19,10 @@
1919
"10": _client10,
2020
"9": _client9,
2121
"5": _client5,
22-
"19": _client19
22+
"19": _client19,
23+
"20": _client20,
24+
"8": _client8,
25+
"12": _client12
2326
}
2427

2528

juju/client/_client10.py

Lines changed: 897 additions & 0 deletions
Large diffs are not rendered by default.

juju/client/_client12.py

Lines changed: 1083 additions & 0 deletions
Large diffs are not rendered by default.

juju/client/_client2.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,13 @@ async def SetMeterStatus(self, statues=None):
472472
class SecretsFacade(Type):
473473
name = 'Secrets'
474474
version = 2
475-
schema = {'definitions': {'CreateSecretArg': {'additionalProperties': False,
475+
schema = {'definitions': {'AccessInfo': {'additionalProperties': False,
476+
'properties': {'role': {'type': 'string'},
477+
'scope-tag': {'type': 'string'},
478+
'target-tag': {'type': 'string'}},
479+
'required': ['target-tag', 'scope-tag', 'role'],
480+
'type': 'object'},
481+
'CreateSecretArg': {'additionalProperties': False,
476482
'properties': {'UpsertSecretArg': {'$ref': '#/definitions/UpsertSecretArg'},
477483
'content': {'$ref': '#/definitions/SecretContentParams'},
478484
'description': {'type': 'string'},
@@ -531,13 +537,16 @@ class SecretsFacade(Type):
531537
'applications'],
532538
'type': 'object'},
533539
'ListSecretResult': {'additionalProperties': False,
534-
'properties': {'create-time': {'format': 'date-time',
540+
'properties': {'access': {'items': {'$ref': '#/definitions/AccessInfo'},
541+
'type': 'array'},
542+
'create-time': {'format': 'date-time',
535543
'type': 'string'},
536544
'description': {'type': 'string'},
537545
'label': {'type': 'string'},
538546
'latest-expire-time': {'format': 'date-time',
539547
'type': 'string'},
540548
'latest-revision': {'type': 'integer'},
549+
'latest-revision-checksum': {'type': 'string'},
541550
'next-rotate-time': {'format': 'date-time',
542551
'type': 'string'},
543552
'owner-tag': {'type': 'string'},
@@ -553,6 +562,7 @@ class SecretsFacade(Type):
553562
'version',
554563
'owner-tag',
555564
'latest-revision',
565+
'latest-revision-checksum',
556566
'create-time',
557567
'update-time',
558568
'revisions'],
@@ -568,7 +578,8 @@ class SecretsFacade(Type):
568578
'required': ['show-secrets', 'filter'],
569579
'type': 'object'},
570580
'SecretContentParams': {'additionalProperties': False,
571-
'properties': {'data': {'patternProperties': {'.*': {'type': 'string'}},
581+
'properties': {'checksum': {'type': 'string'},
582+
'data': {'patternProperties': {'.*': {'type': 'string'}},
572583
'type': 'object'},
573584
'value-ref': {'$ref': '#/definitions/SecretValueRef'}},
574585
'type': 'object'},

0 commit comments

Comments
 (0)