Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Batch/samples/V1/BatchServiceClient/list_locations.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@
/**
* Lists information about the supported locations for this service.
*
* This method lists locations based on the resource scope provided in
* the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: *
* **Global locations**: If `name` is empty, the method lists the
* public locations available to all projects. * **Project-specific
* locations**: If `name` follows the format
* `projects/{project}`, the method lists locations visible to that
* specific project. This includes public, private, or other
* project-specific locations enabled for the project.
*
* For gRPC and client library implementations, the resource name is
* passed as the `name` field. For direct service calls, the resource
* name is
* incorporated into the request path based on the specific service
* implementation and version.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
Expand Down
136 changes: 88 additions & 48 deletions Batch/src/V1/AllocationPolicy/LocationPolicy.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Batch/src/V1/Client/BatchServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = []
/**
* Lists information about the supported locations for this service.
*
* This method lists locations based on the resource scope provided in
* the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: *
* **Global locations**: If `name` is empty, the method lists the
* public locations available to all projects. * **Project-specific
* locations**: If `name` follows the format
* `projects/{project}`, the method lists locations visible to that
* specific project. This includes public, private, or other
* project-specific locations enabled for the project.
*
* For gRPC and client library implementations, the resource name is
* passed as the `name` field. For direct service calls, the resource
* name is
* incorporated into the request path based on the specific service
* implementation and version.
*
* The async variant is {@see BatchServiceClient::listLocationsAsync()} .
*
* @example samples/V1/BatchServiceClient/list_locations.php
Expand Down
Loading