canonicalwebteam.store-api 4.13.2__py3-none-any.whl → 4.13.3__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/snapstore.py +32 -0
- {canonicalwebteam_store_api-4.13.2.dist-info → canonicalwebteam_store_api-4.13.3.dist-info}/METADATA +1 -1
- {canonicalwebteam_store_api-4.13.2.dist-info → canonicalwebteam_store_api-4.13.3.dist-info}/RECORD +5 -5
- {canonicalwebteam_store_api-4.13.2.dist-info → canonicalwebteam_store_api-4.13.3.dist-info}/LICENSE +0 -0
- {canonicalwebteam_store_api-4.13.2.dist-info → canonicalwebteam_store_api-4.13.3.dist-info}/WHEEL +0 -0
|
@@ -125,6 +125,9 @@ class SnapPublisher(Publisher):
|
|
|
125
125
|
|
|
126
126
|
return self.process_response(response)
|
|
127
127
|
|
|
128
|
+
def get_dashboard_endpoint_url(self, endpoint):
|
|
129
|
+
return f"{SNAPSTORE_DASHBOARD_API_URL}api/v2/{endpoint}"
|
|
130
|
+
|
|
128
131
|
def get_publisherwg_endpoint_url(self, endpoint):
|
|
129
132
|
return f"{SNAPSTORE_PUBLISHERWG_API_URL}v1/{endpoint}"
|
|
130
133
|
|
|
@@ -327,6 +330,35 @@ class SnapPublisher(Publisher):
|
|
|
327
330
|
)
|
|
328
331
|
return response
|
|
329
332
|
|
|
333
|
+
def get_validation_sets(self, publisher_auth):
|
|
334
|
+
"""
|
|
335
|
+
Return a list of validation sets for the current account
|
|
336
|
+
Documentation:
|
|
337
|
+
https://dashboard.snapcraft.io/docs/reference/v2/en/validation-sets.html
|
|
338
|
+
Endpoint: [GET] https://dashboard.snapcraft.io/api/v2/validation-sets
|
|
339
|
+
"""
|
|
340
|
+
url = self.get_dashboard_endpoint_url("validation-sets")
|
|
341
|
+
response = self.session.get(
|
|
342
|
+
url, headers=self._get_authorization_header(publisher_auth)
|
|
343
|
+
)
|
|
344
|
+
return response
|
|
345
|
+
|
|
346
|
+
def get_validation_set(self, publisher_auth, validation_set_id):
|
|
347
|
+
"""
|
|
348
|
+
Return a validation set for the current account
|
|
349
|
+
Documentation:
|
|
350
|
+
https://dashboard.snapcraft.io/docs/reference/v2/en/validation-sets.html
|
|
351
|
+
Endpoint:
|
|
352
|
+
[GET] https://dashboard.snapcraft.io/api/v2/validation-sets/{id}
|
|
353
|
+
"""
|
|
354
|
+
url = self.get_dashboard_endpoint_url(
|
|
355
|
+
f"validation-sets/{validation_set_id}"
|
|
356
|
+
)
|
|
357
|
+
response = self.session.get(
|
|
358
|
+
url, headers=self._get_authorization_header(publisher_auth)
|
|
359
|
+
)
|
|
360
|
+
return response
|
|
361
|
+
|
|
330
362
|
|
|
331
363
|
class SnapStoreAdmin(SnapPublisher):
|
|
332
364
|
def get_endpoint_url(self, endpoint, api_version=2):
|
{canonicalwebteam_store_api-4.13.2.dist-info → canonicalwebteam_store_api-4.13.3.dist-info}/RECORD
RENAMED
|
@@ -5,8 +5,8 @@ canonicalwebteam/store_api/publisher.py,sha256=4gSCJOtpEfK0luYal5xOEa0XF7DzOrdGM
|
|
|
5
5
|
canonicalwebteam/store_api/store.py,sha256=Uk1BMGM4S8uVXepuUiF2FNqw3MCnqtd3EGbrlwzod7Y,7826
|
|
6
6
|
canonicalwebteam/store_api/stores/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
canonicalwebteam/store_api/stores/charmstore.py,sha256=1eovt1EkwUmxzCx_oR7Jf6b0xDHRRHlHUVGHhKQnKjw,17505
|
|
8
|
-
canonicalwebteam/store_api/stores/snapstore.py,sha256=
|
|
9
|
-
canonicalwebteam_store_api-4.13.
|
|
10
|
-
canonicalwebteam_store_api-4.13.
|
|
11
|
-
canonicalwebteam_store_api-4.13.
|
|
12
|
-
canonicalwebteam_store_api-4.13.
|
|
8
|
+
canonicalwebteam/store_api/stores/snapstore.py,sha256=MXQkiCMn3iPfYbkn_DANXYJfBh3PBaAnq7mWEfOexMI,27259
|
|
9
|
+
canonicalwebteam_store_api-4.13.3.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
|
10
|
+
canonicalwebteam_store_api-4.13.3.dist-info/METADATA,sha256=Gym5iaTYa6X7o_mxkQvlc9ukrF0jD9pi9BJlDg8iiKc,2265
|
|
11
|
+
canonicalwebteam_store_api-4.13.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
12
|
+
canonicalwebteam_store_api-4.13.3.dist-info/RECORD,,
|
{canonicalwebteam_store_api-4.13.2.dist-info → canonicalwebteam_store_api-4.13.3.dist-info}/LICENSE
RENAMED
|
File without changes
|
{canonicalwebteam_store_api-4.13.2.dist-info → canonicalwebteam_store_api-4.13.3.dist-info}/WHEEL
RENAMED
|
File without changes
|