canonicalwebteam.store-api 4.11.0__tar.gz → 4.11.1__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.0 → canonicalwebteam_store_api-4.11.1}/PKG-INFO +1 -1
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/canonicalwebteam/store_api/publisher.py +1 -1
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/canonicalwebteam/store_api/stores/snapstore.py +18 -0
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/pyproject.toml +1 -1
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/LICENSE +0 -0
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/README.md +0 -0
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/canonicalwebteam/__init__.py +0 -0
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/canonicalwebteam/store_api/__init__.py +0 -0
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/canonicalwebteam/store_api/exceptions.py +0 -0
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/canonicalwebteam/store_api/store.py +0 -0
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/canonicalwebteam/store_api/stores/__init__.py +0 -0
- {canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/canonicalwebteam/store_api/stores/charmstore.py +0 -0
|
@@ -227,6 +227,24 @@ class SnapPublisher(Publisher):
|
|
|
227
227
|
)
|
|
228
228
|
return response
|
|
229
229
|
|
|
230
|
+
def unregister_package_name(self, publisher_auth, snap_name):
|
|
231
|
+
"""
|
|
232
|
+
Unregister a package name.
|
|
233
|
+
|
|
234
|
+
Args:
|
|
235
|
+
publisher_auth: Serialized macaroon to consume the API.
|
|
236
|
+
name: Name of the package to unregister
|
|
237
|
+
Returns:
|
|
238
|
+
The package name ID if successful
|
|
239
|
+
Otherwise, returns an error list
|
|
240
|
+
"""
|
|
241
|
+
url = self.get_publisherwg_endpoint_url(f"snap/{snap_name}")
|
|
242
|
+
response = self.session.delete(
|
|
243
|
+
url=url,
|
|
244
|
+
headers=self._get_authorization_header(publisher_auth),
|
|
245
|
+
)
|
|
246
|
+
return response
|
|
247
|
+
|
|
230
248
|
|
|
231
249
|
class SnapStoreAdmin(SnapPublisher):
|
|
232
250
|
def get_endpoint_url(self, endpoint, api_version=2):
|
|
File without changes
|
|
File without changes
|
{canonicalwebteam_store_api-4.11.0 → canonicalwebteam_store_api-4.11.1}/canonicalwebteam/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|