@@ -6087,10 +6087,10 @@ pub enum Action {
60876087 ManageReleases ,
60886088 ManageVersions ,
60896089 Modify {
6090- modify_type : ActionModifyType ,
6090+ modify_type : Option < ActionModifyType > ,
60916091 } ,
60926092 Monitor {
6093- monitor_type : ActionMonitorType ,
6093+ monitor_type : Option < ActionMonitorType > ,
60946094 } ,
60956095 Operate ,
60966096 OverrideShareRestrictions ,
@@ -6123,7 +6123,7 @@ impl fmt::Display for Action {
61236123 match self {
61246124 Action :: AddSearchOptimization => f. write_str ( "ADD SEARCH OPTIMIZATION" ) ?,
61256125 Action :: Apply { apply_type } => write ! ( f, "APPLY {apply_type}" ) ?,
6126- Action :: ApplyBudget => f. write_str ( "APPLY BUDGET " ) ?,
6126+ Action :: ApplyBudget => f. write_str ( "APPLYBUDGET " ) ?,
61276127 Action :: AttachListing => f. write_str ( "ATTACH LISTING" ) ?,
61286128 Action :: AttachPolicy => f. write_str ( "ATTACH POLICY" ) ?,
61296129 Action :: Audit => f. write_str ( "AUDIT" ) ?,
@@ -6151,8 +6151,18 @@ impl fmt::Display for Action {
61516151 Action :: Manage { manage_type } => write ! ( f, "MANAGE {manage_type}" ) ?,
61526152 Action :: ManageReleases => f. write_str ( "MANAGE RELEASES" ) ?,
61536153 Action :: ManageVersions => f. write_str ( "MANAGE VERSIONS" ) ?,
6154- Action :: Modify { modify_type } => write ! ( f, "MODIFY {modify_type}" ) ?,
6155- Action :: Monitor { monitor_type } => write ! ( f, "MONITOR {monitor_type}" ) ?,
6154+ Action :: Modify { modify_type } => {
6155+ write ! ( f, "MODIFY" ) ?;
6156+ if let Some ( modify_type) = modify_type {
6157+ write ! ( f, " {modify_type}" ) ?;
6158+ }
6159+ }
6160+ Action :: Monitor { monitor_type } => {
6161+ write ! ( f, "MONITOR" ) ?;
6162+ if let Some ( monitor_type) = monitor_type {
6163+ write ! ( f, " {monitor_type}" ) ?
6164+ }
6165+ }
61566166 Action :: Operate => f. write_str ( "OPERATE" ) ?,
61576167 Action :: OverrideShareRestrictions => f. write_str ( "OVERRIDE SHARE RESTRICTIONS" ) ?,
61586168 Action :: Ownership => f. write_str ( "OWNERSHIP" ) ?,
@@ -6470,6 +6480,20 @@ pub enum GrantObjects {
64706480 Warehouses ( Vec < ObjectName > ) ,
64716481 /// Grant privileges on specific integrations
64726482 Integrations ( Vec < ObjectName > ) ,
6483+ /// Grant privileges on resource monitors
6484+ ResourceMonitors ( Vec < ObjectName > ) ,
6485+ /// Grant privileges on users
6486+ Users ( Vec < ObjectName > ) ,
6487+ /// Grant privileges on compute pools
6488+ ComputePools ( Vec < ObjectName > ) ,
6489+ /// Grant privileges on connections
6490+ Connections ( Vec < ObjectName > ) ,
6491+ /// Grant privileges on failover groups
6492+ FailoverGroup ( Vec < ObjectName > ) ,
6493+ /// Grant privileges on replication group
6494+ ReplicationGroup ( Vec < ObjectName > ) ,
6495+ /// Grant privileges on external volumes
6496+ ExternalVolumes ( Vec < ObjectName > ) ,
64736497}
64746498
64756499impl fmt:: Display for GrantObjects {
@@ -6510,6 +6534,27 @@ impl fmt::Display for GrantObjects {
65106534 display_comma_separated( schemas)
65116535 )
65126536 }
6537+ GrantObjects :: ResourceMonitors ( objects) => {
6538+ write ! ( f, "RESOURCE MONITOR {}" , display_comma_separated( objects) )
6539+ }
6540+ GrantObjects :: Users ( objects) => {
6541+ write ! ( f, "USER {}" , display_comma_separated( objects) )
6542+ }
6543+ GrantObjects :: ComputePools ( objects) => {
6544+ write ! ( f, "COMPUTE POOL {}" , display_comma_separated( objects) )
6545+ }
6546+ GrantObjects :: Connections ( objects) => {
6547+ write ! ( f, "CONNECTION {}" , display_comma_separated( objects) )
6548+ }
6549+ GrantObjects :: FailoverGroup ( objects) => {
6550+ write ! ( f, "FAILOVER GROUP {}" , display_comma_separated( objects) )
6551+ }
6552+ GrantObjects :: ReplicationGroup ( objects) => {
6553+ write ! ( f, "REPLICATION GROUP {}" , display_comma_separated( objects) )
6554+ }
6555+ GrantObjects :: ExternalVolumes ( objects) => {
6556+ write ! ( f, "EXTERNAL VOLUME {}" , display_comma_separated( objects) )
6557+ }
65136558 }
65146559 }
65156560}
0 commit comments