Interface OSPolicy.Resource.PackageResource.RPMOrBuilder (2.57.0)

public static interface OSPolicy.Resource.PackageResource.RPMOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPullDeps()

public abstract boolean getPullDeps()

Whether dependencies should also be installed.

  • install when false: rpm --upgrade --replacepkgs package.rpm
  • install when true: yum -y install package.rpm or zypper -y install package.rpm

bool pull_deps = 2;

Returns
Type Description
boolean

The pullDeps.

getSource()

public abstract OSPolicy.Resource.File getSource()

Required. An rpm package.

.google.cloud.osconfig.v1.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OSPolicy.Resource.File

The source.

getSourceOrBuilder()

public abstract OSPolicy.Resource.FileOrBuilder getSourceOrBuilder()

Required. An rpm package.

.google.cloud.osconfig.v1.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OSPolicy.Resource.FileOrBuilder

hasSource()

public abstract boolean hasSource()

Required. An rpm package.

.google.cloud.osconfig.v1.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the source field is set.