Class: Google::Apis::WebsecurityscannerV1alpha::OutdatedLibrary

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

Overview

Information reported for an outdated library.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OutdatedLibrary

Returns a new instance of OutdatedLibrary.



462
463
464
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 462

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

Instance Attribute Details

#learn_more_urlsArray<String>

URLs to learn more information about the vulnerabilities in the library. Corresponds to the JSON property learnMoreUrls

Returns:

  • (Array<String>)


450
451
452
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 450

def learn_more_urls
  @learn_more_urls
end

#library_nameString

The name of the outdated library. Corresponds to the JSON property libraryName

Returns:

  • (String)


455
456
457
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 455

def library_name
  @library_name
end

#versionString

The version number. Corresponds to the JSON property version

Returns:

  • (String)


460
461
462
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 460

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



467
468
469
470
471
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 467

def update!(**args)
  @learn_more_urls = args[:learn_more_urls] if args.key?(:learn_more_urls)
  @library_name = args[:library_name] if args.key?(:library_name)
  @version = args[:version] if args.key?(:version)
end