From dcd34e46b758664970eece93716979930a9224b8 Mon Sep 17 00:00:00 2001 From: James Garner Date: Mon, 30 Sep 2024 15:53:00 +1300 Subject: [PATCH] fix: bring back old facade versions to connection.py --- juju/client/connection.py | 75 +++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/juju/client/connection.py b/juju/client/connection.py index c39e2dbb..3a752765 100644 --- a/juju/client/connection.py +++ b/juju/client/connection.py @@ -22,43 +22,45 @@ # Please keep in alphabetical order client_facades = { - 'Action': {'versions': [7]}, + 'Action': {'versions': [2, 6, 7]}, 'ActionPruner': {'versions': [1]}, - 'Agent': {'versions': [3]}, + 'Agent': {'versions': [2, 3]}, 'AgentLifeFlag': {'versions': [1]}, 'AgentTools': {'versions': [1]}, - 'AllModelWatcher': {'versions': [4]}, - 'AllWatcher': {'versions': [3]}, + 'AllModelWatcher': {'versions': [2, 3, 4]}, + 'AllWatcher': {'versions': [1, 2, 3, 4]}, 'Annotations': {'versions': [2]}, - 'Application': {'versions': [15, 16, 17, 18, 19]}, - 'ApplicationOffers': {'versions': [4]}, + 'Application': {'versions': [14, 15, 16, 17, 18, 19]}, + 'ApplicationOffers': {'versions': [1, 2, 4]}, 'ApplicationScaler': {'versions': [1]}, - 'Backups': {'versions': [3]}, + 'Backups': {'versions': [1, 2, 3]}, 'Block': {'versions': [2]}, - 'Bundle': {'versions': [6]}, + 'Bundle': {'versions': [5, 6]}, 'CAASAdmission': {'versions': [1]}, - 'CAASAgent': {'versions': [2]}, + 'CAASAgent': {'versions': [1, 2]}, 'CAASApplication': {'versions': [1]}, 'CAASApplicationProvisioner': {'versions': [1]}, 'CAASFirewaller': {'versions': [1]}, + 'CAASFirewallerEmbedded': {'versions': [1]}, 'CAASFirewallerSidecar': {'versions': [1]}, 'CAASModelConfigManager': {'versions': [1]}, 'CAASModelOperator': {'versions': [1]}, 'CAASOperator': {'versions': [1]}, 'CAASOperatorProvisioner': {'versions': [1]}, 'CAASOperatorUpgrader': {'versions': [1]}, - 'CAASUnitProvisioner': {'versions': [2]}, + 'CAASUnitProvisioner': {'versions': [1, 2]}, 'CharmDownloader': {'versions': [1]}, + 'CharmHub': {'versions': [1]}, 'CharmRevisionUpdater': {'versions': [2]}, 'Charms': {'versions': [5, 6, 7]}, 'Cleaner': {'versions': [2]}, - 'Client': {'versions': [6, 7]}, - 'Cloud': {'versions': [7]}, - 'Controller': {'versions': [11]}, + 'Client': {'versions': [5, 6, 7]}, + 'Cloud': {'versions': [1, 2, 3, 4, 5, 7]}, + 'Controller': {'versions': [9, 11]}, 'CredentialManager': {'versions': [1]}, - 'CredentialValidator': {'versions': [2]}, + 'CredentialValidator': {'versions': [1, 2]}, 'CrossController': {'versions': [1]}, - 'CrossModelRelations': {'versions': [2, 3]}, + 'CrossModelRelations': {'versions': [1, 2, 3]}, 'CrossModelSecrets': {'versions': [1]}, 'Deployer': {'versions': [1]}, 'DiskManager': {'versions': [2]}, @@ -68,13 +70,14 @@ 'FanConfigurer': {'versions': [1]}, 'FilesystemAttachmentsWatcher': {'versions': [2]}, 'FirewallRules': {'versions': [1]}, - 'Firewaller': {'versions': [7]}, + 'Firewaller': {'versions': [3, 4, 5, 7]}, 'HighAvailability': {'versions': [2]}, 'HostKeyReporter': {'versions': [1]}, + 'ImageManager': {'versions': [2]}, 'ImageMetadata': {'versions': [3]}, 'ImageMetadataManager': {'versions': [1]}, - 'InstanceMutater': {'versions': [3]}, - 'InstancePoller': {'versions': [4]}, + 'InstanceMutater': {'versions': [2, 3]}, + 'InstancePoller': {'versions': [3, 4]}, 'KeyManager': {'versions': [1]}, 'KeyUpdater': {'versions': [1]}, 'LeadershipService': {'versions': [2]}, @@ -84,19 +87,19 @@ 'MachineActions': {'versions': [1]}, 'MachineManager': {'versions': [9, 10]}, 'MachineUndertaker': {'versions': [1]}, - 'Machiner': {'versions': [5]}, - 'MeterStatus': {'versions': [2]}, + 'Machiner': {'versions': [1, 2, 5]}, + 'MeterStatus': {'versions': [1, 2]}, 'MetricsAdder': {'versions': [2]}, 'MetricsDebug': {'versions': [2]}, 'MetricsManager': {'versions': [1]}, 'MigrationFlag': {'versions': [1]}, - 'MigrationMaster': {'versions': [3]}, + 'MigrationMaster': {'versions': [1, 3]}, 'MigrationMinion': {'versions': [1]}, 'MigrationStatusWatcher': {'versions': [1]}, 'MigrationTarget': {'versions': [1, 2, 3]}, - 'ModelConfig': {'versions': [3]}, - 'ModelGeneration': {'versions': [4]}, - 'ModelManager': {'versions': [9]}, + 'ModelConfig': {'versions': [1, 2, 3]}, + 'ModelGeneration': {'versions': [1, 2, 4]}, + 'ModelManager': {'versions': [2, 3, 4, 5, 9]}, 'ModelSummaryWatcher': {'versions': [1]}, 'ModelUpgrader': {'versions': [1]}, 'NotifyWatcher': {'versions': [1]}, @@ -105,17 +108,18 @@ 'PayloadsHookContext': {'versions': [1]}, 'Pinger': {'versions': [1]}, 'Provisioner': {'versions': [11]}, - 'ProxyUpdater': {'versions': [2]}, - 'RaftLease': {'versions': [2]}, + 'ProxyUpdater': {'versions': [1, 2]}, + 'RaftLease': {'versions': [1, 2]}, 'Reboot': {'versions': [2]}, 'RelationStatusWatcher': {'versions': [1]}, 'RelationUnitsWatcher': {'versions': [1]}, 'RemoteRelationWatcher': {'versions': [1]}, - 'RemoteRelations': {'versions': [2]}, - 'Resources': {'versions': [3]}, + 'RemoteRelations': {'versions': [1, 2]}, + 'Resources': {'versions': [1, 2, 3]}, 'ResourcesHookContext': {'versions': [1]}, + 'Resumer': {'versions': [2]}, 'RetryStrategy': {'versions': [1]}, - 'SSHClient': {'versions': [4]}, + 'SSHClient': {'versions': [1, 2, 3, 4]}, 'SecretBackends': {'versions': [1]}, 'SecretBackendsManager': {'versions': [1]}, 'SecretBackendsRotateWatcher': {'versions': [1]}, @@ -123,21 +127,22 @@ 'SecretsDrain': {'versions': [1]}, 'SecretsManager': {'versions': [1, 2]}, 'SecretsRevisionWatcher': {'versions': [1]}, + 'SecretsRotationWatcher': {'versions': [1]}, 'SecretsTriggerWatcher': {'versions': [1]}, 'Singular': {'versions': [2]}, 'Spaces': {'versions': [6]}, 'StatusHistory': {'versions': [2]}, - 'Storage': {'versions': [6]}, - 'StorageProvisioner': {'versions': [4]}, + 'Storage': {'versions': [3, 4, 6]}, + 'StorageProvisioner': {'versions': [3, 4]}, 'StringsWatcher': {'versions': [1]}, - 'Subnets': {'versions': [5]}, + 'Subnets': {'versions': [2, 4, 5]}, 'Undertaker': {'versions': [1]}, 'UnitAssigner': {'versions': [1]}, 'Uniter': {'versions': [18, 19]}, - 'UpgradeSeries': {'versions': [3]}, - 'UpgradeSteps': {'versions': [2]}, + 'UpgradeSeries': {'versions': [1, 3]}, + 'UpgradeSteps': {'versions': [1, 2]}, 'Upgrader': {'versions': [1]}, - 'UserManager': {'versions': [3]}, + 'UserManager': {'versions': [1, 2, 3]}, 'UserSecretsDrain': {'versions': [1]}, 'UserSecretsManager': {'versions': [1]}, 'VolumeAttachmentPlansWatcher': {'versions': [1]},