Class: Google::Apis::OsconfigV1beta::AptSettings

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AptSettings

Returns a new instance of AptSettings.



97
98
99
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 97

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

Instance Attribute Details

#excludesArray<String>

List of packages to exclude from update. These packages will be excluded Corresponds to the JSON property excludes

Returns:

  • (Array<String>)


81
82
83
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 81

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

Returns:

  • (Array<String>)


89
90
91
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 89

def exclusive_packages
  @exclusive_packages
end

#typeString

By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead. Corresponds to the JSON property type

Returns:

  • (String)


95
96
97
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 95

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



102
103
104
105
106
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 102

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