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"]],[["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-08 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLocationPolicy\u003c/code\u003e class in the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace defines the configuration for location preferences among multiple locations, such as selecting zones within a region.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocationPolicy\u003c/code\u003e class 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, which means it supports message operations, value equality, deep cloning, and buffered message operations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLocationPolicy\u003c/code\u003e objects can be constructed using a default constructor or by providing another \u003ccode\u003eLocationPolicy\u003c/code\u003e object as an argument.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocationPolicy\u003c/code\u003e class includes properties like \u003ccode\u003eHasTargetShape\u003c/code\u003e, \u003ccode\u003eLocations\u003c/code\u003e (a map of location configurations), and \u003ccode\u003eTargetShape\u003c/code\u003e to manage location preferences and strategy for VM distribution across zones.\u003c/p\u003e\n"]]],[],null,[]]