public MapField<string, LocationPolicyLocation> Locations { get; }
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.
[[["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-31 UTC."],[[["The `LocationPolicy` class in the `Google.Cloud.Compute.V1` namespace defines the configuration for location preferences among multiple locations, such as selecting zones within a region."],["The latest version of the Google.Cloud.Compute.V1 package referenced on this page is version 3.6.0, while version 2.0.0 is being detailed, with many versions in between that are also included."],["The `LocationPolicy` class implements multiple interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, which means it supports message operations, value equality, deep cloning, and buffered message operations."],["`LocationPolicy` objects can be constructed using a default constructor or by providing another `LocationPolicy` object as an argument."],["The `LocationPolicy` class includes properties like `HasTargetShape`, `Locations` (a map of location configurations), and `TargetShape` to manage location preferences and strategy for VM distribution across zones."]]],[]]