Interface GuestPolicies.PackageOrBuilder (2.5.6)

public static interface GuestPolicies.PackageOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDesiredState()

public abstract GuestPolicies.DesiredState getDesiredState()

The desired_state the agent should maintain for this package. The default is to ensure the package is installed.

.google.cloud.osconfig.v1beta.DesiredState desired_state = 2;

Returns
TypeDescription
GuestPolicies.DesiredState

The desiredState.

getDesiredStateValue()

public abstract int getDesiredStateValue()

The desired_state the agent should maintain for this package. The default is to ensure the package is installed.

.google.cloud.osconfig.v1beta.DesiredState desired_state = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for desiredState.

getManager()

public abstract GuestPolicies.Package.Manager getManager()

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.

.google.cloud.osconfig.v1beta.Package.Manager manager = 3;

Returns
TypeDescription
GuestPolicies.Package.Manager

The manager.

getManagerValue()

public abstract int getManagerValue()

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.

.google.cloud.osconfig.v1beta.Package.Manager manager = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for manager.

getName()

public abstract String getName()

Required. 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.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Required. 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.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.