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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eAllocationPolicy.Types.LocationPolicy\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Batch.V1\u003c/code\u003e namespace for .NET, specifically focusing on version 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocationPolicy\u003c/code\u003e class is a sealed class that implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionality for message handling, equality checks, deep cloning, and buffer manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, and its members include inherited methods like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e, and it contains two constructors, a default \u003ccode\u003eLocationPolicy()\u003c/code\u003e and one that allows you to copy an existing \u003ccode\u003eLocationPolicy\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eIt also includes the \u003ccode\u003eAllowedLocations\u003c/code\u003e property, which is a \u003ccode\u003eRepeatedField\u003c/code\u003e of strings that represents a list of allowed locations, specified by regions or zones, in which the VMs can be located.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"]]],[],null,[]]