Class SetMasterAuthRequest (2.17.4)

SetMasterAuthRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

SetMasterAuthRequest updates the admin password of a cluster.

Attributes

NameDescription
project_id str
Required. Deprecated. The Google Developers Console `project ID or project number
zone str
Required. Deprecated. The name of the Google Compute Engine zone __ in which the cluster resides. This field has been deprecated and replaced by the name field.
cluster_id str
Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
action google.cloud.container_v1beta1.types.SetMasterAuthRequest.Action
Required. The exact form of action to be taken on the master auth.
update google.cloud.container_v1beta1.types.MasterAuth
Required. A description of the update.
name str
The name (project, location, cluster) of the cluster to set auth. Specified in the format projects/*/locations/*/clusters/*.

Classes

Action

Action(value)

Operation type: what type update to perform.

Values: UNKNOWN (0): Operation is unknown and will error out. SET_PASSWORD (1): Set the password to a user generated value. GENERATE_PASSWORD (2): Generate a new password and set it to that. SET_USERNAME (3): Set the username. If an empty username is provided, basic authentication is disabled for the cluster. If a non-empty username is provided, basic authentication is enabled, with either a provided password or a generated one.