Skip to content

Commit c26498e

Browse files
1 parent 554aab3 commit c26498e

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

src/ArtifactRegistry/Resource/ProjectsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,16 @@ public function getVpcscConfig($name, $optParams = [])
7777
}
7878
/**
7979
* Lists information about the supported locations for this service. This method
80-
* can be called in two ways: * **List all public locations:** Use the path `GET
81-
* /v1/locations`. * **List project-visible locations:** Use the path `GET
82-
* /v1/projects/{project_id}/locations`. This may include public locations as
83-
* well as private or other locations specifically visible to the project.
84-
* (locations.listProjectsLocations)
80+
* lists locations based on the resource scope provided in the
81+
* [ListLocationsRequest.name] field: * **Global locations**: If `name` is
82+
* empty, the method lists the public locations available to all projects. *
83+
* **Project-specific locations**: If `name` follows the format
84+
* `projects/{project}`, the method lists locations visible to that specific
85+
* project. This includes public, private, or other project-specific locations
86+
* enabled for the project. For gRPC and client library implementations, the
87+
* resource name is passed as the `name` field. For direct service calls, the
88+
* resource name is incorporated into the request path based on the specific
89+
* service implementation and version. (locations.listProjectsLocations)
8590
*
8691
* @param string $name The resource that owns the locations collection, if
8792
* applicable.

0 commit comments

Comments
 (0)