Google Cloud OS Config v1 API - Class AptSettings (2.2.0)

public sealed class AptSettings : IMessage<AptSettings>, IEquatable<AptSettings>, IDeepCloneable<AptSettings>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud OS Config v1 API class AptSettings.

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

Inheritance

object > AptSettings

Namespace

Google.Cloud.OsConfig.V1

Assembly

Google.Cloud.OsConfig.V1.dll

Constructors

AptSettings()

public AptSettings()

AptSettings(AptSettings)

public AptSettings(AptSettings other)
Parameter
NameDescription
otherAptSettings

Properties

Excludes

public RepeatedField<string> Excludes { get; }

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

Property Value
TypeDescription
RepeatedFieldstring

ExclusivePackages

public RepeatedField<string> ExclusivePackages { get; }

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.

Property Value
TypeDescription
RepeatedFieldstring

Type

public AptSettings.Types.Type Type { get; set; }

By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.

Property Value
TypeDescription
AptSettingsTypesType