public sealed class SetLocationsRequest : IMessage<SetLocationsRequest>, IEquatable<SetLocationsRequest>, IDeepCloneable<SetLocationsRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Kubernetes Engine v1 API class SetLocationsRequest.
SetLocationsRequest sets the locations of the cluster.
Required. The desired list of Google Compute Engine
zones in which the
cluster's nodes should be located. Changing the locations a cluster is in
will result in nodes being either created or removed from the cluster,
depending on whether locations are being added or removed.
This list must always include the cluster's primary zone.
[[["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 of the Google Cloud Container V1 API documentation available is 3.33.0, with a full list of previous versions, including the current version, 3.22.0, provided in a descending order.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetLocationsRequest\u003c/code\u003e class is used to define and manage the geographical zones for a cluster's nodes within the Google Kubernetes Engine (GKE).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetLocationsRequest\u003c/code\u003e class, an integral component of the Google.Cloud.Container.V1 namespace, allows users to set multiple Google Compute Engine zones where the cluster's nodes are located, requiring that the primary zone is always included.\u003c/p\u003e\n"],["\u003cp\u003eSeveral properties within \u003ccode\u003eSetLocationsRequest\u003c/code\u003e like \u003ccode\u003eClusterId\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eZone\u003c/code\u003e have been deprecated and are replaced by a new \u003ccode\u003eName\u003c/code\u003e property, which specifies the project, location, and cluster name.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eSetLocationsRequest\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing a variety of functionalities such as data comparison and cloning.\u003c/p\u003e\n"]]],[],null,[]]