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-04-17 UTC."],[[["The content provides a comprehensive list of versions for `LocationPolicy`, ranging from the latest version 2.13.0 down to 1.0.0, all within the Google.Cloud.Batch.V1 namespace."],["`LocationPolicy` is a sealed class that implements several interfaces, including `IMessage\u003cAllocationPolicy.Types.LocationPolicy\u003e`, `IEquatable\u003cAllocationPolicy.Types.LocationPolicy\u003e`, `IDeepCloneable\u003cAllocationPolicy.Types.LocationPolicy\u003e`, `IBufferMessage`, and `IMessage`."],["The class `LocationPolicy` inherits from `Object` and includes constructors for default initialization and creating a copy from another `AllocationPolicy.Types.LocationPolicy` object."],["The `AllowedLocations` property of the `LocationPolicy` class is of type `RepeatedField\u003cstring\u003e` and represents a list of allowed regions or zones for virtual machines."],["The documentation specifies that only one region or multiple zones within the same region are allowed and mixing locations from different regions will result in an error."]]],[]]