Class: Google::Apis::OsconfigV1::WindowsUpdateSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb

Overview

Windows patching is performed using the Windows Update Agent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WindowsUpdateSettings

Returns a new instance of WindowsUpdateSettings.



1705
1706
1707
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1705

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

Instance Attribute Details

#classificationsArray<String>

Only apply updates of these windows update classifications. If empty, all updates are applied. Corresponds to the JSON property classifications

Returns:

  • (Array<String>)


1692
1693
1694
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1692

def classifications
  @classifications
end

#excludesArray<String>

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

Returns:

  • (Array<String>)


1697
1698
1699
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1697

def excludes
  @excludes
end

#exclusive_patchesArray<String>

An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations. Corresponds to the JSON property exclusivePatches

Returns:

  • (Array<String>)


1703
1704
1705
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1703

def exclusive_patches
  @exclusive_patches
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1710
1711
1712
1713
1714
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1710

def update!(**args)
  @classifications = args[:classifications] if args.key?(:classifications)
  @excludes = args[:excludes] if args.key?(:excludes)
  @exclusive_patches = args[:exclusive_patches] if args.key?(:exclusive_patches)
end