Reference documentation and code samples for the Google Cloud Access Approval V1 Client class AccessLocations.
Home office and physical location of the principal.
Generated from protobuf messagegoogle.cloud.accessapproval.v1.AccessLocations
Namespace
Google \ Cloud \ AccessApproval \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ principal_office_country
string
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
↳ principal_physical_location_country
string
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
getPrincipalOfficeCountry
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
Returns
Type
Description
string
setPrincipalOfficeCountry
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
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPrincipalPhysicalLocationCountry
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
Returns
Type
Description
string
setPrincipalPhysicalLocationCountry
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Access Approval V1 Client - Class AccessLocations (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-access-approval/latest/V1.AccessLocations)\n- [2.0.4](/php/docs/reference/cloud-access-approval/2.0.4/V1.AccessLocations)\n- [1.2.5](/php/docs/reference/cloud-access-approval/1.2.5/V1.AccessLocations)\n- [1.1.3](/php/docs/reference/cloud-access-approval/1.1.3/V1.AccessLocations)\n- [1.0.4](/php/docs/reference/cloud-access-approval/1.0.4/V1.AccessLocations) \nReference documentation and code samples for the Google Cloud Access Approval V1 Client class AccessLocations.\n\nHome office and physical location of the principal.\n\nGenerated from protobuf message `google.cloud.accessapproval.v1.AccessLocations`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AccessApproval \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPrincipalOfficeCountry\n\nThe \"home office\" location of the principal. A two-letter country code\n(ISO 3166-1 alpha-2), such as \"US\", \"DE\" or \"GB\" or a region code. In some\nlimited situations Google systems may refer refer to a region code instead\nof a country code.\n\nPossible Region Codes:\n\n- ASI: Asia\n- EUR: Europe\n- OCE: Oceania\n- AFR: Africa\n- NAM: North America\n- SAM: South America\n- ANT: Antarctica\n- ANY: Any location\n\n### setPrincipalOfficeCountry\n\nThe \"home office\" location of the principal. A two-letter country code\n(ISO 3166-1 alpha-2), such as \"US\", \"DE\" or \"GB\" or a region code. In some\nlimited situations Google systems may refer refer to a region code instead\nof a country code.\n\nPossible Region Codes:\n\n- ASI: Asia\n- EUR: Europe\n- OCE: Oceania\n- AFR: Africa\n- NAM: North America\n- SAM: South America\n- ANT: Antarctica\n- ANY: Any location\n\n### getPrincipalPhysicalLocationCountry\n\nPhysical location of the principal at the time of the access. A\ntwo-letter country code (ISO 3166-1 alpha-2), such as \"US\", \"DE\" or \"GB\" or\na region code. In some limited situations Google systems may refer refer to\na region code instead of a country code.\n\nPossible Region Codes:\n\n- ASI: Asia\n- EUR: Europe\n- OCE: Oceania\n- AFR: Africa\n- NAM: North America\n- SAM: South America\n- ANT: Antarctica\n- ANY: Any location\n\n### setPrincipalPhysicalLocationCountry\n\nPhysical location of the principal at the time of the access. A\ntwo-letter country code (ISO 3166-1 alpha-2), such as \"US\", \"DE\" or \"GB\" or\na region code. In some limited situations Google systems may refer refer to\na region code instead of a country code.\n\nPossible Region Codes:\n\n- ASI: Asia\n- EUR: Europe\n- OCE: Oceania\n- AFR: Africa\n- NAM: North America\n- SAM: South America\n- ANT: Antarctica\n- ANY: Any location"]]