Skip to content

Commit feec84d

Browse files
1 parent bb24623 commit feec84d

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

src/MigrationCenterAPI/Resource/ProjectsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,16 @@ public function getSettings($name, $optParams = [])
6262
}
6363
/**
6464
* Lists information about the supported locations for this service. This method
65-
* can be called in two ways: * **List all public locations:** Use the path `GET
66-
* /v1/locations`. * **List project-visible locations:** Use the path `GET
67-
* /v1/projects/{project_id}/locations`. This may include public locations as
68-
* well as private or other locations specifically visible to the project.
69-
* (locations.listProjectsLocations)
65+
* lists locations based on the resource scope provided in the
66+
* [ListLocationsRequest.name] field: * **Global locations**: If `name` is
67+
* empty, the method lists the public locations available to all projects. *
68+
* **Project-specific locations**: If `name` follows the format
69+
* `projects/{project}`, the method lists locations visible to that specific
70+
* project. This includes public, private, or other project-specific locations
71+
* enabled for the project. For gRPC and client library implementations, the
72+
* resource name is passed as the `name` field. For direct service calls, the
73+
* resource name is incorporated into the request path based on the specific
74+
* service implementation and version. (locations.listProjectsLocations)
7075
*
7176
* @param string $name The resource that owns the locations collection, if
7277
* applicable.

0 commit comments

Comments
 (0)