@@ -10891,10 +10891,11 @@ def __init__(self, attachment=None, attributes=None, provider=None, size=None, s
1089110891
1089210892
1089310893class KubernetesProvisioningInfo(Type):
10894- _toSchema = {'constraints': 'constraints', 'deployment_info': 'deployment-info', 'devices': 'devices', 'filesystems': 'filesystems', 'operator_image_path': 'operator-image-path', 'pod_spec': 'pod-spec', 'raw_k8s_spec': 'raw-k8s-spec', 'tags': 'tags', 'volumes': 'volumes'}
10895- _toPy = {'constraints': 'constraints', 'deployment-info': 'deployment_info', 'devices': 'devices', 'filesystems': 'filesystems', 'operator-image-path': 'operator_image_path', 'pod-spec': 'pod_spec', 'raw-k8s-spec': 'raw_k8s_spec', 'tags': 'tags', 'volumes': 'volumes'}
10896- def __init__(self, constraints=None, deployment_info=None, devices=None, filesystems=None, operator_image_path=None, pod_spec=None, raw_k8s_spec=None, tags=None, volumes=None, **unknown_fields):
10894+ _toSchema = {'charm_modified_version': 'charm-modified-version', ' constraints': 'constraints', 'deployment_info': 'deployment-info', 'devices': 'devices', 'filesystems': 'filesystems', 'operator_image_path': 'operator-image-path', 'pod_spec': 'pod-spec', 'raw_k8s_spec': 'raw-k8s-spec', 'tags': 'tags', 'volumes': 'volumes'}
10895+ _toPy = {'charm-modified-version': 'charm_modified_version', ' constraints': 'constraints', 'deployment-info': 'deployment_info', 'devices': 'devices', 'filesystems': 'filesystems', 'operator-image-path': 'operator_image_path', 'pod-spec': 'pod_spec', 'raw-k8s-spec': 'raw_k8s_spec', 'tags': 'tags', 'volumes': 'volumes'}
10896+ def __init__(self, charm_modified_version=None, constraints=None, deployment_info=None, devices=None, filesystems=None, operator_image_path=None, pod_spec=None, raw_k8s_spec=None, tags=None, volumes=None, **unknown_fields):
1089710897 '''
10898+ charm_modified_version : int
1089810899 constraints : Value
1089910900 deployment_info : KubernetesDeploymentInfo
1090010901 devices : typing.Sequence[~KubernetesDeviceParams]
@@ -10905,6 +10906,7 @@ def __init__(self, constraints=None, deployment_info=None, devices=None, filesys
1090510906 tags : typing.Mapping[str, str]
1090610907 volumes : typing.Sequence[~KubernetesVolumeParams]
1090710908 '''
10909+ charm_modified_version_ = charm_modified_version
1090810910 constraints_ = Value.from_json(constraints) if constraints else None
1090910911 deployment_info_ = KubernetesDeploymentInfo.from_json(deployment_info) if deployment_info else None
1091010912 devices_ = [KubernetesDeviceParams.from_json(o) for o in devices or []]
@@ -10916,6 +10918,9 @@ def __init__(self, constraints=None, deployment_info=None, devices=None, filesys
1091610918 volumes_ = [KubernetesVolumeParams.from_json(o) for o in volumes or []]
1091710919
1091810920 # Validate arguments against known Juju API types.
10921+ if charm_modified_version_ is not None and not isinstance(charm_modified_version_, int):
10922+ raise Exception("Expected charm_modified_version_ to be a int, received: {}".format(type(charm_modified_version_)))
10923+
1091910924 if constraints_ is not None and not isinstance(constraints_, (dict, Value)):
1092010925 raise Exception("Expected constraints_ to be a Value, received: {}".format(type(constraints_)))
1092110926
@@ -10943,6 +10948,7 @@ def __init__(self, constraints=None, deployment_info=None, devices=None, filesys
1094310948 if volumes_ is not None and not isinstance(volumes_, (bytes, str, list)):
1094410949 raise Exception("Expected volumes_ to be a Sequence, received: {}".format(type(volumes_)))
1094510950
10951+ self.charm_modified_version = charm_modified_version_
1094610952 self.constraints = constraints_
1094710953 self.deployment_info = deployment_info_
1094810954 self.devices = devices_
0 commit comments