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

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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Installation

Returns a new instance of Installation.



1371
1372
1373
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1371

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



1364
1365
1366
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1364

def location
  @location
end

#nameString

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

Returns:

  • (String)


1369
1370
1371
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1369

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1376
1377
1378
1379
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1376

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