Class: Google::Apis::ThreatintelligenceV1beta::CustomerProfileContactInfo

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

Contact information for the customer profile.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerProfileContactInfo

Returns a new instance of CustomerProfileContactInfo.



726
727
728
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 726

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

Instance Attribute Details

#addressString

The address of the contact. Corresponds to the JSON property address

Returns:

  • (String)


699
700
701
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 699

def address
  @address
end

#citation_idsArray<String>

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

Returns:

  • (Array<String>)


704
705
706
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 704

def citation_ids
  @citation_ids
end

#emailString

The email address of the contact. Corresponds to the JSON property email

Returns:

  • (String)


709
710
711
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 709

def email
  @email
end

#labelString

Optional. The name of the contact. Corresponds to the JSON property label

Returns:

  • (String)


714
715
716
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 714

def label
  @label
end

#otherString

The other contact information. Corresponds to the JSON property other

Returns:

  • (String)


719
720
721
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 719

def other
  @other
end

#phoneString

The phone number of the contact. Corresponds to the JSON property phone

Returns:

  • (String)


724
725
726
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 724

def phone
  @phone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



731
732
733
734
735
736
737
738
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 731

def update!(**args)
  @address = args[:address] if args.key?(:address)
  @citation_ids = args[:citation_ids] if args.key?(:citation_ids)
  @email = args[:email] if args.key?(:email)
  @label = args[:label] if args.key?(:label)
  @other = args[:other] if args.key?(:other)
  @phone = args[:phone] if args.key?(:phone)
end