public sealed class AllocationPolicy.Types.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."],[[["This webpage details the `AllocationPolicy.Types.LocationPolicy` class within the `Google.Cloud.Batch.V1` namespace for .NET, providing documentation across multiple versions, including the latest version 2.13.0."],["The `AllocationPolicy.Types.LocationPolicy` class implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, showing its role in protobuf messaging and cloning capabilities."],["The class allows the specification of allowed locations for VMs, either by region or specific zones, as evidenced by the `AllowedLocations` property, which is of type `RepeatedField\u003cstring\u003e`."],["The class includes two constructors: a default constructor (`LocationPolicy()`) and a copy constructor (`LocationPolicy(LocationPolicy)`) allowing creation of new instances and copies of the current instance."],["The documentation lists inherited members such as `GetHashCode()`, `GetType()`, and `ToString()` from the base `object` class."]]],[]]