@@ -75,7 +75,7 @@ def __init__(
7575 return_type : DataType ,
7676 input_types : List [DataType ],
7777 name : str ,
78- execute_as : typing .Literal ["caller" , "owner" ] = "owner" ,
78+ execute_as : typing .Literal ["caller" , "owner" , "restricted caller" ] = "owner" ,
7979 anonymous_sp_sql : Optional [str ] = None ,
8080 packages : Optional [List [Union [str , ModuleType ]]] = None ,
8181 _ast : Optional [proto .StoredProcedure ] = None ,
@@ -506,7 +506,7 @@ def register(
506506 replace : bool = False ,
507507 if_not_exists : bool = False ,
508508 parallel : int = 4 ,
509- execute_as : typing .Literal ["caller" , "owner" ] = "owner" ,
509+ execute_as : typing .Literal ["caller" , "owner" , "restricted caller" ] = "owner" ,
510510 strict : bool = False ,
511511 external_access_integrations : Optional [List [str ]] = None ,
512512 secrets : Optional [Dict [str , str ]] = None ,
@@ -654,7 +654,7 @@ def register_from_file(
654654 replace : bool = False ,
655655 if_not_exists : bool = False ,
656656 parallel : int = 4 ,
657- execute_as : typing .Literal ["caller" , "owner" ] = "owner" ,
657+ execute_as : typing .Literal ["caller" , "owner" , "restricted caller" ] = "owner" ,
658658 strict : bool = False ,
659659 external_access_integrations : Optional [List [str ]] = None ,
660660 secrets : Optional [Dict [str , str ]] = None ,
@@ -725,7 +725,7 @@ def register_from_file(
725725 Increasing the number of threads can improve performance when uploading
726726 large stored procedure files.
727727 execute_as: What permissions should the procedure have while executing. This
728- supports caller, or owner for now.
728+ supports `` caller``, ``owner`` or ``restricted caller`` for now.
729729 strict: Whether the created stored procedure is strict. A strict stored procedure will not invoke
730730 the stored procedure if any input is null. Instead, a null value will always be returned. Note
731731 that the stored procedure might still return null for non-null inputs.
@@ -811,7 +811,7 @@ def _do_register_sp(
811811 * ,
812812 source_code_display : bool = False ,
813813 statement_params : Optional [Dict [str , str ]] = None ,
814- execute_as : typing .Literal ["caller" , "owner" ] = "owner" ,
814+ execute_as : typing .Literal ["caller" , "owner" , "restricted caller" ] = "owner" ,
815815 anonymous : bool = False ,
816816 api_call_source : str ,
817817 skip_upload_on_content_match : bool = False ,
0 commit comments