Class: Google::Apis::OsconfigV1beta::InventoryVersionedPackage
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::InventoryVersionedPackage
- 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
Information related to the a standard versioned package. This includes package info for APT, Yum, Zypper, and Googet package managers.
Instance Attribute Summary collapse
-
#architecture ⇒ String
The system architecture this package is intended for.
-
#package_name ⇒ String
The name of the package.
-
#version ⇒ String
The version of the package.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InventoryVersionedPackage
constructor
A new instance of InventoryVersionedPackage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InventoryVersionedPackage
Returns a new instance of InventoryVersionedPackage.
916 917 918 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 916 def initialize(**args) update!(**args) end |
Instance Attribute Details
#architecture ⇒ String
The system architecture this package is intended for.
Corresponds to the JSON property architecture
904 905 906 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 904 def architecture @architecture end |
#package_name ⇒ String
The name of the package.
Corresponds to the JSON property packageName
909 910 911 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 909 def package_name @package_name end |
#version ⇒ String
The version of the package.
Corresponds to the JSON property version
914 915 916 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 914 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
921 922 923 924 925 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 921 def update!(**args) @architecture = args[:architecture] if args.key?(:architecture) @package_name = args[:package_name] if args.key?(:package_name) @version = args[:version] if args.key?(:version) end |