Class: Google::Apis::OsconfigV1beta::ZypperSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ZypperSettings

Returns a new instance of ZypperSettings.



2428
2429
2430
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2428

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#categoriesArray<String>

Install only patches with these categories. Common categories include security, recommended, and feature. Corresponds to the JSON property categories

Returns:

  • (Array<String>)


2396
2397
2398
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2396

def categories
  @categories
end

#excludesArray<String>

List of patches to exclude from update. Corresponds to the JSON property excludes

Returns:

  • (Array<String>)


2401
2402
2403
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2401

def excludes
  @excludes
end

#exclusive_patchesArray<String>

An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields. Corresponds to the JSON property exclusivePatches

Returns:

  • (Array<String>)


2408
2409
2410
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2408

def exclusive_patches
  @exclusive_patches
end

#severitiesArray<String>

Install only patches with these severities. Common severities include critical, important, moderate, and low. Corresponds to the JSON property severities

Returns:

  • (Array<String>)


2414
2415
2416
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2414

def severities
  @severities
end

#with_optionalBoolean Also known as: with_optional?

Adds the --with-optional flag to zypper patch. Corresponds to the JSON property withOptional

Returns:

  • (Boolean)


2419
2420
2421
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2419

def with_optional
  @with_optional
end

#with_updateBoolean Also known as: with_update?

Adds the --with-update flag, to zypper patch. Corresponds to the JSON property withUpdate

Returns:

  • (Boolean)


2425
2426
2427
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2425

def with_update
  @with_update
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2433
2434
2435
2436
2437
2438
2439
2440
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2433

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