@@ -90,53 +90,56 @@ export type IngressSetting = "ALLOW_ALL" | "ALLOW_INTERNAL_ONLY" | "ALLOW_INTERN
90
90
export interface GlobalOptions {
91
91
/**
92
92
* Region where functions should be deployed.
93
- * HTTP functions can override and specify more than one region.
94
93
*/
95
94
region ?: SupportedRegion | string ;
96
95
97
96
/**
98
97
* Amount of memory to allocate to a function.
99
- * A value of null restores the defaults of 256MB.
100
98
*/
101
- memory ?: MemoryOption | Expression < number > | ResetValue | null ;
99
+ memory ?: MemoryOption | Expression < number > | ResetValue ;
102
100
103
101
/**
104
102
* Timeout for the function in sections, possible values are 0 to 540.
105
103
* HTTPS functions can specify a higher timeout.
106
- * A value of null restores the default of 60s
104
+ *
105
+ * @remarks
107
106
* The minimum timeout for a gen 2 function is 1s. The maximum timeout for a
108
107
* function depends on the type of function: Event handling functions have a
109
108
* maximum timeout of 540s (9 minutes). HTTPS and callable functions have a
110
109
* maximum timeout of 36,00s (1 hour). Task queue functions have a maximum
111
110
* timeout of 1,800s (30 minutes)
112
111
*/
113
- timeoutSeconds ?: number | Expression < number > | ResetValue | null ;
112
+ timeoutSeconds ?: number | Expression < number > | ResetValue ;
114
113
115
114
/**
116
115
* Min number of actual instances to be running at a given time.
116
+ *
117
+ * @remarks
117
118
* Instances will be billed for memory allocation and 10% of CPU allocation
118
119
* while idle.
119
- * A value of null restores the default min instances.
120
120
*/
121
- minInstances ?: number | Expression < number > | ResetValue | null ;
121
+ minInstances ?: number | Expression < number > | ResetValue ;
122
122
123
123
/**
124
124
* Max number of instances to be running in parallel.
125
- * A value of null restores the default max instances.
126
125
*/
127
- maxInstances ?: number | Expression < number > | ResetValue | null ;
126
+ maxInstances ?: number | Expression < number > | ResetValue ;
128
127
129
128
/**
130
129
* Number of requests a function can serve at once.
130
+ *
131
+ * @remarks
131
132
* Can only be applied to functions running on Cloud Functions v2.
132
133
* A value of null restores the default concurrency (80 when CPU >= 1, 1 otherwise).
133
134
* Concurrency cannot be set to any value other than 1 if `cpu` is less than 1.
134
135
* The maximum value for concurrency is 1,000.
135
136
*/
136
- concurrency ?: number | Expression < number > | ResetValue | null ;
137
+ concurrency ?: number | Expression < number > | ResetValue ;
137
138
138
139
/**
139
140
* Fractional number of CPUs to allocate to a function.
141
+ *
142
+ * @remarks
140
143
* Defaults to 1 for functions with <= 2GB RAM and increases for larger memory sizes.
141
144
* This is different from the defaults when using the gcloud utility and is different from
142
145
* the fixed amount assigned in Google Cloud Functions generation 1.
@@ -147,43 +150,37 @@ export interface GlobalOptions {
147
150
148
151
/**
149
152
* Connect cloud function to specified VPC connector.
150
- * A value of null removes the VPC connector
151
153
*/
152
- vpcConnector ?: string | ResetValue | null ;
154
+ vpcConnector ?: string | ResetValue ;
153
155
154
156
/**
155
157
* Egress settings for VPC connector.
156
- * A value of null turns off VPC connector egress settings
157
158
*/
158
- vpcConnectorEgressSettings ?: VpcEgressSetting | ResetValue | null ;
159
+ vpcConnectorEgressSettings ?: VpcEgressSetting | ResetValue ;
159
160
160
161
/**
161
162
* Specific service account for the function to run as.
162
- * A value of null restores the default service account.
163
163
*/
164
- serviceAccount ?: string | ResetValue | null ;
164
+ serviceAccount ?: string | ResetValue ;
165
165
166
166
/**
167
167
* Ingress settings which control where this function can be called from.
168
- * A value of null turns off ingress settings.
169
168
*/
170
- ingressSettings ?: IngressSetting | ResetValue | null ;
169
+ ingressSettings ?: IngressSetting | ResetValue ;
171
170
172
171
/**
173
172
* User labels to set on the function.
174
173
*/
175
174
labels ?: Record < string , string > ;
176
175
177
- /**
178
- * Invoker to set access control on https functions.
179
- */
180
- invoker ?: "public" | "private" | string | string [ ] ;
181
-
182
176
/*
183
177
* Secrets to bind to a function.
184
178
*/
185
179
secrets ?: string [ ] ;
186
180
181
+ /** Whether failed executions should be delivered again. */
182
+ retry ?: boolean | Expression < boolean > | ResetValue ;
183
+
187
184
/**
188
185
* Determines whether Firebase AppCheck is enforced.
189
186
* When true, requests with invalid tokens autorespond with a 401
@@ -225,14 +222,14 @@ export interface EventHandlerOptions extends Omit<GlobalOptions, "enforceAppChec
225
222
eventFilterPathPatterns ?: Record < string , string | Expression < string > > ;
226
223
227
224
/** Whether failed executions should be delivered again. */
228
- retry ?: boolean | Expression < boolean > | ResetValue | null ;
225
+ retry ?: boolean | Expression < boolean > | ResetValue ;
229
226
230
227
/** Region of the EventArc trigger. */
231
228
// region?: string | Expression<string> | null;
232
229
region ?: string ;
233
230
234
231
/** The service account that EventArc should use to invoke this function. Requires the P4SA to have ActAs permission on this service account. */
235
- serviceAccount ?: string | ResetValue | null ;
232
+ serviceAccount ?: string | ResetValue ;
236
233
237
234
/** The name of the channel where the function receives events. */
238
235
channel ?: string ;
0 commit comments