Class: Google::Apis::CloudassetV1::VersionedPackage
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::VersionedPackage
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/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) ⇒ VersionedPackage
constructor
A new instance of VersionedPackage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VersionedPackage
Returns a new instance of VersionedPackage.
4613 4614 4615 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4613 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
4601 4602 4603 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4601 def architecture @architecture end |
#package_name ⇒ String
The name of the package.
Corresponds to the JSON property packageName
4606 4607 4608 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4606 def package_name @package_name end |
#version ⇒ String
The version of the package.
Corresponds to the JSON property version
4611 4612 4613 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4611 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4618 4619 4620 4621 4622 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4618 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 |