Class: Google::Apis::OsconfigV1alpha::InventoryVersionedPackage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1alpha/classes.rb,
lib/google/apis/osconfig_v1alpha/representations.rb,
lib/google/apis/osconfig_v1alpha/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InventoryVersionedPackage

Returns a new instance of InventoryVersionedPackage.



595
596
597
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 595

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

Instance Attribute Details

#architectureString

The system architecture this package is intended for. Corresponds to the JSON property architecture

Returns:

  • (String)


583
584
585
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 583

def architecture
  @architecture
end

#package_nameString

The name of the package. Corresponds to the JSON property packageName

Returns:

  • (String)


588
589
590
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 588

def package_name
  @package_name
end

#versionString

The version of the package. Corresponds to the JSON property version

Returns:

  • (String)


593
594
595
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 593

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



600
601
602
603
604
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 600

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