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\u003eThe latest version available for \u003ccode\u003eAllocationPolicy.Types.LocationPolicy\u003c/code\u003e is 2.13.0, with various previous versions listed, including 2.0.0, down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAllocationPolicy.Types.LocationPolicy\u003c/code\u003e is a sealed class that implements several interfaces including IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and resides within the Google.Cloud.Batch.V1 namespace, specifically within the Google.Cloud assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: a default constructor \u003ccode\u003eLocationPolicy()\u003c/code\u003e and a copy constructor \u003ccode\u003eLocationPolicy(AllocationPolicy.Types.LocationPolicy other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllowedLocations\u003c/code\u003e property, of type \u003ccode\u003eRepeatedField<string>\u003c/code\u003e, specifies a list of allowed regions or zones for virtual machine locations, although it currently supports only one region or multiple zones within one region.\u003c/p\u003e\n"]]],[],null,[]]