Skip to content

Commit

Permalink
chore: rebuild the bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaqq committed Nov 27, 2024
1 parent 10da645 commit fa34b61
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions juju/client/_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3132,6 +3132,7 @@ class ApplicationStatus(Type):
"charm": "charm",
"charm_channel": "charm-channel",
"charm_profile": "charm-profile",
"charm_rev": "charm-rev",
"charm_version": "charm-version",
"endpoint_bindings": "endpoint-bindings",
"err": "err",
Expand All @@ -3154,6 +3155,7 @@ class ApplicationStatus(Type):
"charm": "charm",
"charm-channel": "charm_channel",
"charm-profile": "charm_profile",
"charm-rev": "charm_rev",
"charm-version": "charm_version",
"endpoint-bindings": "endpoint_bindings",
"err": "err",
Expand All @@ -3178,6 +3180,7 @@ def __init__(
charm=None,
charm_channel=None,
charm_profile=None,
charm_rev=None,
charm_version=None,
endpoint_bindings=None,
err=None,
Expand All @@ -3200,6 +3203,7 @@ def __init__(
charm : str
charm_channel : str
charm_profile : str
charm_rev : int
charm_version : str
endpoint_bindings : typing.Mapping[str, str]
err : Error
Expand All @@ -3221,6 +3225,7 @@ def __init__(
charm_ = charm
charm_channel_ = charm_channel
charm_profile_ = charm_profile
charm_rev_ = charm_rev
charm_version_ = charm_version
endpoint_bindings_ = endpoint_bindings
err_ = Error.from_json(err) if err else None
Expand Down Expand Up @@ -3266,6 +3271,11 @@ def __init__(
f"Expected charm_profile_ to be a str, received: {type(charm_profile_)}"
)

if charm_rev_ is not None and not isinstance(charm_rev_, int):
raise Exception(
f"Expected charm_rev_ to be a int, received: {type(charm_rev_)}"
)

if charm_version_ is not None and not isinstance(charm_version_, (bytes, str)):
raise Exception(
f"Expected charm_version_ to be a str, received: {type(charm_version_)}"
Expand Down Expand Up @@ -3346,6 +3356,7 @@ def __init__(
self.charm = charm_
self.charm_channel = charm_channel_
self.charm_profile = charm_profile_
self.charm_rev = charm_rev_
self.charm_version = charm_version_
self.endpoint_bindings = endpoint_bindings_
self.err = err_
Expand Down

0 comments on commit fa34b61

Please sign in to comment.