Class PatchJobs.AptSettings.Builder (2.43.0)

public static final class PatchJobs.AptSettings.Builder extends GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder> implements PatchJobs.AptSettingsOrBuilder

Apt patching is completed by executing apt-get update && apt-get upgrade. Additional options can be set to control how this is executed.

Protobuf type google.cloud.osconfig.v1.AptSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllExcludes(Iterable<String> values)

public PatchJobs.AptSettings.Builder addAllExcludes(Iterable<String> values)

List of packages to exclude from update. These packages will be excluded

repeated string excludes = 2;

Parameter
NameDescription
valuesIterable<String>

The excludes to add.

Returns
TypeDescription
PatchJobs.AptSettings.Builder

This builder for chaining.

addAllExclusivePackages(Iterable<String> values)

public PatchJobs.AptSettings.Builder addAllExclusivePackages(Iterable<String> values)

An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.

repeated string exclusive_packages = 3;

Parameter
NameDescription
valuesIterable<String>

The exclusivePackages to add.

Returns
TypeDescription
PatchJobs.AptSettings.Builder

This builder for chaining.

addExcludes(String value)