Class: Google::Apis::ContaineranalysisV1alpha1::Installation

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 how a particular software package may be installed on a system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Installation

Returns a new instance of Installation.



2151
2152
2153
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2151

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

Instance Attribute Details

#locationArray<Google::Apis::ContaineranalysisV1alpha1::Location>

All of the places within the filesystem versions of this package have been found. Corresponds to the JSON property location



2144
2145
2146
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2144

def location
  @location
end

#nameString

Output only. The name of the installed package. Corresponds to the JSON property name

Returns:

  • (String)


2149
2150
2151
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2149

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2156
2157
2158
2159
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2156

def update!(**args)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
end