Class: Google::Apis::OsconfigV1beta::ZypperSettings
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::ZypperSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb
Overview
Zypper patching is performed by running zypper patch
.
See also https://en.opensuse.org/SDB:Zypper_manual.
Instance Attribute Summary collapse
-
#categories ⇒ Array<String>
Install only patches with these categories.
-
#excludes ⇒ Array<String>
List of patches to exclude from update.
-
#exclusive_patches ⇒ Array<String>
An exclusive list of patches to be updated.
-
#severities ⇒ Array<String>
Install only patches with these severities.
-
#with_optional ⇒ Boolean
(also: #with_optional?)
Adds the
--with-optional
flag tozypper patch
. -
#with_update ⇒ Boolean
(also: #with_update?)
Adds the
--with-update
flag, tozypper patch
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ZypperSettings
constructor
A new instance of ZypperSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ZypperSettings
Returns a new instance of ZypperSettings.
2341 2342 2343 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2341 def initialize(**args) update!(**args) end |
Instance Attribute Details
#categories ⇒ Array<String>
Install only patches with these categories.
Common categories include security, recommended, and feature.
Corresponds to the JSON property categories
2309 2310 2311 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2309 def categories @categories end |
#excludes ⇒ Array<String>
List of patches to exclude from update.
Corresponds to the JSON property excludes
2314 2315 2316 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2314 def excludes @excludes end |
#exclusive_patches ⇒ Array<String>
An exclusive list of patches to be updated. These are the only patches
that will be installed using 'zypper patch patch:exclusivePatches
2321 2322 2323 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2321 def exclusive_patches @exclusive_patches end |
#severities ⇒ Array<String>
Install only patches with these severities.
Common severities include critical, important, moderate, and low.
Corresponds to the JSON property severities
2327 2328 2329 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2327 def severities @severities end |
#with_optional ⇒ Boolean Also known as: with_optional?
Adds the --with-optional
flag to zypper patch
.
Corresponds to the JSON property withOptional
2332 2333 2334 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2332 def with_optional @with_optional end |
#with_update ⇒ Boolean Also known as: with_update?
Adds the --with-update
flag, to zypper patch
.
Corresponds to the JSON property withUpdate
2338 2339 2340 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2338 def with_update @with_update end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2346 2347 2348 2349 2350 2351 2352 2353 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2346 def update!(**args) @categories = args[:categories] if args.key?(:categories) @excludes = args[:excludes] if args.key?(:excludes) @exclusive_patches = args[:exclusive_patches] if args.key?(:exclusive_patches) @severities = args[:severities] if args.key?(:severities) @with_optional = args[:with_optional] if args.key?(:with_optional) @with_update = args[:with_update] if args.key?(:with_update) end |