databaseRoles = $databaseRoles; } /** * @return string[] */ public function getDatabaseRoles() { return $this->databaseRoles; } /** * Input only. If the user already exists and it has additional roles, keep * them granted. * * @param bool $keepExtraRoles */ public function setKeepExtraRoles($keepExtraRoles) { $this->keepExtraRoles = $keepExtraRoles; } /** * @return bool */ public function getKeepExtraRoles() { return $this->keepExtraRoles; } /** * Output only. Name of the resource in the form of * projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Input only. Password for the user. * * @param string $password */ public function setPassword($password) { $this->password = $password; } /** * @return string */ public function getPassword() { return $this->password; } /** * Optional. Type of this user. * * Accepted values: USER_TYPE_UNSPECIFIED, ALLOYDB_BUILT_IN, ALLOYDB_IAM_USER * * @param self::USER_TYPE_* $userType */ public function setUserType($userType) { $this->userType = $userType; } /** * @return self::USER_TYPE_* */ public function getUserType() { return $this->userType; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(User::class, 'Google_Service_CloudAlloyDBAdmin_User');