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

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

Overview

Home office and physical location of the principal.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccessLocations

Returns a new instance of AccessLocations.



126
127
128
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 126

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:

  1. ASI: Asia
  2. EUR: Europe
  3. OCE: Oceania
  4. AFR: Africa
  5. NAM: North America
  6. SAM: South America
  7. ANT: Antarctica
  8. ANY: Any location

Corresponds to the JSON property principalOfficeCountry

Returns:

  • (String)


105
106
107
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 105

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:

  1. ASI: Asia
  2. EUR: Europe
  3. OCE: Oceania
  4. AFR: Africa
  5. NAM: North America
  6. SAM: South America
  7. ANT: Antarctica
  8. ANY: Any location

Corresponds to the JSON property principalPhysicalLocationCountry

Returns:

  • (String)


124
125
126
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 124

def principal_physical_location_country
  @principal_physical_location_country
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



131
132
133
134
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 131

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