Class: Google::Apis::OsconfigV1beta::YumSettings

Inherits:
Object
  • Object
show all
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

Yum patching is performed by executing yum update. Additional options can be set to control how this is executed. Note that not all settings are supported on all platforms.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ YumSettings

Returns a new instance of YumSettings.



2246
2247
2248
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2246

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

Instance Attribute Details

#excludesArray<String>

List of packages to exclude from update. These packages are excluded by using the yum --exclude flag. Corresponds to the JSON property excludes

Returns:

  • (Array<String>)


2223
2224
2225
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2223

def excludes
  @excludes
end

#exclusive_packagesArray<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 must not be specified with any other patch configuration fields. Corresponds to the JSON property exclusivePackages

Returns:

  • (Array<String>)


2231
2232
2233
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2231

def exclusive_packages
  @exclusive_packages
end

#minimalBoolean Also known as: minimal?

Will cause patch to run yum update-minimal instead. Corresponds to the JSON property minimal

Returns:

  • (Boolean)


2236
2237
2238
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2236

def minimal
  @minimal
end

#securityBoolean Also known as: security?

Adds the --security flag to yum update. Not supported on all platforms. Corresponds to the JSON property security

Returns:

  • (Boolean)


2243
2244
2245
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2243

def security
  @security
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2251
2252
2253
2254
2255
2256
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2251

def update!(**args)
  @excludes = args[:excludes] if args.key?(:excludes)
  @exclusive_packages = args[:exclusive_packages] if args.key?(:exclusive_packages)
  @minimal = args[:minimal] if args.key?(:minimal)
  @security = args[:security] if args.key?(:security)
end