Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::AptSettings.
Apt patching is completed by executing apt-get update && apt-get
upgrade
. Additional options can be set to control how this is executed.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#excludes
def excludes() -> ::Array<::String>
Returns
- (::Array<::String>) — List of packages to exclude from update. These packages will be excluded
#excludes=
def excludes=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — List of packages to exclude from update. These packages will be excluded
Returns
- (::Array<::String>) — List of packages to exclude from update. These packages will be excluded
#exclusive_packages
def exclusive_packages() -> ::Array<::String>
Returns
- (::Array<::String>) — 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.
#exclusive_packages=
def exclusive_packages=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — 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.
Returns
- (::Array<::String>) — 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.
#type
def type() -> ::Google::Cloud::OsConfig::V1::AptSettings::Type
Returns
-
(::Google::Cloud::OsConfig::V1::AptSettings::Type) — By changing the type to DIST, the patching is performed
using
apt-get dist-upgrade
instead.
#type=
def type=(value) -> ::Google::Cloud::OsConfig::V1::AptSettings::Type
Parameter
-
value (::Google::Cloud::OsConfig::V1::AptSettings::Type) — By changing the type to DIST, the patching is performed
using
apt-get dist-upgrade
instead.
Returns
-
(::Google::Cloud::OsConfig::V1::AptSettings::Type) — By changing the type to DIST, the patching is performed
using
apt-get dist-upgrade
instead.