Class: Google::Apis::ThreatintelligenceV1beta::CustomerProfileLocation

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

Location information for the customer profile.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerProfileLocation

Returns a new instance of CustomerProfileLocation.



745
746
747
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 745

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

Instance Attribute Details

#addressString

Required. The address of the location. Corresponds to the JSON property address

Returns:

  • (String)


728
729
730
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 728

def address
  @address
end

#brandString

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

Returns:

  • (String)


733
734
735
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 733

def brand
  @brand
end

#citation_idsArray<String>

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

Returns:

  • (Array<String>)


738
739
740
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 738

def citation_ids
  @citation_ids
end

#facility_typeString

Optional. The type of location. Corresponds to the JSON property facilityType

Returns:

  • (String)


743
744
745
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 743

def facility_type
  @facility_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



750
751
752
753
754
755
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 750

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