Skip to content

Commit 720551e

Browse files
docs: [Batch] restrict allowed_locations region or zone values to the same region where the job is created (#9384)
* docs: restrict `allowed_locations` region or zone values to the same region where the job is created PiperOrigin-RevId: 952076318 Source-Link: googleapis/googleapis@eeacbcf Source-Link: googleapis/googleapis-gen@63ee438 Copy-Tag: eyJwIjoiQmF0Y2gvLk93bEJvdC55YW1sIiwiaCI6IjYzZWU0Mzg3NzdkM2Q3ODIyOTkzOTY1ZDBhYWE4ZmYwY2Y2OWVjMDQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 0f960c3 commit 720551e

3 files changed

Lines changed: 118 additions & 48 deletions

File tree

Batch/samples/V1/BatchServiceClient/list_locations.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@
3232
/**
3333
* Lists information about the supported locations for this service.
3434
*
35+
* This method lists locations based on the resource scope provided in
36+
* the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: *
37+
* **Global locations**: If `name` is empty, the method lists the
38+
* public locations available to all projects. * **Project-specific
39+
* locations**: If `name` follows the format
40+
* `projects/{project}`, the method lists locations visible to that
41+
* specific project. This includes public, private, or other
42+
* project-specific locations enabled for the project.
43+
*
44+
* For gRPC and client library implementations, the resource name is
45+
* passed as the `name` field. For direct service calls, the resource
46+
* name is
47+
* incorporated into the request path based on the specific service
48+
* implementation and version.
49+
*
3550
* This sample has been automatically generated and should be regarded as a code
3651
* template only. It will require modifications to work:
3752
* - It may require correct/in-range values for request initialization.

Batch/src/V1/AllocationPolicy/LocationPolicy.php

Lines changed: 88 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Batch/src/V1/Client/BatchServiceClient.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = []
581581
/**
582582
* Lists information about the supported locations for this service.
583583
*
584+
* This method lists locations based on the resource scope provided in
585+
* the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: *
586+
* **Global locations**: If `name` is empty, the method lists the
587+
* public locations available to all projects. * **Project-specific
588+
* locations**: If `name` follows the format
589+
* `projects/{project}`, the method lists locations visible to that
590+
* specific project. This includes public, private, or other
591+
* project-specific locations enabled for the project.
592+
*
593+
* For gRPC and client library implementations, the resource name is
594+
* passed as the `name` field. For direct service calls, the resource
595+
* name is
596+
* incorporated into the request path based on the specific service
597+
* implementation and version.
598+
*
584599
* The async variant is {@see BatchServiceClient::listLocationsAsync()} .
585600
*
586601
* @example samples/V1/BatchServiceClient/list_locations.php

0 commit comments

Comments
 (0)