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.
Mixing locations from different regions would cause errors.
For example,
["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
"zones/us-west1-a"] contains locations from two distinct regions:
us-central1 and us-west1. This combination will trigger an error.
[[["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."],[[["The provided content is a documentation page for `AllocationPolicy.Types.LocationPolicy`, a class within the Google Cloud Batch V1 .NET library, specifically for version 2.12.0."],["Version 2.13.0 is the latest release, with multiple earlier versions also documented, dating back to 1.0.0, all of which include documentation for the same `LocationPolicy` class."],["`AllocationPolicy.Types.LocationPolicy` is a sealed class that implements interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, indicating its role in message handling and data management within the Google Cloud Batch API."],["This class features two constructors, a default constructor and one that takes another `LocationPolicy` object, enabling object creation and copying."],["The `AllowedLocations` property of type `RepeatedField\u003cstring\u003e` defines a list of region or zone names that are permitted for virtual machine (VM) allocation, supporting specifications for single regions or multiple zones within a single region."]]],[]]