Class: Google::Apis::CloudassetV1::VersionedPackage

Inherits:
Object
  • Object
show all
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
more...

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) ⇒ VersionedPackage

Returns a new instance of VersionedPackage.

[View source]

6180
6181
6182
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 6180

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)

6168
6169
6170
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 6168

def architecture
  @architecture
end

#package_nameString

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

Returns:

  • (String)

6173
6174
6175
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 6173

def package_name
  @package_name
end

#versionString

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

Returns:

  • (String)

6178
6179
6180
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 6178

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

6185
6186
6187
6188
6189
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 6185

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