Class: Google::Apis::ThreatintelligenceV1beta::CustomerProfileCitation

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

Citation information for the customer profile.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerProfileCitation

Returns a new instance of CustomerProfileCitation.



500
501
502
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 500

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

Instance Attribute Details

#citation_idString

Required. The citation id for the citation. Should be unique within the profile. Corresponds to the JSON property citationId

Returns:

  • (String)


478
479
480
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 478

def citation_id
  @citation_id
end

#documentString

Required. The name of the document the citation is from. Corresponds to the JSON property document

Returns:

  • (String)


483
484
485
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 483

def document
  @document
end

#retrieval_timeString

The time the citation was retrieved. Corresponds to the JSON property retrievalTime

Returns:

  • (String)


488
489
490
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 488

def retrieval_time
  @retrieval_time
end

#sourceString

Required. The source of the citation. Corresponds to the JSON property source

Returns:

  • (String)


493
494
495
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 493

def source
  @source
end

#uriString

Optional. The url of the citation. Corresponds to the JSON property uri

Returns:

  • (String)


498
499
500
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 498

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



505
506
507
508
509
510
511
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 505

def update!(**args)
  @citation_id = args[:citation_id] if args.key?(:citation_id)
  @document = args[:document] if args.key?(:document)
  @retrieval_time = args[:retrieval_time] if args.key?(:retrieval_time)
  @source = args[:source] if args.key?(:source)
  @uri = args[:uri] if args.key?(:uri)
end