| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/dataproc/clusters/__pycache__/ |
Upload File : |
�
��L9 � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ dd l
mZ dd
l
m
Z
ddlmZ ddlmZ dd
lmZ ddlmZ ddlZ G d� de
j � � Zd� Zd� ZdS )zUpdate cluster command.� )�absolute_import)�division)�unicode_literals)�dataproc)�
exceptions)�util)�actions)�arg_parsers)�base)�flags)�labels_util)�log)�timesNc �. � e Zd ZdZed� � � Zd� ZdS )�Updatea Update labels and/or the number of worker nodes in a cluster.
Update the number of worker nodes and/or the labels in a cluster.
## EXAMPLES
To resize a cluster, run:
$ {command} my-cluster --region=us-central1 --num-workers=5
To change the number preemptible workers in a cluster, run:
$ {command} my-cluster --region=us-central1 --num-preemptible-workers=5
To add the label 'customer=acme' to a cluster, run:
$ {command} my-cluster --region=us-central1 --update-labels=customer=acme
To update the label 'customer=ackme' to 'customer=acme', run:
$ {command} my-cluster --region=us-central1 --update-labels=customer=acme
To remove the label whose key is 'customer', run:
$ {command} my-cluster --region=us-central1 --remove-labels=customer
c � � t j | � � � � � }t j � |� � t
j |� � t j |d�� � t j
|d|j � � |� dt d�� � |� d�� � }|� d t j d d
�� � t dd�
� � |� dt d�� � |� dt# j dd�� � d�� � |� ddt&