Skip to content

Commit

Permalink
feat(schemas): replace existing schemas with latest client schemas
Browse files Browse the repository at this point in the history
Replace existing `3.1.X` and `3.3.X` schemas with the latest client only
schemas for versions `3.1.9` and `3.3.6`. Regenerate code by removing
`juju/client/_client*.py` and running `make client`. Update
`juju/client/connection.py` with facades from `juju` `3.3.6`
`api/facadeversions.go` (a superset of the facades from `3.1.9`).
  • Loading branch information
james-garner-canonical committed Sep 27, 2024
1 parent 0a22648 commit fbde29a
Show file tree
Hide file tree
Showing 18 changed files with 46,168 additions and 265,952 deletions.
351 changes: 3 additions & 348 deletions juju/client/_client.py

Large diffs are not rendered by default.

13,165 changes: 693 additions & 12,472 deletions juju/client/_client1.py

Large diffs are not rendered by default.

2,297 changes: 0 additions & 2,297 deletions juju/client/_client11.py

Large diffs are not rendered by default.

6,393 changes: 0 additions & 6,393 deletions juju/client/_client18.py

This file was deleted.

4,491 changes: 0 additions & 4,491 deletions juju/client/_client19.py

Large diffs are not rendered by default.

6,776 changes: 413 additions & 6,363 deletions juju/client/_client2.py

Large diffs are not rendered by default.

3,299 changes: 548 additions & 2,751 deletions juju/client/_client3.py

Large diffs are not rendered by default.

2,978 changes: 411 additions & 2,567 deletions juju/client/_client4.py

Large diffs are not rendered by default.

564 changes: 0 additions & 564 deletions juju/client/_client5.py

Large diffs are not rendered by default.

1,175 changes: 0 additions & 1,175 deletions juju/client/_client7.py

Large diffs are not rendered by default.

28,686 changes: 8,415 additions & 20,271 deletions juju/client/_definitions.py

Large diffs are not rendered by default.

103 changes: 49 additions & 54 deletions juju/client/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,84 +22,81 @@

