@@ -9,14 +9,14 @@ class Functions extends Service {
99 /// Get a list of all the project's functions. You can use the query params to
1010 /// filter your results.
1111 ///
12- Future <Response > list ({String search = '' , int limit = 25 , int offset = 0 , OrderType orderType = OrderType .asc }) {
12+ Future <Response > list ({String ? search, int ? limit, int ? offset, OrderType ? orderType}) {
1313 final String path = '/functions' ;
1414
1515 final Map <String , dynamic > params = {
1616 'search' : search,
1717 'limit' : limit,
1818 'offset' : offset,
19- 'orderType' : orderType.name (),
19+ 'orderType' : orderType? .name (),
2020 };
2121
2222 final Map <String , String > headers = {
@@ -32,7 +32,7 @@ class Functions extends Service {
3232 /// [permissions] (/docs/permissions) to allow different project users or team
3333 /// with access to execute the function using the client API.
3434 ///
35- Future <Response > create ({required String name, required List execute, required String env, Map vars = const {} , List events = const [] , String schedule = '' , int timeout = 15 }) {
35+ Future <Response > create ({required String name, required List execute, required String env, Map ? vars, List ? events, String ? schedule, int ? timeout}) {
3636 final String path = '/functions' ;
3737
3838 final Map <String , dynamic > params = {
@@ -73,7 +73,7 @@ class Functions extends Service {
7373 ///
7474 /// Update function by its unique ID.
7575 ///
76- Future <Response > update ({required String functionId, required String name, required List execute, Map vars = const {} , List events = const [] , String schedule = '' , int timeout = 15 }) {
76+ Future <Response > update ({required String functionId, required String name, required List execute, Map ? vars, List ? events, String ? schedule, int ? timeout}) {
7777 final String path = '/functions/{functionId}' .replaceAll (RegExp ('{functionId}' ), functionId);
7878
7979 final Map <String , dynamic > params = {
@@ -116,14 +116,14 @@ class Functions extends Service {
116116 /// return a list of all of the project's executions. [Learn more about
117117 /// different API modes](/docs/admin).
118118 ///
119- Future <Response > listExecutions ({required String functionId, String search = '' , int limit = 25 , int offset = 0 , OrderType orderType = OrderType .asc }) {
119+ Future <Response > listExecutions ({required String functionId, String ? search, int ? limit, int ? offset, OrderType ? orderType}) {
120120 final String path = '/functions/{functionId}/executions' .replaceAll (RegExp ('{functionId}' ), functionId);
121121
122122 final Map <String , dynamic > params = {
123123 'search' : search,
124124 'limit' : limit,
125125 'offset' : offset,
126- 'orderType' : orderType.name (),
126+ 'orderType' : orderType? .name (),
127127 };
128128
129129 final Map <String , String > headers = {
@@ -140,7 +140,7 @@ class Functions extends Service {
140140 /// updates on the current execution status. Once this endpoint is called, your
141141 /// function execution process will start asynchronously.
142142 ///
143- Future <Response > createExecution ({required String functionId, String data = '' }) {
143+ Future <Response > createExecution ({required String functionId, String ? data}) {
144144 final String path = '/functions/{functionId}/executions' .replaceAll (RegExp ('{functionId}' ), functionId);
145145
146146 final Map <String , dynamic > params = {
@@ -196,14 +196,14 @@ class Functions extends Service {
196196 /// Get a list of all the project's code tags. You can use the query params to
197197 /// filter your results.
198198 ///
199- Future <Response > listTags ({required String functionId, String search = '' , int limit = 25 , int offset = 0 , OrderType orderType = OrderType .asc }) {
199+ Future <Response > listTags ({required String functionId, String ? search, int ? limit, int ? offset, OrderType ? orderType}) {
200200 final String path = '/functions/{functionId}/tags' .replaceAll (RegExp ('{functionId}' ), functionId);
201201
202202 final Map <String , dynamic > params = {
203203 'search' : search,
204204 'limit' : limit,
205205 'offset' : offset,
206- 'orderType' : orderType.name (),
206+ 'orderType' : orderType? .name (),
207207 };
208208
209209 final Map <String , String > headers = {
0 commit comments