@@ -490,6 +490,42 @@ def __init__(self, units=None, **unknown_fields):
490490
491491
492492
493+ class AddCharmWithAuth(Type):
494+ _toSchema = {'charm_origin': 'charm-origin', 'force': 'force', 'macaroon': 'macaroon', 'url': 'url'}
495+ _toPy = {'charm-origin': 'charm_origin', 'force': 'force', 'macaroon': 'macaroon', 'url': 'url'}
496+ def __init__(self, charm_origin=None, force=None, macaroon=None, url=None, **unknown_fields):
497+ '''
498+ charm_origin : CharmOrigin
499+ force : bool
500+ macaroon : Macaroon
501+ url : str
502+ '''
503+ charm_origin_ = CharmOrigin.from_json(charm_origin) if charm_origin else None
504+ force_ = force
505+ macaroon_ = Macaroon.from_json(macaroon) if macaroon else None
506+ url_ = url
507+
508+ # Validate arguments against known Juju API types.
509+ if charm_origin_ is not None and not isinstance(charm_origin_, (dict, CharmOrigin)):
510+ raise Exception("Expected charm_origin_ to be a CharmOrigin, received: {}".format(type(charm_origin_)))
511+
512+ if force_ is not None and not isinstance(force_, bool):
513+ raise Exception("Expected force_ to be a bool, received: {}".format(type(force_)))
514+
515+ if macaroon_ is not None and not isinstance(macaroon_, (dict, Macaroon)):
516+ raise Exception("Expected macaroon_ to be a Macaroon, received: {}".format(type(macaroon_)))
517+
518+ if url_ is not None and not isinstance(url_, (bytes, str)):
519+ raise Exception("Expected url_ to be a str, received: {}".format(type(url_)))
520+
521+ self.charm_origin = charm_origin_
522+ self.force = force_
523+ self.macaroon = macaroon_
524+ self.url = url_
525+ self.unknown_fields = unknown_fields
526+
527+
528+
493529class AddCharmWithOrigin(Type):
494530 _toSchema = {'charm_origin': 'charm-origin', 'force': 'force', 'url': 'url'}
495531 _toPy = {'charm-origin': 'charm_origin', 'force': 'force', 'url': 'url'}
@@ -1612,6 +1648,24 @@ def __init__(self, force=None, application=None, attach_storage=None, channel=No
16121648
16131649
16141650
1651+ class ApplicationDestroy(Type):
1652+ _toSchema = {'application': 'application'}
1653+ _toPy = {'application': 'application'}
1654+ def __init__(self, application=None, **unknown_fields):
1655+ '''
1656+ application : str
1657+ '''
1658+ application_ = application
1659+
1660+ # Validate arguments against known Juju API types.
1661+ if application_ is not None and not isinstance(application_, (bytes, str)):
1662+ raise Exception("Expected application_ to be a str, received: {}".format(type(application_)))
1663+
1664+ self.application = application_
1665+ self.unknown_fields = unknown_fields
1666+
1667+
1668+
16151669class ApplicationExpose(Type):
16161670 _toSchema = {'application': 'application', 'exposed_endpoints': 'exposed-endpoints'}
16171671 _toPy = {'application': 'application', 'exposed-endpoints': 'exposed_endpoints'}
@@ -7312,6 +7366,30 @@ def __init__(self, error=None, proxy_connection=None, ssh_connection=None, **unk
73127366
73137367
73147368
7369+ class DashboardConnectionProxy(Type):
7370+ _toSchema = {'config': 'config', 'type_': 'type'}
7371+ _toPy = {'config': 'config', 'type': 'type_'}
7372+ def __init__(self, config=None, type_=None, **unknown_fields):
7373+ '''
7374+ config : typing.Mapping[str, typing.Any]
7375+ type_ : str
7376+ '''
7377+ config_ = config
7378+ type__ = type_
7379+
7380+ # Validate arguments against known Juju API types.
7381+ if config_ is not None and not isinstance(config_, dict):
7382+ raise Exception("Expected config_ to be a Mapping, received: {}".format(type(config_)))
7383+
7384+ if type__ is not None and not isinstance(type__, (bytes, str)):
7385+ raise Exception("Expected type__ to be a str, received: {}".format(type(type__)))
7386+
7387+ self.config = config_
7388+ self.type_ = type__
7389+ self.unknown_fields = unknown_fields
7390+
7391+
7392+
73157393class DashboardConnectionSSHTunnel(Type):
73167394 _toSchema = {'entity': 'entity', 'host': 'host', 'model': 'model', 'port': 'port'}
73177395 _toPy = {'entity': 'entity', 'host': 'host', 'model': 'model', 'port': 'port'}
@@ -7567,6 +7645,24 @@ def __init__(self, results=None, **unknown_fields):
75677645
75687646
75697647
7648+ class DestroyApplicationUnits(Type):
7649+ _toSchema = {'unit_names': 'unit-names'}
7650+ _toPy = {'unit-names': 'unit_names'}
7651+ def __init__(self, unit_names=None, **unknown_fields):
7652+ '''
7653+ unit_names : typing.Sequence[str]
7654+ '''
7655+ unit_names_ = unit_names
7656+
7657+ # Validate arguments against known Juju API types.
7658+ if unit_names_ is not None and not isinstance(unit_names_, (bytes, str, list)):
7659+ raise Exception("Expected unit_names_ to be a Sequence, received: {}".format(type(unit_names_)))
7660+
7661+ self.unit_names = unit_names_
7662+ self.unknown_fields = unknown_fields
7663+
7664+
7665+
75707666class DestroyApplicationsParams(Type):
75717667 _toSchema = {'applications': 'applications'}
75727668 _toPy = {'applications': 'applications'}
@@ -21168,23 +21264,28 @@ def __init__(self, results=None, **unknown_fields):
2116821264
2116921265
2117021266class SecretRevision(Type):
21171- _toSchema = {'create_time': 'create-time', 'expire_time': 'expire-time', 'revision': 'revision', 'update_time': 'update-time', 'value_ref': 'value-ref'}
21172- _toPy = {'create-time': 'create_time', 'expire-time': 'expire_time', 'revision': 'revision', 'update-time': 'update_time', 'value-ref': 'value_ref'}
21173- def __init__(self, create_time=None, expire_time=None, revision=None, update_time=None, value_ref=None, **unknown_fields):
21267+ _toSchema = {'backend_name': 'backend-name', ' create_time': 'create-time', 'expire_time': 'expire-time', 'revision': 'revision', 'update_time': 'update-time', 'value_ref': 'value-ref'}
21268+ _toPy = {'backend-name': 'backend_name', ' create-time': 'create_time', 'expire-time': 'expire_time', 'revision': 'revision', 'update-time': 'update_time', 'value-ref': 'value_ref'}
21269+ def __init__(self, backend_name=None, create_time=None, expire_time=None, revision=None, update_time=None, value_ref=None, **unknown_fields):
2117421270 '''
21271+ backend_name : str
2117521272 create_time : str
2117621273 expire_time : str
2117721274 revision : int
2117821275 update_time : str
2117921276 value_ref : SecretValueRef
2118021277 '''
21278+ backend_name_ = backend_name
2118121279 create_time_ = create_time
2118221280 expire_time_ = expire_time
2118321281 revision_ = revision
2118421282 update_time_ = update_time
2118521283 value_ref_ = SecretValueRef.from_json(value_ref) if value_ref else None
2118621284
2118721285 # Validate arguments against known Juju API types.
21286+ if backend_name_ is not None and not isinstance(backend_name_, (bytes, str)):
21287+ raise Exception("Expected backend_name_ to be a str, received: {}".format(type(backend_name_)))
21288+
2118821289 if create_time_ is not None and not isinstance(create_time_, (bytes, str)):
2118921290 raise Exception("Expected create_time_ to be a str, received: {}".format(type(create_time_)))
2119021291
@@ -21200,6 +21301,7 @@ def __init__(self, create_time=None, expire_time=None, revision=None, update_tim
2120021301 if value_ref_ is not None and not isinstance(value_ref_, (dict, SecretValueRef)):
2120121302 raise Exception("Expected value_ref_ to be a SecretValueRef, received: {}".format(type(value_ref_)))
2120221303
21304+ self.backend_name = backend_name_
2120321305 self.create_time = create_time_
2120421306 self.expire_time = expire_time_
2120521307 self.revision = revision_
@@ -21287,6 +21389,30 @@ def __init__(self, args=None, **unknown_fields):
2128721389
2128821390
2128921391
21392+ class SecretStoreConfig(Type):
21393+ _toSchema = {'params': 'params', 'type_': 'type'}
21394+ _toPy = {'params': 'params', 'type': 'type_'}
21395+ def __init__(self, params=None, type_=None, **unknown_fields):
21396+ '''
21397+ params : typing.Mapping[str, typing.Any]
21398+ type_ : str
21399+ '''
21400+ params_ = params
21401+ type__ = type_
21402+
21403+ # Validate arguments against known Juju API types.
21404+ if params_ is not None and not isinstance(params_, dict):
21405+ raise Exception("Expected params_ to be a Mapping, received: {}".format(type(params_)))
21406+
21407+ if type__ is not None and not isinstance(type__, (bytes, str)):
21408+ raise Exception("Expected type__ to be a str, received: {}".format(type(type__)))
21409+
21410+ self.params = params_
21411+ self.type_ = type__
21412+ self.unknown_fields = unknown_fields
21413+
21414+
21415+
2129021416class SecretTriggerChange(Type):
2129121417 _toSchema = {'next_trigger_time': 'next-trigger-time', 'revision': 'revision', 'uri': 'uri'}
2129221418 _toPy = {'next-trigger-time': 'next_trigger_time', 'revision': 'revision', 'uri': 'uri'}
0 commit comments