PackageResponse class
Package is a reference to the software package to be installed or removed. The agent on the VM instance uses the system package manager to apply the config. These are the commands that the agent uses to install or remove packages. Apt install: apt-get update && apt-get -y install package1 package2 package3 remove: apt-get -y remove package1 package2 package3 Yum install: yum -y install package1 package2 package3 remove: yum -y remove package1 package2 package3 Zypper install: zypper install package1 package2 package3 remove: zypper rm package1 package2 Googet install: googet -noconfirm install package1 package2 package3 remove: googet -noconfirm remove package1 package2 package3
Constructors
-
PackageResponse({required Input<
String> desiredState, required Input<String> manager, required Input<String> name}) -
Creates a new PackageResponse.
desiredStateThe desired_state the agent should maintain for this package. The default is to ensure the package is installed.managerType of package manager that can be used to install this package. If a system does not have the package manager, the package is not installed or removed no error message is returned. By default, or if you specifyANY, the agent attempts to install and remove this package using the default package manager. This is useful when creating a policy that applies to different types of systems. The default behavior is ANY.nameThe name of the package. A package is uniquely identified for conflict validation by checking the package name and the manager(s) that the package targets.const -
PackageResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
desiredState
→ Input<
String> -
The desired_state the agent should maintain for this package. The default is to ensure the package is installed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
manager
→ Input<
String> -
Type of package manager that can be used to install this package. If a system does not have the package manager, the package is not installed or removed no error message is returned. By default, or if you specify
ANY, the agent attempts to install and remove this package using the default package manager. This is useful when creating a policy that applies to different types of systems. The default behavior is ANY.final -
name
→ Input<
String> -
The name of the package. A package is uniquely identified for conflict validation by checking the package name and the manager(s) that the package targets.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited