@@ -6079,10 +6079,10 @@ pub enum Action {
60796079 ManageReleases ,
60806080 ManageVersions ,
60816081 Modify {
6082- modify_type : ActionModifyType ,
6082+ modify_type : Option < ActionModifyType > ,
60836083 } ,
60846084 Monitor {
6085- monitor_type : ActionMonitorType ,
6085+ monitor_type : Option < ActionMonitorType > ,
60866086 } ,
60876087 Operate ,
60886088 OverrideShareRestrictions ,
@@ -6115,7 +6115,7 @@ impl fmt::Display for Action {
61156115 match self {
61166116 Action :: AddSearchOptimization => f. write_str ( "ADD SEARCH OPTIMIZATION" ) ?,
61176117 Action :: Apply { apply_type } => write ! ( f, "APPLY {apply_type}" ) ?,
6118- Action :: ApplyBudget => f. write_str ( "APPLY BUDGET " ) ?,
6118+ Action :: ApplyBudget => f. write_str ( "APPLYBUDGET " ) ?,
61196119 Action :: AttachListing => f. write_str ( "ATTACH LISTING" ) ?,
61206120 Action :: AttachPolicy => f. write_str ( "ATTACH POLICY" ) ?,
61216121 Action :: Audit => f. write_str ( "AUDIT" ) ?,
@@ -6143,8 +6143,18 @@ impl fmt::Display for Action {
61436143 Action :: Manage { manage_type } => write ! ( f, "MANAGE {manage_type}" ) ?,
61446144 Action :: ManageReleases => f. write_str ( "MANAGE RELEASES" ) ?,
61456145 Action :: ManageVersions => f. write_str ( "MANAGE VERSIONS" ) ?,
6146- Action :: Modify { modify_type } => write ! ( f, "MODIFY {modify_type}" ) ?,
6147- Action :: Monitor { monitor_type } => write ! ( f, "MONITOR {monitor_type}" ) ?,
6146+ Action :: Modify { modify_type } => {
6147+ write ! ( f, "MODIFY" ) ?;
6148+ if let Some ( modify_type) = modify_type {
6149+ write ! ( f, " {modify_type}" ) ?;
6150+ }
6151+ }
6152+ Action :: Monitor { monitor_type } => {
6153+ write ! ( f, "MONITOR" ) ?;
6154+ if let Some ( monitor_type) = monitor_type {
6155+ write ! ( f, " {monitor_type}" ) ?
6156+ }
6157+ }
61486158 Action :: Operate => f. write_str ( "OPERATE" ) ?,
61496159 Action :: OverrideShareRestrictions => f. write_str ( "OVERRIDE SHARE RESTRICTIONS" ) ?,
61506160 Action :: Ownership => f. write_str ( "OWNERSHIP" ) ?,
@@ -6462,6 +6472,20 @@ pub enum GrantObjects {
64626472 Warehouses ( Vec < ObjectName > ) ,
64636473 /// Grant privileges on specific integrations
64646474 Integrations ( Vec < ObjectName > ) ,
6475+ /// Grant privileges on resource monitors
6476+ ResourceMonitors ( Vec < ObjectName > ) ,
6477+ /// Grant privileges on users
6478+ Users ( Vec < ObjectName > ) ,
6479+ /// Grant privileges on compute pools
6480+ ComputePools ( Vec < ObjectName > ) ,
6481+ /// Grant privileges on connections
6482+ Connections ( Vec < ObjectName > ) ,
6483+ /// Grant privileges on failover groups
6484+ FailoverGroup ( Vec < ObjectName > ) ,
6485+ /// Grant privileges on replication group
6486+ ReplicationGroup ( Vec < ObjectName > ) ,
6487+ /// Grant privileges on external volumes
6488+ ExternalVolumes ( Vec < ObjectName > ) ,
64656489}
64666490
64676491impl fmt:: Display for GrantObjects {
@@ -6502,6 +6526,27 @@ impl fmt::Display for GrantObjects {
65026526 display_comma_separated( schemas)
65036527 )
65046528 }
6529+ GrantObjects :: ResourceMonitors ( objects) => {
6530+ write ! ( f, "RESOURCE MONITOR {}" , display_comma_separated( objects) )
6531+ }
6532+ GrantObjects :: Users ( objects) => {
6533+ write ! ( f, "USER {}" , display_comma_separated( objects) )
6534+ }
6535+ GrantObjects :: ComputePools ( objects) => {
6536+ write ! ( f, "COMPUTE POOL {}" , display_comma_separated( objects) )
6537+ }
6538+ GrantObjects :: Connections ( objects) => {
6539+ write ! ( f, "CONNECTION {}" , display_comma_separated( objects) )
6540+ }
6541+ GrantObjects :: FailoverGroup ( objects) => {
6542+ write ! ( f, "FAILOVER GROUP {}" , display_comma_separated( objects) )
6543+ }
6544+ GrantObjects :: ReplicationGroup ( objects) => {
6545+ write ! ( f, "REPLICATION GROUP {}" , display_comma_separated( objects) )
6546+ }
6547+ GrantObjects :: ExternalVolumes ( objects) => {
6548+ write ! ( f, "EXTERNAL VOLUME {}" , display_comma_separated( objects) )
6549+ }
65056550 }
65066551 }
65076552}
0 commit comments