Class: Google::Apis::AccessapprovalV1::AccessLocations

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/accessapproval_v1/classes.rb,
lib/google/apis/accessapproval_v1/representations.rb,
lib/google/apis/accessapproval_v1/representations.rb

Overview

Home office and physical location of the principal.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessLocations

Returns a new instance of AccessLocations.



202
203
204
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 202

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

Instance Attribute Details

#principal_office_countryString

The "home office" location of the principal. A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location Corresponds to the JSON property principalOfficeCountry

Returns:

  • (String)


190
191
192
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 190

def principal_office_country
  @principal_office_country
end

#principal_physical_location_countryString

Physical location of the principal at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location Corresponds to the JSON property principalPhysicalLocationCountry

Returns:

  • (String)


200
201
202
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 200

def principal_physical_location_country
  @principal_physical_location_country
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



207
208
209
210
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 207

def update!(**args)
  @principal_office_country = args[:principal_office_country] if args.key?(:principal_office_country)
  @principal_physical_location_country = args[:principal_physical_location_country] if args.key?(:principal_physical_location_country)
end