canonicalwebteam.store-api 4.11.2__py3-none-any.whl → 4.12.0__py3-none-any.whl
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/stores/charmstore.py +18 -0
- canonicalwebteam/store_api/stores/snapstore.py +18 -0
- {canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.12.0.dist-info}/METADATA +1 -1
- {canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.12.0.dist-info}/RECORD +6 -6
- {canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.12.0.dist-info}/LICENSE +0 -0
- {canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.12.0.dist-info}/WHEEL +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.
|
|
@@ -269,6 +269,24 @@ class SnapPublisher(Publisher):
|
|
|
269
269
|
)
|
|
270
270
|
return response
|
|
271
271
|
|
|
272
|
+
def get_package_metadata(self, publisher_auth, package_type, snap_name):
|
|
273
|
+
"""
|
|
274
|
+
Get general metadata for a package.
|
|
275
|
+
Args:
|
|
276
|
+
publisher_auth: Serialized macaroon to consume the API.
|
|
277
|
+
package_type: Type of packages to obtain.
|
|
278
|
+
Returns:
|
|
279
|
+
Package general metadata
|
|
280
|
+
"""
|
|
281
|
+
response = self.session.get(
|
|
282
|
+
url=self.get_publisherwg_endpoint_url(
|
|
283
|
+
f"{package_type}/{snap_name}"
|
|
284
|
+
),
|
|
285
|
+
headers=self._get_publisherwg_authorization_header(publisher_auth),
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
return self.process_response(response)["metadata"]
|
|
289
|
+
|
|
272
290
|
def unregister_package_name(self, publisher_auth, snap_name):
|
|
273
291
|
"""
|
|
274
292
|
Unregister a package name.
|
{canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.12.0.dist-info}/RECORD
RENAMED
|
@@ -4,9 +4,9 @@ canonicalwebteam/store_api/exceptions.py,sha256=A49LRhiEIfXNB2zC-zNcZEcdh0ugw6G7
|
|
|
4
4
|
canonicalwebteam/store_api/publisher.py,sha256=4gSCJOtpEfK0luYal5xOEa0XF7DzOrdGMwMIUN4X8_o,15111
|
|
5
5
|
canonicalwebteam/store_api/store.py,sha256=Uk1BMGM4S8uVXepuUiF2FNqw3MCnqtd3EGbrlwzod7Y,7826
|
|
6
6
|
canonicalwebteam/store_api/stores/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
canonicalwebteam/store_api/stores/charmstore.py,sha256=
|
|
8
|
-
canonicalwebteam/store_api/stores/snapstore.py,sha256=
|
|
9
|
-
canonicalwebteam_store_api-4.
|
|
10
|
-
canonicalwebteam_store_api-4.
|
|
11
|
-
canonicalwebteam_store_api-4.
|
|
12
|
-
canonicalwebteam_store_api-4.
|
|
7
|
+
canonicalwebteam/store_api/stores/charmstore.py,sha256=_FlnB1C1t7YHi71mDIzbiMyE_UqFGJkuaZ8xeLrFAPc,17084
|
|
8
|
+
canonicalwebteam/store_api/stores/snapstore.py,sha256=KI1M25C6I3jNGat9JVLNs_8BlDZA8W6Uxbw7zHb0lco,25275
|
|
9
|
+
canonicalwebteam_store_api-4.12.0.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
|
10
|
+
canonicalwebteam_store_api-4.12.0.dist-info/METADATA,sha256=JOg9fvwtlsKg84DUYtKiFZHWBkFvg93TjDP0EIZBn7w,2265
|
|
11
|
+
canonicalwebteam_store_api-4.12.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
12
|
+
canonicalwebteam_store_api-4.12.0.dist-info/RECORD,,
|
{canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.12.0.dist-info}/LICENSE
RENAMED
|
File without changes
|
{canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.12.0.dist-info}/WHEEL
RENAMED
|
File without changes
|