# Please keep in alphabetical order
client_facades = {
'Action': {'versions': [2, 6, 7]},
'Action': {'versions': [7]},
'ActionPruner': {'versions': [1]},
'Agent': {'versions': [2, 3]},
'Agent': {'versions': [3]},
'AgentLifeFlag': {'versions': [1]},
'AgentTools': {'versions': [1]},
'AllModelWatcher': {'versions': [2, 3, 4]},
'AllWatcher': {'versions': [1, 2, 3, 4]},
'AllModelWatcher': {'versions': [4]},
'AllWatcher': {'versions': [3]},
'Annotations': {'versions': [2]},
'Application': {'versions': [14, 15, 16, 17, 19]},
'ApplicationOffers': {'versions': [1, 2, 4]},
'Application': {'versions': [15, 16, 17, 18, 19]},
'ApplicationOffers': {'versions': [4]},
'ApplicationScaler': {'versions': [1]},
'Backups': {'versions': [1, 2, 3]},
'Backups': {'versions': [3]},
'Block': {'versions': [2]},
'Bundle': {'versions': [5, 6]},
'CharmHub': {'versions': [1]},
'CharmRevisionUpdater': {'versions': [2]},
'CharmDownloader': {'versions': [1]},
'Charms': {'versions': [5, 6]},
'Cleaner': {'versions': [2]},
'Client': {'versions': [5, 6]},
'Cloud': {'versions': [1, 2, 3, 4, 5, 7]},
'Controller': {'versions': [9, 11]},
'CrossModelRelations': {'versions': [1, 2]},
'CrossModelSecrets': {'versions': [1]},
'CrossController': {'versions': [1]},
'CredentialManager': {'versions': [1]},
'CredentialValidator': {'versions': [1, 2]},
'Bundle': {'versions': [6]},
'CAASAdmission': {'versions': [1]},
'CAASAgent': {'versions': [1, 2]},
'CAASAgent': {'versions': [2]},
'CAASApplication': {'versions': [1]},
'CAASApplicationProvisioner': {'versions': [1]},
'CAASFirewaller': {'versions': [1]},
'CAASFirewallerEmbedded': {'versions': [1]},
'CAASFirewallerSidecar': {'versions': [1]},
'CAASModelOperator': {'versions': [1]},
'CAASModelConfigManager': {'versions': [1]},
'CAASModelOperator': {'versions': [1]},
'CAASOperator': {'versions': [1]},
'CAASOperatorProvisioner': {'versions': [1]},
'CAASOperatorUpgrader': {'versions': [1]},
'CAASUnitProvisioner': {'versions': [1, 2]},
'CAASUnitProvisioner': {'versions': [2]},
'CharmDownloader': {'versions': [1]},
'CharmRevisionUpdater': {'versions': [2]},
'Charms': {'versions': [5, 6, 7]},
'Cleaner': {'versions': [2]},
'Client': {'versions': [6, 7]},
'Cloud': {'versions': [7]},
'Controller': {'versions': [11]},
'CredentialManager': {'versions': [1]},
'CredentialValidator': {'versions': [2]},
'CrossController': {'versions': [1]},
'CrossModelRelations': {'versions': [2, 3]},
'CrossModelSecrets': {'versions': [1]},
'Deployer': {'versions': [1]},
'DiskManager': {'versions': [2]},
'EntityWatcher': {'versions': [2]},
'EnvironUpgrader': {'versions': [1]},
'ExternalControllerUpdater': {'versions': [1]},
'FanConfigurer': {'versions': [1]},
'FilesystemAttachmentsWatcher': {'versions': [2]},
'Firewaller': {'versions': [3, 4, 5, 7]},
'FirewallRules': {'versions': [1]},
'Firewaller': {'versions': [7]},
'HighAvailability': {'versions': [2]},
'HostKeyReporter': {'versions': [1]},
'ImageManager': {'versions': [2]},
'ImageMetadata': {'versions': [3]},
'ImageMetadataManager': {'versions': [1]},
'InstanceMutater': {'versions': [2, 3]},
'InstancePoller': {'versions': [3, 4]},
'InstanceMutater': {'versions': [3]},
'InstancePoller': {'versions': [4]},
'KeyManager': {'versions': [1]},
'KeyUpdater': {'versions': [1]},
'LeadershipService': {'versions': [2]},
'LifeFlag': {'versions': [1]},
'Logger': {'versions': [1]},
'LogForwarding': {'versions': [1]},
'Machiner': {'versions': [1, 2, 5]},
'Logger': {'versions': [1]},
'MachineActions': {'versions': [1]},
'MachineManager': {'versions': [9, 10]},
'MachineUndertaker': {'versions': [1]},
'MeterStatus': {'versions': [1, 2]},
'Machiner': {'versions': [5]},
'MeterStatus': {'versions': [2]},
'MetricsAdder': {'versions': [2]},
'MetricsDebug': {'versions': [2]},
'MetricsManager': {'versions': [1]},
'MigrationFlag': {'versions': [1]},
'MigrationMaster': {'versions': [1, 3]},
'MigrationMaster': {'versions': [3]},
'MigrationMinion': {'versions': [1]},
'MigrationStatusWatcher': {'versions': [1]},
'MigrationTarget': {'versions': [1]},
'ModelConfig': {'versions': [1, 2, 3]},
'ModelGeneration': {'versions': [1, 2, 4]},
'ModelManager': {'versions': [2, 3, 4, 5, 9]},
'MigrationTarget': {'versions': [1, 2, 3]},
'ModelConfig': {'versions': [3]},
'ModelGeneration': {'versions': [4]},
'ModelManager': {'versions': [9]},
'ModelSummaryWatcher': {'versions': [1]},
'ModelUpgrader': {'versions': [1]},
'NotifyWatcher': {'versions': [1]},
Expand All @@ -108,45 +105,43 @@
'PayloadsHookContext': {'versions': [1]},
'Pinger': {'versions': [1]},
'Provisioner': {'versions': [11]},
'ProxyUpdater': {'versions': [1, 2]},
'RaftLease': {'versions': [1, 2]},
'ProxyUpdater': {'versions': [2]},
'RaftLease': {'versions': [2]},
'Reboot': {'versions': [2]},
'RelationStatusWatcher': {'versions': [1]},
'RelationUnitsWatcher': {'versions': [1]},
'RemoteRelations': {'versions': [1, 2]},
'RemoteRelationWatcher': {'versions': [1]},
'Resources': {'versions': [1, 2, 3]},
'RemoteRelations': {'versions': [2]},
'Resources': {'versions': [3]},
'ResourcesHookContext': {'versions': [1]},
'Resumer': {'versions': [2]},
'RetryStrategy': {'versions': [1]},
'Secrets': {'versions': [1, 2]},
'SecretsManager': {'versions': [1, 2]},
'SSHClient': {'versions': [4]},
'SecretBackends': {'versions': [1]},
'SecretBackendsManager': {'versions': [1]},
'SecretBackendsRotateWatcher': {'versions': [1]},
'Secrets': {'versions': [1, 2]},
'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': [3, 4, 6]},
'StorageProvisioner': {'versions': [3, 4]},
'Storage': {'versions': [6]},
'StorageProvisioner': {'versions': [4]},
'StringsWatcher': {'versions': [1]},
'Subnets': {'versions': [2, 4, 5]},
'SSHClient': {'versions': [1, 2, 3, 4]},
'Subnets': {'versions': [5]},
'Undertaker': {'versions': [1]},
'UnitAssigner': {'versions': [1]},
'Uniter': {'versions': [18]},
'Uniter': {'versions': [18, 19]},
'UpgradeSeries': {'versions': [3]},
'UpgradeSteps': {'versions': [2]},
'Upgrader': {'versions': [1]},
'UpgradeSeries': {'versions': [1, 3]},
'UpgradeSteps': {'versions': [1, 2]},
'UserManager': {'versions': [1, 2, 3]},
'UserManager': {'versions': [3]},
'UserSecretsDrain': {'versions': [1]},
'UserSecretsManager': {'versions': [1]},
'VolumeAttachmentsWatcher': {'versions': [2]},
'VolumeAttachmentPlansWatcher': {'versions': [1]},
'VolumeAttachmentsWatcher': {'versions': [2]},
}


Expand Down
Loading

0 comments on commit fbde29a

Please sign in to comment.