class Google::Apis::AdminDirectoryV1::BuildingAddress
Public API: Resources.buildings
Attributes
Unstructured address lines describing the lower levels of an address. Corresponds to the JSON property `addressLines` @return [Array<String>]
Optional. Highest administrative subdivision which is used for postal addresses of a country or region. Corresponds to the JSON property `administrativeArea` @return [String]
Optional. BCP-47 language code of the contents of this address (if known). Corresponds to the JSON property `languageCode` @return [String]
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]
Optional. Postal code of the address. Corresponds to the JSON property `postalCode` @return [String]
Required. CLDR region code of the country/region of the address. Corresponds to the JSON property `regionCode` @return [String]
Optional. Sublocality of the address. Corresponds to the JSON property `sublocality` @return [String]
Public Class Methods
# File lib/google/apis/admin_directory_v1/classes.rb, line 423 def initialize(**args) update!(**args) end
Public Instance Methods
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