Class: Google::Apis::OsconfigV1::AptSettings
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::AptSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1/classes.rb,
generated/google/apis/osconfig_v1/representations.rb,
generated/google/apis/osconfig_v1/representations.rb
Overview
Apt patching is completed by executing apt-get update && apt-get upgrade
.
Additional options can be set to control how this is executed.
Instance Attribute Summary collapse
-
#excludes ⇒ Array<String>
List of packages to exclude from update.
-
#exclusive_packages ⇒ Array<String>
An exclusive list of packages to be updated.
-
#type ⇒ String
By changing the type to DIST, the patching is performed using
apt-get dist- upgrade
instead.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AptSettings
constructor
A new instance of AptSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AptSettings
Returns a new instance of AptSettings.
48 49 50 |
# File 'generated/google/apis/osconfig_v1/classes.rb', line 48 def initialize(**args) update!(**args) end |
Instance Attribute Details
#excludes ⇒ Array<String>
List of packages to exclude from update. These packages will be excluded
Corresponds to the JSON property excludes
33 34 35 |
# File 'generated/google/apis/osconfig_v1/classes.rb', line 33 def excludes @excludes end |
#exclusive_packages ⇒ 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.
Corresponds to the JSON property exclusivePackages
40 41 42 |
# File 'generated/google/apis/osconfig_v1/classes.rb', line 40 def exclusive_packages @exclusive_packages end |
#type ⇒ String
By changing the type to DIST, the patching is performed using apt-get dist-
upgrade
instead.
Corresponds to the JSON property type
46 47 48 |
# File 'generated/google/apis/osconfig_v1/classes.rb', line 46 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
53 54 55 56 57 |
# File 'generated/google/apis/osconfig_v1/classes.rb', line 53 def update!(**args) @excludes = args[:excludes] if args.key?(:excludes) @exclusive_packages = args[:exclusive_packages] if args.key?(:exclusive_packages) @type = args[:type] if args.key?(:type) end |