canonicalwebteam.store-api 4.11.3__tar.gz → 4.12.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/PKG-INFO +1 -1
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/canonicalwebteam/store_api/stores/charmstore.py +18 -0
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/pyproject.toml +1 -1
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/LICENSE +0 -0
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/README.md +0 -0
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/canonicalwebteam/__init__.py +0 -0
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/canonicalwebteam/store_api/__init__.py +0 -0
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/canonicalwebteam/store_api/exceptions.py +0 -0
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/canonicalwebteam/store_api/publisher.py +0 -0
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/canonicalwebteam/store_api/store.py +0 -0
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/canonicalwebteam/store_api/stores/__init__.py +0 -0
- {canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/canonicalwebteam/store_api/stores/snapstore.py +0 -0
|
@@ -340,6 +340,24 @@ class CharmPublisher(Publisher):
|
|
|
340
340
|
|
|
341
341
|
return self.process_response(response)
|
|
342
342
|
|
|
343
|
+
def get_releases(self, publisher_auth, name):
|
|
344
|
+
"""
|
|
345
|
+
List of all releases for a package.
|
|
346
|
+
Documentation:
|
|
347
|
+
https://api.charmhub.io/docs/default.html#list_releases
|
|
348
|
+
Endpoint URL: [GET]
|
|
349
|
+
https://api.charmhub.io/v1/charm/<name>/releases
|
|
350
|
+
|
|
351
|
+
Args:
|
|
352
|
+
publisher_auth: Serialized macaroon to consume the API.
|
|
353
|
+
name: Name of the package
|
|
354
|
+
"""
|
|
355
|
+
response = self.session.get(
|
|
356
|
+
url=self.get_endpoint_url(f"charm/{name}/releases"),
|
|
357
|
+
headers=self._get_authorization_header(publisher_auth),
|
|
358
|
+
)
|
|
359
|
+
return self.process_response(response)
|
|
360
|
+
|
|
343
361
|
def get_collaborators(self, publisher_auth, name):
|
|
344
362
|
"""
|
|
345
363
|
Get collaborators (accepted invites) for the given package.
|
|
File without changes
|
|
File without changes
|
{canonicalwebteam_store_api-4.11.3 → canonicalwebteam_store_api-4.12.0}/canonicalwebteam/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|