Class: Google::Apis::OndemandscanningV1::IngestionSource

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

Overview

Indicates where an extracted package originates from.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IngestionSource

Returns a new instance of IngestionSource.



2061
2062
2063
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2061

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

Instance Attribute Details

#attachment_uriString

The attachment URI that this package was extracted from. Corresponds to the JSON property attachmentUri

Returns:

  • (String)


2049
2050
2051
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2049

def attachment_uri
  @attachment_uri
end

#resource_urlString

The resource URL of the resource that was scanned to find this package. Corresponds to the JSON property resourceUrl

Returns:

  • (String)


2054
2055
2056
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2054

def resource_url
  @resource_url
end

#sourceString

Corresponds to the JSON property source

Returns:

  • (String)


2059
2060
2061
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2059

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2066
2067
2068
2069
2070
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2066

def update!(**args)
  @attachment_uri = args[:attachment_uri] if args.key?(:attachment_uri)
  @resource_url = args[:resource_url] if args.key?(:resource_url)
  @source = args[:source] if args.key?(:source)
end