Class: Google::Apis::ThreatintelligenceV1beta::ProductFix

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

Overview

Contains details about a product fix.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductFix

Returns a new instance of ProductFix.



1820
1821
1822
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1820

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

Instance Attribute Details

#display_nameString

Required. The name of the fix. Ex: "Magento". Corresponds to the JSON property displayName

Returns:

  • (String)


1803
1804
1805
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1803

def display_name
  @display_name
end

#publish_timeString

Optional. The published time of the fix. Corresponds to the JSON property publishTime

Returns:

  • (String)


1808
1809
1810
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1808

def publish_time
  @publish_time
end

#source_idString

Required. The source ID of the fix. Ex: "APPSEC-1420". Corresponds to the JSON property sourceId

Returns:

  • (String)


1813
1814
1815
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1813

def source_id
  @source_id
end

#uriString

Optional. The URI of the fix. Corresponds to the JSON property uri

Returns:

  • (String)


1818
1819
1820
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1818

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1825
1826
1827
1828
1829
1830
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1825

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @publish_time = args[:publish_time] if args.key?(:publish_time)
  @source_id = args[:source_id] if args.key?(:source_id)
  @uri = args[:uri] if args.key?(:uri)
end