ContentPackageOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:content_package> attribute.
Constructor
ContentPackageOperations(*args, **kwargs)
Methods
| install |
Install a package to the workspace. |
| uninstall |
Uninstall a package from the workspace. |
install
Install a package to the workspace.
install(resource_group_name: str, workspace_name: str, package_id: str, package_installation_properties: _models.PackageModel, *, content_type: str = 'application/json', **kwargs: Any) -> _models.PackageModel
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
workspace_name
Required
|
The name of the monitor workspace. Required. |
|
package_id
Required
|
package Id. Required. |
|
package_installation_properties
Required
|
Package installation properties. Is one of the following types: PackageModel, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
PackageModel. The PackageModel is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
uninstall
Uninstall a package from the workspace.
uninstall(resource_group_name: str, workspace_name: str, package_id: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
workspace_name
Required
|
The name of the monitor workspace. Required. |
|
package_id
Required
|
package Id. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|