@@ -5515,11 +5515,12 @@ def __init__(self, default=None, description=None, type_=None, **unknown_fields)
55155515
55165516
55175517class 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
2375523761class 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