Class: Google::Apis::ContaineranalysisV1::UpgradeNote
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1::UpgradeNote
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1/classes.rb,
lib/google/apis/containeranalysis_v1/representations.rb,
lib/google/apis/containeranalysis_v1/representations.rb
Overview
An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be an Upgrade Note. For Windows, windows_update field represents the information related to the update.
Instance Attribute Summary collapse
-
#distributions ⇒ Array<Google::Apis::ContaineranalysisV1::UpgradeDistribution>
Metadata about the upgrade for each specific operating system.
-
#package ⇒ String
Required for non-Windows OS.
-
#version ⇒ Google::Apis::ContaineranalysisV1::Version
Version contains structured information about the version of a package.
-
#windows_update ⇒ Google::Apis::ContaineranalysisV1::WindowsUpdate
Windows Update represents the metadata about the update for the Windows operating system.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpgradeNote
constructor
A new instance of UpgradeNote.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpgradeNote
Returns a new instance of UpgradeNote.
6284 6285 6286 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6284 def initialize(**args) update!(**args) end |
Instance Attribute Details
#distributions ⇒ Array<Google::Apis::ContaineranalysisV1::UpgradeDistribution>
Metadata about the upgrade for each specific operating system.
Corresponds to the JSON property distributions
6264 6265 6266 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6264 def distributions @distributions end |
#package ⇒ String
Required for non-Windows OS. The package this Upgrade is for.
Corresponds to the JSON property package
6269 6270 6271 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6269 def package @package end |
#version ⇒ Google::Apis::ContaineranalysisV1::Version
Version contains structured information about the version of a package.
Corresponds to the JSON property version
6274 6275 6276 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6274 def version @version end |
#windows_update ⇒ Google::Apis::ContaineranalysisV1::WindowsUpdate
Windows Update represents the metadata about the update for the Windows
operating system. The fields in this message come from the Windows Update API
documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-
wuapi-iupdate.
Corresponds to the JSON property windowsUpdate
6282 6283 6284 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6282 def windows_update @windows_update end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6289 6290 6291 6292 6293 6294 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6289 def update!(**args) @distributions = args[:distributions] if args.key?(:distributions) @package = args[:package] if args.key?(:package) @version = args[:version] if args.key?(:version) @windows_update = args[:windows_update] if args.key?(:windows_update) end |