public sealed class LocationPolicy : IMessage<AllocationPolicy.Types.LocationPolicy>, IEquatable<AllocationPolicy.Types.LocationPolicy>, IDeepCloneable<AllocationPolicy.Types.LocationPolicy>, IBufferMessage, IMessage
public RepeatedField<string> AllowedLocations { get; }
A list of allowed location names represented by internal URLs.
Each location can be a region or a zone.
Only one region or multiple zones in one region is supported now.
For example,
["regions/us-central1"] allow VMs in any zones in region us-central1.
["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
in zones us-central1-a and us-central1-c.
All locations end up in different regions would cause errors.
For example,
["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
"zones/us-west1-a"] contains 2 regions "us-central1" and
"us-west1". An error is expected in this case.
[[["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-03-21 UTC."],[[["This webpage provides documentation for the `LocationPolicy` class within the `Google.Cloud.Batch.V1` namespace, detailing its implementation and usage across various versions."],["The `LocationPolicy` class, found in the `Google.Cloud.Batch.V1.AllocationPolicy.Types` namespace, is a sealed class implementing multiple interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["It includes constructors for creating `LocationPolicy` objects, either as an empty instance or by using an existing `AllocationPolicy.Types.LocationPolicy` object."],["The `AllowedLocations` property is a `RepeatedField\u003cstring\u003e` that contains the allowed regions and zones in which VMs can be created."],["This page lists multiple versions, from 1.0.0 to 2.13.0 (latest), of the document, with each linking to the corresponding release's documentation."]]],[]]