@@ -6097,10 +6097,10 @@ pub enum Action {
60976097 ManageReleases ,
60986098 ManageVersions ,
60996099 Modify {
6100- modify_type : ActionModifyType ,
6100+ modify_type : Option < ActionModifyType > ,
61016101 } ,
61026102 Monitor {
6103- monitor_type : ActionMonitorType ,
6103+ monitor_type : Option < ActionMonitorType > ,
61046104 } ,
61056105 Operate ,
61066106 OverrideShareRestrictions ,
@@ -6133,7 +6133,7 @@ impl fmt::Display for Action {
61336133 match self {
61346134 Action :: AddSearchOptimization => f. write_str ( "ADD SEARCH OPTIMIZATION" ) ?,
61356135 Action :: Apply { apply_type } => write ! ( f, "APPLY {apply_type}" ) ?,
6136- Action :: ApplyBudget => f. write_str ( "APPLY BUDGET " ) ?,
6136+ Action :: ApplyBudget => f. write_str ( "APPLYBUDGET " ) ?,
61376137 Action :: AttachListing => f. write_str ( "ATTACH LISTING" ) ?,
61386138 Action :: AttachPolicy => f. write_str ( "ATTACH POLICY" ) ?,
61396139 Action :: Audit => f. write_str ( "AUDIT" ) ?,
@@ -6161,8 +6161,18 @@ impl fmt::Display for Action {
61616161 Action :: Manage { manage_type } => write ! ( f, "MANAGE {manage_type}" ) ?,
61626162 Action :: ManageReleases => f. write_str ( "MANAGE RELEASES" ) ?,
61636163 Action :: ManageVersions => f. write_str ( "MANAGE VERSIONS" ) ?,
6164- Action :: Modify { modify_type } => write ! ( f, "MODIFY {modify_type}" ) ?,
6165- Action :: Monitor { monitor_type } => write ! ( f, "MONITOR {monitor_type}" ) ?,
6164+ Action :: Modify { modify_type } => {
6165+ write ! ( f, "MODIFY" ) ?;
6166+ if let Some ( modify_type) = modify_type {
6167+ write ! ( f, " {modify_type}" ) ?;
6168+ }
6169+ }
6170+ Action :: Monitor { monitor_type } => {
6171+ write ! ( f, "MONITOR" ) ?;
6172+ if let Some ( monitor_type) = monitor_type {
6173+ write ! ( f, " {monitor_type}" ) ?
6174+ }
6175+ }
61666176 Action :: Operate => f. write_str ( "OPERATE" ) ?,
61676177 Action :: OverrideShareRestrictions => f. write_str ( "OVERRIDE SHARE RESTRICTIONS" ) ?,
61686178 Action :: Ownership => f. write_str ( "OWNERSHIP" ) ?,
@@ -6480,6 +6490,20 @@ pub enum GrantObjects {
64806490 Warehouses ( Vec < ObjectName > ) ,
64816491 /// Grant privileges on specific integrations
64826492 Integrations ( Vec < ObjectName > ) ,
6493+ /// Grant privileges on resource monitors
6494+ ResourceMonitors ( Vec < ObjectName > ) ,
6495+ /// Grant privileges on users
6496+ Users ( Vec < ObjectName > ) ,
6497+ /// Grant privileges on compute pools
6498+ ComputePools ( Vec < ObjectName > ) ,
6499+ /// Grant privileges on connections
6500+ Connections ( Vec < ObjectName > ) ,
6501+ /// Grant privileges on failover groups
6502+ FailoverGroup ( Vec < ObjectName > ) ,
6503+ /// Grant privileges on replication group
6504+ ReplicationGroup ( Vec < ObjectName > ) ,
6505+ /// Grant privileges on external volumes
6506+ ExternalVolumes ( Vec < ObjectName > ) ,
64836507}
64846508
64856509impl fmt:: Display for GrantObjects {
@@ -6520,6 +6544,27 @@ impl fmt::Display for GrantObjects {
65206544 display_comma_separated( schemas)
65216545 )
65226546 }
6547+ GrantObjects :: ResourceMonitors ( objects) => {
6548+ write ! ( f, "RESOURCE MONITOR {}" , display_comma_separated( objects) )
6549+ }
6550+ GrantObjects :: Users ( objects) => {
6551+ write ! ( f, "USER {}" , display_comma_separated( objects) )
6552+ }
6553+ GrantObjects :: ComputePools ( objects) => {
6554+ write ! ( f, "COMPUTE POOL {}" , display_comma_separated( objects) )
6555+ }
6556+ GrantObjects :: Connections ( objects) => {
6557+ write ! ( f, "CONNECTION {}" , display_comma_separated( objects) )
6558+ }
6559+ GrantObjects :: FailoverGroup ( objects) => {
6560+ write ! ( f, "FAILOVER GROUP {}" , display_comma_separated( objects) )
6561+ }
6562+ GrantObjects :: ReplicationGroup ( objects) => {
6563+ write ! ( f, "REPLICATION GROUP {}" , display_comma_separated( objects) )
6564+ }
6565+ GrantObjects :: ExternalVolumes ( objects) => {
6566+ write ! ( f, "EXTERNAL VOLUME {}" , display_comma_separated( objects) )
6567+ }
65236568 }
65246569 }
65256570}
0 commit comments