Class: Google::Apis::ThreatintelligenceV1beta::CustomerProfileCitation
- Inherits:
-
Object
- Object
- Google::Apis::ThreatintelligenceV1beta::CustomerProfileCitation
- 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
-
#citation_id ⇒ String
Required.
-
#document ⇒ String
Required.
-
#retrieval_time ⇒ String
The time the citation was retrieved.
-
#source ⇒ String
Required.
-
#uri ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomerProfileCitation
constructor
A new instance of CustomerProfileCitation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomerProfileCitation
Returns a new instance of CustomerProfileCitation.
577 578 579 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 577 def initialize(**args) update!(**args) end |
Instance Attribute Details
#citation_id ⇒ String
Required. The citation id for the citation. Should be unique within the
profile.
Corresponds to the JSON property citationId
555 556 557 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 555 def citation_id @citation_id end |
#document ⇒ String
Required. The name of the document the citation is from.
Corresponds to the JSON property document
560 561 562 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 560 def document @document end |
#retrieval_time ⇒ String
The time the citation was retrieved.
Corresponds to the JSON property retrievalTime
565 566 567 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 565 def retrieval_time @retrieval_time end |
#source ⇒ String
Required. The source of the citation.
Corresponds to the JSON property source
570 571 572 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 570 def source @source end |
#uri ⇒ String
Optional. The url of the citation.
Corresponds to the JSON property uri
575 576 577 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 575 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
582 583 584 585 586 587 588 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 582 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 |