Skip to content

Commit aae1abd

Browse files
authored
Mark vpc connector as accepting string param type (#1329)
1 parent 0ec9895 commit aae1abd

13 files changed

+13
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Allow Functions to specify vpcConnector as a string parameter (#1329)

src/v1/function-configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export interface RuntimeOptions {
205205
/**
206206
* Connect cloud function to specified VPC connector.
207207
*/
208-
vpcConnector?: string | ResetValue;
208+
vpcConnector?: string | Expression<string> | ResetValue;
209209

210210
/**
211211
* Egress settings for VPC connector.

src/v2/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export interface GlobalOptions {
162162
/**
163163
* Connect cloud function to specified VPC connector.
164164
*/
165-
vpcConnector?: string | ResetValue;
165+
vpcConnector?: string | Expression<string> | ResetValue;
166166

167167
/**
168168
* Egress settings for VPC connector.

src/v2/providers/alerts/alerts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export interface FirebaseAlertOptions extends options.EventHandlerOptions {
151151
* Connect cloud function to specified VPC connector.
152152
* A value of null removes the VPC connector
153153
*/
154-
vpcConnector?: string | ResetValue;
154+
vpcConnector?: string | Expression<string> | ResetValue;
155155

156156
/**
157157
* Egress settings for VPC connector.

src/v2/providers/alerts/appDistribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export interface AppDistributionOptions extends options.EventHandlerOptions {
165165
/**
166166
* Connect cloud function to specified VPC connector.
167167
*/
168-
vpcConnector?: string | ResetValue;
168+
vpcConnector?: string | Expression<string> | ResetValue;
169169

170170
/**
171171
* Egress settings for VPC connector.

src/v2/providers/alerts/crashlytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export interface CrashlyticsOptions extends options.EventHandlerOptions {
245245
/**
246246
* Connect cloud function to specified VPC connector.
247247
*/
248-
vpcConnector?: string | ResetValue;
248+
vpcConnector?: string | Expression<string> | ResetValue;
249249

250250
/**
251251
* Egress settings for VPC connector.

src/v2/providers/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export interface ReferenceOptions<Ref extends string = string> extends options.E
166166
/**
167167
* Connect cloud function to specified VPC connector.
168168
*/
169-
vpcConnector?: string | ResetValue;
169+
vpcConnector?: string | Expression<string> | ResetValue;
170170

171171
/**
172172
* Egress settings for VPC connector.

src/v2/providers/eventarc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export interface EventarcTriggerOptions extends options.EventHandlerOptions {
130130
/**
131131
* Connect cloud function to specified VPC connector.
132132
*/
133-
vpcConnector?: string | ResetValue;
133+
vpcConnector?: string | Expression<string> | ResetValue;
134134

135135
/**
136136
* Egress settings for VPC connector.

src/v2/providers/https.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export interface HttpsOptions extends Omit<GlobalOptions, "region"> {
123123
/**
124124
* Connect cloud function to specified VPC connector.
125125
*/
126-
vpcConnector?: string | ResetValue;
126+
vpcConnector?: string | Expression<string> | ResetValue;
127127

128128
/**
129129
* Egress settings for VPC connector.

src/v2/providers/identity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export interface BlockingOptions {
132132
/**
133133
* Connect cloud function to specified VPC connector.
134134
*/
135-
vpcConnector?: string | ResetValue;
135+
vpcConnector?: string | Expression<string> | ResetValue;
136136

137137
/**
138138
* Egress settings for VPC connector.

src/v2/providers/pubsub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export interface PubSubOptions extends options.EventHandlerOptions {
223223
/**
224224
* Connect cloud function to specified VPC connector.
225225
*/
226-
vpcConnector?: string | ResetValue;
226+
vpcConnector?: string | Expression<string> | ResetValue;
227227

228228
/**
229229
* Egress settings for VPC connector.

src/v2/providers/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export interface StorageOptions extends options.EventHandlerOptions {
271271
/**
272272
* Connect cloud function to specified VPC connector.
273273
*/
274-
vpcConnector?: string | ResetValue;
274+
vpcConnector?: string | Expression<string> | ResetValue;
275275

276276
/**
277277
* Egress settings for VPC connector.

src/v2/providers/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export interface TaskQueueOptions extends options.EventHandlerOptions {
128128
/**
129129
* Connect cloud function to specified VPC connector.
130130
*/
131-
vpcConnector?: string | ResetValue;
131+
vpcConnector?: string | Expression<string> | ResetValue;
132132

133133
/**
134134
* Egress settings for VPC connector.

0 commit comments

Comments
 (0)