Class: Google::Apis::ContaineranalysisV1alpha1::Distribution

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

This represents a particular channel of distribution for a given package. e.g. Debian's jessie-backports dpkg mirror

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Distribution

Returns a new instance of Distribution.



1269
1270
1271
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1269

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

Instance Attribute Details

#architectureString

The CPU architecture for which packages in this distribution channel were built Corresponds to the JSON property architecture

Returns:

  • (String)


1238
1239
1240
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1238

def architecture
  @architecture
end

#cpe_uriString

The cpe_uri in cpe format denoting the package manager version distributing a package. Corresponds to the JSON property cpeUri

Returns:

  • (String)


1244
1245
1246
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1244

def cpe_uri
  @cpe_uri
end

#descriptionString

The distribution channel-specific description of this package. Corresponds to the JSON property description

Returns:

  • (String)


1249
1250
1251
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1249

def description
  @description
end

#latest_versionGoogle::Apis::ContaineranalysisV1alpha1::Version

Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/ debian-packages-version-convention For a discussion of this in Redhat/Fedora/ Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ Corresponds to the JSON property latestVersion



1257
1258
1259
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1257

def latest_version
  @latest_version
end

#maintainerString

A freeform string denoting the maintainer of this package. Corresponds to the JSON property maintainer

Returns:

  • (String)


1262
1263
1264
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1262

def maintainer
  @maintainer
end

#urlString

The distribution channel-specific homepage for this package. Corresponds to the JSON property url

Returns:

  • (String)


1267
1268
1269
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1267

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1274
1275
1276
1277
1278
1279
1280
1281
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1274

def update!(**args)
  @architecture = args[:architecture] if args.key?(:architecture)
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
  @description = args[:description] if args.key?(:description)
  @latest_version = args[:latest_version] if args.key?(:latest_version)
  @maintainer = args[:maintainer] if args.key?(:maintainer)
  @url = args[:url] if args.key?(:url)
end