Class: Google::Apis::ThreatintelligenceV1beta::CustomerProfileProduct

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

Product information for the customer profile.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerProfileProduct

Returns a new instance of CustomerProfileProduct.



853
854
855
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 853

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

Instance Attribute Details

#brandString

Required. The brand of the product. Corresponds to the JSON property brand

Returns:

  • (String)


841
842
843
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 841

def brand
  @brand
end

#citation_idsArray<String>

Optional. The citation ids for the product. Corresponds to the JSON property citationIds

Returns:

  • (Array<String>)


846
847
848
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 846

def citation_ids
  @citation_ids
end

#productString

Required. The name of the product. Corresponds to the JSON property product

Returns:

  • (String)


851
852
853
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 851

def product
  @product
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



858
859
860
861
862
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 858

def update!(**args)
  @brand = args[:brand] if args.key?(:brand)
  @citation_ids = args[:citation_ids] if args.key?(:citation_ids)
  @product = args[:product] if args.key?(:product)
end