@@ -9,14 +9,14 @@ class Functions extends Service {
9
9
/// Get a list of all the project's functions. You can use the query params to
10
10
/// filter your results.
11
11
///
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}) {
13
13
final String path = '/functions' ;
14
14
15
15
final Map <String , dynamic > params = {
16
16
'search' : search,
17
17
'limit' : limit,
18
18
'offset' : offset,
19
- 'orderType' : orderType.name (),
19
+ 'orderType' : orderType? .name (),
20
20
};
21
21
22
22
final Map <String , String > headers = {
@@ -32,7 +32,7 @@ class Functions extends Service {
32
32
/// [permissions] (/docs/permissions) to allow different project users or team
33
33
/// with access to execute the function using the client API.
34
34
///
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}) {
36
36
final String path = '/functions' ;
37
37
38
38
final Map <String , dynamic > params = {
@@ -73,7 +73,7 @@ class Functions extends Service {
73
73
///
74
74
/// Update function by its unique ID.
75
75
///
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}) {
77
77
final String path = '/functions/{functionId}' .replaceAll (RegExp ('{functionId}' ), functionId);
78
78
79
79
final Map <String , dynamic > params = {
@@ -116,14 +116,14 @@ class Functions extends Service {
116
116
/// return a list of all of the project's executions. [Learn more about
117
117
/// different API modes](/docs/admin).
118
118
///
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}) {
120
120
final String path = '/functions/{functionId}/executions' .replaceAll (RegExp ('{functionId}' ), functionId);
121
121
122
122
final Map <String , dynamic > params = {
123
123
'search' : search,
124
124
'limit' : limit,
125
125
'offset' : offset,
126
- 'orderType' : orderType.name (),
126
+ 'orderType' : orderType? .name (),
127
127
};
128
128
129
129
final Map <String , String > headers = {
@@ -140,7 +140,7 @@ class Functions extends Service {
140
140
/// updates on the current execution status. Once this endpoint is called, your
141
141
/// function execution process will start asynchronously.
142
142
///
143
- Future <Response > createExecution ({required String functionId, String data = '' }) {
143
+ Future <Response > createExecution ({required String functionId, String ? data}) {
144
144
final String path = '/functions/{functionId}/executions' .replaceAll (RegExp ('{functionId}' ), functionId);
145
145
146
146
final Map <String , dynamic > params = {
@@ -196,14 +196,14 @@ class Functions extends Service {
196
196
/// Get a list of all the project's code tags. You can use the query params to
197
197
/// filter your results.
198
198
///
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}) {
200
200
final String path = '/functions/{functionId}/tags' .replaceAll (RegExp ('{functionId}' ), functionId);
201
201
202
202
final Map <String , dynamic > params = {
203
203
'search' : search,
204
204
'limit' : limit,
205
205
'offset' : offset,
206
- 'orderType' : orderType.name (),
206
+ 'orderType' : orderType? .name (),
207
207
};
208
208
209
209
final Map <String , String > headers = {
0 commit comments