autoscalingPolicy = $autoscalingPolicy; } /** * @return NodeGroupAutoscalingPolicy */ public function getAutoscalingPolicy() { return $this->autoscalingPolicy; } /** * Output only. [Output Only] Creation timestamp inRFC3339 text format. * * @param string $creationTimestamp */ public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; } /** * @return string */ public function getCreationTimestamp() { return $this->creationTimestamp; } /** * An optional description of this resource. Provide this property when you * create the resource. * * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string $fingerprint */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * Output only. [Output Only] The unique identifier for the resource. This * identifier is defined by the server. * * @param string $id */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * Output only. [Output Only] The type of the resource. * Alwayscompute#nodeGroup for node group. * * @param string $kind */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * An opaque location hint used to place the Node close to other resources. * This field is for use by internal tools that use the public API. The * location hint here on the NodeGroup overrides any location_hint present in * the NodeTemplate. * * @param string $locationHint */ public function setLocationHint($locationHint) { $this->locationHint = $locationHint; } /** * @return string */ public function getLocationHint() { return $this->locationHint; } /** * Specifies the frequency of planned maintenance events. The accepted values * are: `AS_NEEDED` and `RECURRENT`. * * Accepted values: AS_NEEDED, RECURRENT * * @param self::MAINTENANCE_INTERVAL_* $maintenanceInterval */ public function setMaintenanceInterval($maintenanceInterval) { $this->maintenanceInterval = $maintenanceInterval; } /** * @return self::MAINTENANCE_INTERVAL_* */ public function getMaintenanceInterval() { return $this->maintenanceInterval; } /** * Specifies how to handle instances when a node in the group undergoes * maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or * MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more * information, see Maintenance policies. * * Accepted values: DEFAULT, MAINTENANCE_POLICY_UNSPECIFIED, * MIGRATE_WITHIN_NODE_GROUP, RESTART_IN_PLACE * * @param self::MAINTENANCE_POLICY_* $maintenancePolicy */ public function setMaintenancePolicy($maintenancePolicy) { $this->maintenancePolicy = $maintenancePolicy; } /** * @return self::MAINTENANCE_POLICY_* */ public function getMaintenancePolicy() { return $this->maintenancePolicy; } /** * @param NodeGroupMaintenanceWindow $maintenanceWindow */ public function setMaintenanceWindow(NodeGroupMaintenanceWindow $maintenanceWindow) { $this->maintenanceWindow = $maintenanceWindow; } /** * @return NodeGroupMaintenanceWindow */ public function getMaintenanceWindow() { return $this->maintenanceWindow; } /** * The name of the resource, provided by the client when initially creating * the resource. The resource name must be 1-63 characters long, and comply * withRFC1035. Specifically, the name must be 1-63 characters long and match * the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first * character must be a lowercase letter, and all following characters must be * a dash, lowercase letter, or digit, except the last character, which cannot * be a dash. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * URL of the node template to create the node group from. * * @param string $nodeTemplate */ public function setNodeTemplate($nodeTemplate) { $this->nodeTemplate = $nodeTemplate; } /** * @return string */ public function getNodeTemplate() { return $this->nodeTemplate; } /** * Output only. [Output Only] Server-defined URL for the resource. * * @param string $selfLink */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * Share-settings for the node group * * @param ShareSettings $shareSettings */ public function setShareSettings(ShareSettings $shareSettings) { $this->shareSettings = $shareSettings; } /** * @return ShareSettings */ public function getShareSettings() { return $this->shareSettings; } /** * Output only. [Output Only] The total number of nodes in the node group. * * @param int $size */ public function setSize($size) { $this->size = $size; } /** * @return int */ public function getSize() { return $this->size; } /** * @param self::STATUS_* $status */ public function setStatus($status) { $this->status = $status; } /** * @return self::STATUS_* */ public function getStatus() { return $this->status; } /** * Output only. [Output Only] The name of the zone where the node group * resides, such as us-central1-a. * * @param string $zone */ public function setZone($zone) { $this->zone = $zone; } /** * @return string */ public function getZone() { return $this->zone; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(NodeGroup::class, 'Google_Service_Compute_NodeGroup');