Skip to content

Commit

Permalink
Merge pull request #1220 from dimaqq/chore-juju-360-schema
Browse files Browse the repository at this point in the history
#1220

Juju 3.6.0 was released yesterday, so update 3.6-rcN schema to 3.6.0.

The only change is the addition of the `charm_rev: int` field in one response.
  • Loading branch information
jujubot authored Nov 27, 2024
2 parents 0e6b5f7 + fa34b61 commit 7662197
Show file tree
Hide file tree
Showing 2 changed files with 14 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
Original file line number Diff line number Diff line change
Expand Up @@ -6070,6 +6070,9 @@
"charm-profile": {
"type": "string"
},
"charm-rev": {
"type": "integer"
},
"charm-version": {
"type": "string"
},
Expand Down

0 comments on commit 7662197

Please sign in to comment.