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-03-21 UTC."],[[["This page details the `AllocationPolicy.Types.LocationPolicy` class within the `Google.Cloud.Batch.V1` namespace for .NET, specifically focusing on version 2.4.0."],["The `LocationPolicy` class is a sealed class that implements multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing functionality for message handling, equality checks, deep cloning, and buffer manipulation."],["The class inherits from the base `object` class, and its members include inherited methods like `GetHashCode()`, `GetType()`, and `ToString()`, and it contains two constructors, a default `LocationPolicy()` and one that allows you to copy an existing `LocationPolicy` object."],["It also includes the `AllowedLocations` property, which is a `RepeatedField` of strings that represents a list of allowed locations, specified by regions or zones, in which the VMs can be located."],["The current documentation allows you to access historical versions as early as version 1.0.0, all the way up to the latest version, 2.13.0."]]],[]]