@@ -23,16 +23,16 @@ impl DataStore {
2323 /// isn't complete and will lead to a db deadlock.
2424 ///
2525 /// See <https://github.com/oxidecomputer/omicron/blob/07eb7dafc20e35e44edf429fcbb759cbb33edd5f/nexus/db-queries/src/db/datastore/rack.rs#L407-L410>
26- pub async fn silo_settings_create (
26+ pub async fn silo_auth_settings_create (
2727 & self ,
2828 conn : & async_bb8_diesel:: Connection < DbConnection > ,
2929 authz_silo : & authz:: Silo ,
3030 settings : SiloSettings ,
3131 ) -> Result < ( ) , Error > {
3232 let silo_id = authz_silo. id ( ) ;
33- use nexus_db_schema:: schema:: silo_settings ;
33+ use nexus_db_schema:: schema:: silo_auth_settings ;
3434
35- diesel:: insert_into ( silo_settings :: table)
35+ diesel:: insert_into ( silo_auth_settings :: table)
3636 . values ( settings)
3737 . execute_async ( conn)
3838 . await
@@ -48,7 +48,7 @@ impl DataStore {
4848 . map ( |_| ( ) )
4949 }
5050
51- pub async fn silo_settings_delete (
51+ pub async fn silo_auth_settings_delete (
5252 & self ,
5353 opctx : & OpContext ,
5454 conn : & async_bb8_diesel:: Connection < DbConnection > ,
@@ -58,26 +58,26 @@ impl DataStore {
5858 // Silo we just check for delete permission on the silo itself.
5959 opctx. authorize ( authz:: Action :: Delete , authz_silo) . await ?;
6060
61- use nexus_db_schema:: schema:: silo_settings ;
62- diesel:: delete ( silo_settings :: table)
63- . filter ( silo_settings :: silo_id. eq ( authz_silo. id ( ) ) )
61+ use nexus_db_schema:: schema:: silo_auth_settings ;
62+ diesel:: delete ( silo_auth_settings :: table)
63+ . filter ( silo_auth_settings :: silo_id. eq ( authz_silo. id ( ) ) )
6464 . execute_async ( conn)
6565 . await
6666 . map_err ( |e| public_error_from_diesel ( e, ErrorHandler :: Server ) ) ?;
6767
6868 Ok ( ( ) )
6969 }
7070
71- pub async fn silo_settings_update (
71+ pub async fn silo_auth_settings_update (
7272 & self ,
7373 opctx : & OpContext ,
7474 authz_silo : & authz:: Silo ,
7575 updates : SiloSettingsUpdate ,
7676 ) -> UpdateResult < SiloSettings > {
7777 opctx. authorize ( authz:: Action :: Modify , authz_silo) . await ?;
78- use nexus_db_schema:: schema:: silo_settings :: dsl;
78+ use nexus_db_schema:: schema:: silo_auth_settings :: dsl;
7979 let silo_id = authz_silo. id ( ) ;
80- diesel:: update ( dsl:: silo_settings )
80+ diesel:: update ( dsl:: silo_auth_settings )
8181 . filter ( dsl:: silo_id. eq ( silo_id) )
8282 . set ( updates)
8383 . returning ( SiloSettings :: as_returning ( ) )
@@ -94,7 +94,7 @@ impl DataStore {
9494 } )
9595 }
9696
97- pub async fn silo_settings_view (
97+ pub async fn silo_auth_settings_view (
9898 & self ,
9999 opctx : & OpContext ,
100100 authz_silo : & authz:: Silo ,
@@ -104,8 +104,8 @@ impl DataStore {
104104 // read on all silos.
105105 opctx. authorize ( authz:: Action :: Read , authz_silo) . await ?;
106106
107- use nexus_db_schema:: schema:: silo_settings :: dsl;
108- dsl:: silo_settings
107+ use nexus_db_schema:: schema:: silo_auth_settings :: dsl;
108+ dsl:: silo_auth_settings
109109 . filter ( dsl:: silo_id. eq ( authz_silo. id ( ) ) )
110110 . first_async ( & * self . pool_connection_authorized ( opctx) . await ?)
111111 . await
0 commit comments