package_controller = client.package
PackageController
- Cancel Package Installation
- Get Package Info
- Get Packages
- Get Repositories
- Install Package
- Set Repositories
Cancels a package installation.
def cancel_package_installation(self,
package_id)
Parameter | Type | Tags | Description |
---|---|---|---|
package_id |
uuid|string |
Template, Required | Installation Id. |
void
package_id = '00000d24-0000-0000-0000-000000000000'
result = package_controller.cancel_package_installation(package_id)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
Gets a package by name or assembly GUID.
def get_package_info(self,
name,
assembly_guid=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | The name of the package. |
assembly_guid |
uuid|string |
Query, Optional | The GUID of the associated assembly. |
name = 'name0'
result = package_controller.get_package_info(name)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
Gets available packages.
def get_packages(self)
result = package_controller.get_packages()
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
Gets all package repositories.
def get_repositories(self)
result = package_controller.get_repositories()
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
Installs a package.
def install_package(self,
name,
assembly_guid=None,
version=None,
repository_url=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | Package name. |
assembly_guid |
uuid|string |
Query, Optional | GUID of the associated assembly. |
version |
string |
Query, Optional | Optional version. Defaults to latest version. |
repository_url |
string |
Query, Optional | Optional. Specify the repository to install from. |
void
name = 'name0'
result = package_controller.install_package(name)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Package not found. | ProblemDetailsException |
Sets the enabled and existing package repositories.
def set_repositories(self,
body)
Parameter | Type | Tags | Description |
---|---|---|---|
body |
List of RepositoryInfo |
Body, Required | The list of package repositories. |
void
body = []
body.append(RepositoryInfo())
body.append(RepositoryInfo())
result = package_controller.set_repositories(body)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |