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.



1991
1992
1993
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1991

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)


1974
1975
1976
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1974

def display_name
  @display_name
end

#publish_timeString

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

Returns:

  • (String)


1979
1980
1981
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1979

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)


1984
1985
1986
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1984

def source_id
  @source_id
end

#uriString

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

Returns:

  • (String)


1989
1990
1991
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1989

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1996
1997
1998
1999
2000
2001
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 1996

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