public sealed class ResourcePolicyGroupPlacementPolicy : IMessage<ResourcePolicyGroupPlacementPolicy>, IEquatable<ResourcePolicyGroupPlacementPolicy>, IDeepCloneable<ResourcePolicyGroupPlacementPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class ResourcePolicyGroupPlacementPolicy.
A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation as well as network locality
The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.
Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
[[["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 documentation covers the \u003ccode\u003eResourcePolicyGroupPlacementPolicy\u003c/code\u003e class within the Google Cloud Compute Engine v1 API, with the latest version being 3.6.0 and a range of prior versions available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResourcePolicyGroupPlacementPolicy\u003c/code\u003e is used to configure resource placement, including failure bucket separation and network locality, implementing several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eResourcePolicyGroupPlacementPolicy\u003c/code\u003e class include \u003ccode\u003eAvailabilityDomainCount\u003c/code\u003e to specify the number of availability domains for instances, \u003ccode\u003eCollocation\u003c/code\u003e to define network collocation, and \u003ccode\u003eVmCount\u003c/code\u003e to set the number of VMs within a placement group.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods for setting the \u003ccode\u003eAvailabilityDomainCount\u003c/code\u003e, \u003ccode\u003eCollocation\u003c/code\u003e, and \u003ccode\u003eVmCount\u003c/code\u003e properties and has boolean getters to check if these fields are set: \u003ccode\u003eHasAvailabilityDomainCount\u003c/code\u003e, \u003ccode\u003eHasCollocation\u003c/code\u003e and \u003ccode\u003eHasVmCount\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes inherited members from the \u003ccode\u003eobject\u003c/code\u003e class like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e, along with details on constructors for creating instances of \u003ccode\u003eResourcePolicyGroupPlacementPolicy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]