Skip to content

Commit b1ffb77

Browse files
committed
Facade schemas for 2.9.27
1 parent b9dcaf4 commit b1ffb77

7 files changed

Lines changed: 52452 additions & 11 deletions

File tree

juju/client/_client13.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ class ApplicationFacade(Type):
272272
'type': 'object'},
273273
'CharmOrigin': {'additionalProperties': False,
274274
'properties': {'architecture': {'type': 'string'},
275+
'branch': {'type': 'string'},
275276
'hash': {'type': 'string'},
276277
'id': {'type': 'string'},
277278
'instance-key': {'type': 'string'},

juju/client/_client2.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4771,9 +4771,9 @@ class CleanerFacade(Type):
47714771
'type': 'object'}},
47724772
'properties': {'Cleanup': {'description': 'Cleanup triggers a state cleanup',
47734773
'type': 'object'},
4774-
'WatchCleanups': {'description': 'WatchChanges watches for '
4775-
'cleanups to be perfomed in '
4776-
'state',
4774+
'WatchCleanups': {'description': 'WatchCleanups watches for '
4775+
'cleanups to be performed in '
4776+
'state.',
47774777
'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
47784778
'type': 'object'}},
47794779
'type': 'object'}
@@ -4803,7 +4803,7 @@ async def Cleanup(self):
48034803
@ReturnMapping(NotifyWatchResult)
48044804
async def WatchCleanups(self):
48054805
'''
4806-
WatchChanges watches for cleanups to be perfomed in state
4806+
WatchCleanups watches for cleanups to be performed in state.
48074807

48084808

48094809
Returns -> NotifyWatchResult
@@ -12536,6 +12536,7 @@ class ResourcesFacade(Type):
1253612536
'type': 'object'},
1253712537
'CharmOrigin': {'additionalProperties': False,
1253812538
'properties': {'architecture': {'type': 'string'},
12539+
'branch': {'type': 'string'},
1253912540
'hash': {'type': 'string'},
1254012541
'id': {'type': 'string'},
1254112542
'instance-key': {'type': 'string'},

juju/client/_client4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,6 +1902,7 @@ class CharmsFacade(Type):
19021902
'type': 'object'},
19031903
'CharmOrigin': {'additionalProperties': False,
19041904
'properties': {'architecture': {'type': 'string'},
1905+
'branch': {'type': 'string'},
19051906
'hash': {'type': 'string'},
19061907
'id': {'type': 'string'},
19071908
'instance-key': {'type': 'string'},

juju/client/_client5.py

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

juju/client/_definitions.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5515,11 +5515,12 @@ def __init__(self, default=None, description=None, type_=None, **unknown_fields)
55155515

55165516

55175517
class CharmOrigin(Type):
5518-
_toSchema = {'architecture': 'architecture', 'hash_': 'hash', 'id_': 'id', 'instance_key': 'instance-key', 'os': 'os', 'revision': 'revision', 'risk': 'risk', 'series': 'series', 'source': 'source', 'track': 'track', 'type_': 'type'}
5519-
_toPy = {'architecture': 'architecture', 'hash': 'hash_', 'id': 'id_', 'instance-key': 'instance_key', 'os': 'os', 'revision': 'revision', 'risk': 'risk', 'series': 'series', 'source': 'source', 'track': 'track', 'type': 'type_'}
5520-
def __init__(self, architecture=None, hash_=None, id_=None, instance_key=None, os=None, revision=None, risk=None, series=None, source=None, track=None, type_=None, **unknown_fields):
5518+
_toSchema = {'architecture': 'architecture', 'branch': 'branch', 'hash_': 'hash', 'id_': 'id', 'instance_key': 'instance-key', 'os': 'os', 'revision': 'revision', 'risk': 'risk', 'series': 'series', 'source': 'source', 'track': 'track', 'type_': 'type'}
5519+
_toPy = {'architecture': 'architecture', 'branch': 'branch', 'hash': 'hash_', 'id': 'id_', 'instance-key': 'instance_key', 'os': 'os', 'revision': 'revision', 'risk': 'risk', 'series': 'series', 'source': 'source', 'track': 'track', 'type': 'type_'}
5520+
def __init__(self, architecture=None, branch=None, hash_=None, id_=None, instance_key=None, os=None, revision=None, risk=None, series=None, source=None, track=None, type_=None, **unknown_fields):
55215521
'''
55225522
architecture : str
5523+
branch : str
55235524
hash_ : str
55245525
id_ : str
55255526
instance_key : str
@@ -5532,6 +5533,7 @@ def __init__(self, architecture=None, hash_=None, id_=None, instance_key=None, o
55325533
type_ : str
55335534
'''
55345535
architecture_ = architecture
5536+
branch_ = branch
55355537
hash__ = hash_
55365538
id__ = id_
55375539
instance_key_ = instance_key
@@ -5547,6 +5549,9 @@ def __init__(self, architecture=None, hash_=None, id_=None, instance_key=None, o
55475549
if architecture_ is not None and not isinstance(architecture_, (bytes, str)):
55485550
raise Exception("Expected architecture_ to be a str, received: {}".format(type(architecture_)))
55495551

5552+
if branch_ is not None and not isinstance(branch_, (bytes, str)):
5553+
raise Exception("Expected branch_ to be a str, received: {}".format(type(branch_)))
5554+
55505555
if hash__ is not None and not isinstance(hash__, (bytes, str)):
55515556
raise Exception("Expected hash__ to be a str, received: {}".format(type(hash__)))
55525557

@@ -5578,6 +5583,7 @@ def __init__(self, architecture=None, hash_=None, id_=None, instance_key=None, o
55785583
raise Exception("Expected type__ to be a str, received: {}".format(type(type__)))
55795584

55805585
self.architecture = architecture_
5586+
self.branch = branch_
55815587
self.hash_ = hash__
55825588
self.id_ = id__
55835589
self.instance_key = instance_key_
@@ -23753,23 +23759,29 @@ def __init__(self, message=None, **unknown_fields):
2375323759

2375423760

2375523761
class SetModelAgentVersion(Type):
23756-
_toSchema = {'force': 'force', 'version': 'version'}
23757-
_toPy = {'force': 'force', 'version': 'version'}
23758-
def __init__(self, force=None, version=None, **unknown_fields):
23762+
_toSchema = {'agent_stream': 'agent-stream', 'force': 'force', 'version': 'version'}
23763+
_toPy = {'agent-stream': 'agent_stream', 'force': 'force', 'version': 'version'}
23764+
def __init__(self, agent_stream=None, force=None, version=None, **unknown_fields):
2375923765
'''
23766+
agent_stream : str
2376023767
force : bool
2376123768
version : Number
2376223769
'''
23770+
agent_stream_ = agent_stream
2376323771
force_ = force
2376423772
version_ = Number.from_json(version) if version else None
2376523773

2376623774
# Validate arguments against known Juju API types.
23775+
if agent_stream_ is not None and not isinstance(agent_stream_, (bytes, str)):
23776+
raise Exception("Expected agent_stream_ to be a str, received: {}".format(type(agent_stream_)))
23777+
2376723778
if force_ is not None and not isinstance(force_, bool):
2376823779
raise Exception("Expected force_ to be a bool, received: {}".format(type(force_)))
2376923780

2377023781
if version_ is not None and not isinstance(version_, (dict, Number)):
2377123782
raise Exception("Expected version_ to be a Number, received: {}".format(type(version_)))
2377223783

23784+
self.agent_stream = agent_stream_
2377323785
self.force = force_
2377423786
self.version = version_
2377523787
self.unknown_fields = unknown_fields

0 commit comments

Comments
 (0)