Class: Google::Apis::OndemandscanningV1beta1::AnalyzePackagesMetadata

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

Overview

AnalyzePackagesMetadata contains metadata for an active scan of a container image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnalyzePackagesMetadata

Returns a new instance of AnalyzePackagesMetadata.



85
86
87
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 85

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

Instance Attribute Details

#create_timeString

When the scan was created. Corresponds to the JSON property createTime

Returns:

  • (String)


78
79
80
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 78

def create_time
  @create_time
end

#resource_uriString

The resource URI of the container image being scanned. Corresponds to the JSON property resourceUri

Returns:

  • (String)


83
84
85
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 83

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



90
91
92
93
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 90

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