class Google::Apis::AdminDirectoryV1::BuildingAddress

Public API: Resources.buildings

Attributes

address_lines[RW]

Unstructured address lines describing the lower levels of an address. Corresponds to the JSON property `addressLines` @return [Array<String>]

administrative_area[RW]

Optional. Highest administrative subdivision which is used for postal addresses of a country or region. Corresponds to the JSON property `administrativeArea` @return [String]

language_code[RW]

Optional. BCP-47 language code of the contents of this address (if known). Corresponds to the JSON property `languageCode` @return [String]

locality[RW]

Optional. Generally refers to the city/town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave locality empty and use addressLines. Corresponds to the JSON property `locality` @return [String]

postal_code[RW]

Optional. Postal code of the address. Corresponds to the JSON property `postalCode` @return [String]

region_code[RW]

Required. CLDR region code of the country/region of the address. Corresponds to the JSON property `regionCode` @return [String]

sublocality[RW]

Optional. Sublocality of the address. Corresponds to the JSON property `sublocality` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/admin_directory_v1/classes.rb, line 423
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/admin_directory_v1/classes.rb, line 428
def update!(**args)
  @address_lines = args[:address_lines] if args.key?(:address_lines)
  @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
  @language_code = args[:language_code] if args.key?(:language_code)
  @locality = args[:locality] if args.key?(:locality)
  @postal_code = args[:postal_code] if args.key?(:postal_code)
  @region_code = args[:region_code] if args.key?(:region_code)
  @sublocality = args[:sublocality] if args.key?(:sublocality)
end