@@ -10578,6 +10578,7 @@ impl fmt::Display for CreateUser {
1057810578pub struct AlterUser {
1057910579 pub if_exists : bool ,
1058010580 pub name : Ident ,
10581+ /// The following fields are Snowflake-specific: <https://docs.snowflake.com/en/sql-reference/sql/alter-user#syntax>
1058110582 pub rename_to : Option < Ident > ,
1058210583 pub reset_password : bool ,
1058310584 pub abort_all_queries : bool ,
@@ -10587,6 +10588,7 @@ pub struct AlterUser {
1058710588 pub set_default_mfa_method : Option < MfaMethodKind > ,
1058810589 pub remove_mfa_method : Option < MfaMethodKind > ,
1058910590 pub modify_mfa_method : Option < AlterUserModifyMfaMethod > ,
10591+ pub add_mfa_method_otp : Option < AlterUserAddMfaMethodOtp > ,
1059010592 pub set_policy : Option < AlterUserSetPolicy > ,
1059110593 pub unset_policy : Option < UserPolicyKind > ,
1059210594 pub set_tag : KeyValueOptions ,
@@ -10617,6 +10619,16 @@ pub struct AlterUserRemoveRoleDelegation {
1061710619 pub integration : Ident ,
1061810620}
1061910621
10622+ /// ```sql
10623+ /// ADD MFA METHOD OTP [ COUNT = number ]
10624+ /// ```
10625+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
10626+ #[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
10627+ #[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
10628+ pub struct AlterUserAddMfaMethodOtp {
10629+ pub count : Option < Value > ,
10630+ }
10631+
1062010632/// ```sql
1062110633/// ALTER USER [ IF EXISTS ] [ <name> ] MODIFY MFA METHOD <mfa_method> SET COMMENT = '<string>'
1062210634/// ```
@@ -10731,6 +10743,12 @@ impl fmt::Display for AlterUser {
1073110743 value:: escape_single_quote_string( comment)
1073210744 ) ?;
1073310745 }
10746+ if let Some ( add_mfa_method_otp) = & self . add_mfa_method_otp {
10747+ write ! ( f, " ADD MFA METHOD OTP" ) ?;
10748+ if let Some ( count) = & add_mfa_method_otp. count {
10749+ write ! ( f, " COUNT = {count}" ) ?;
10750+ }
10751+ }
1073410752 if let Some ( policy) = & self . set_policy {
1073510753 let policy_kind = & policy. policy_kind ;
1073610754 let name = & policy. policy ;
0 commit comments