public sealed class DistributionPolicy : IMessage<DistributionPolicy>, IEquatable<DistributionPolicy>, IDeepCloneable<DistributionPolicy>, IBufferMessage, IMessage
The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).
Check the TargetShape enum for the list of possible values.
[[["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\u003eThis webpage provides documentation for the \u003ccode\u003eDistributionPolicy\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, specifically for version 2.2.0 of the library, with links to different versions of documentation for the same class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDistributionPolicy\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly and 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.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, \u003ccode\u003eDistributionPolicy()\u003c/code\u003e and \u003ccode\u003eDistributionPolicy(DistributionPolicy other)\u003c/code\u003e, which creates a new instance of the \u003ccode\u003eDistributionPolicy\u003c/code\u003e class, or one based off of another \u003ccode\u003eDistributionPolicy\u003c/code\u003e class, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDistributionPolicy\u003c/code\u003e class includes properties like \u003ccode\u003eHasTargetShape\u003c/code\u003e (a boolean), \u003ccode\u003eTargetShape\u003c/code\u003e (a string), and \u003ccode\u003eZones\u003c/code\u003e (a \u003ccode\u003eRepeatedField\u003c/code\u003e of \u003ccode\u003eDistributionPolicyZoneConfiguration\u003c/code\u003e), providing information about the target distribution and zone configurations.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eObject\u003c/code\u003e and thus, inherits the following members: \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]