Class: Google::Apis::ContaineranalysisV1alpha1::Package

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 package that is distributed over various channels. e.g. glibc (aka libc6) is distributed by many, at various versions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Package

Returns a new instance of Package.



4972
4973
4974
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4972

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

Instance Attribute Details

#architectureString

The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. Corresponds to the JSON property architecture

Returns:

  • (String)


4913
4914
4915
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4913

def architecture
  @architecture
end

#cpe_uriString

The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages. Corresponds to the JSON property cpeUri

Returns:

  • (String)


4920
4921
4922
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4920

def cpe_uri
  @cpe_uri
end

#descriptionString

The description of this package. Corresponds to the JSON property description

Returns:

  • (String)


4925
4926
4927
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4925

def description
  @description
end

#digestArray<Google::Apis::ContaineranalysisV1alpha1::Digest>

Hash value, typically a file digest, that allows unique identification a specific package. Corresponds to the JSON property digest



4931
4932
4933
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4931

def digest
  @digest
end

#distributionArray<Google::Apis::ContaineranalysisV1alpha1::Distribution>

The various channels by which a package is distributed. Corresponds to the JSON property distribution



4936
4937
4938
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4936

def distribution
  @distribution
end

#licenseGoogle::Apis::ContaineranalysisV1alpha1::License

License information. Corresponds to the JSON property license



4941
4942
4943
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4941

def license
  @license
end

#maintainerString

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

Returns:

  • (String)


4946
4947
4948
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4946

def maintainer
  @maintainer
end

#nameString

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

Returns:

  • (String)


4951
4952
4953
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4951

def name
  @name
end

#package_typeString

The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). Corresponds to the JSON property packageType

Returns:

  • (String)


4957
4958
4959
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4957

def package_type
  @package_type
end

#urlString

The homepage for this package. Corresponds to the JSON property url

Returns:

  • (String)


4962
4963
4964
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4962

def url
  @url
end

#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 version



4970
4971
4972
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4970

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4977

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)
  @digest = args[:digest] if args.key?(:digest)
  @distribution = args[:distribution] if args.key?(:distribution)
  @license = args[:license] if args.key?(:license)
  @maintainer = args[:maintainer] if args.key?(:maintainer)
  @name = args[:name] if args.key?(:name)
  @package_type = args[:package_type] if args.key?(:package_type)
  @url = args[:url] if args.key?(:url)
  @version = args[:version] if args.key?(:version)
end