Skip to content

Commit aadb45b

Browse files
yoshi-automationmiguelvelezsa
authored andcommitted
feat(cloudfunctions): update the API
#### cloudfunctions:v2alpha The following keys were added: - schemas.DirectVpcNetworkInterface.description - schemas.DirectVpcNetworkInterface.id - schemas.DirectVpcNetworkInterface.properties.network.description - schemas.DirectVpcNetworkInterface.properties.network.type - schemas.DirectVpcNetworkInterface.properties.subnetwork.description - schemas.DirectVpcNetworkInterface.properties.subnetwork.type - schemas.DirectVpcNetworkInterface.properties.tags.description - schemas.DirectVpcNetworkInterface.properties.tags.items.type - schemas.DirectVpcNetworkInterface.properties.tags.type - schemas.DirectVpcNetworkInterface.type - schemas.ServiceConfig.properties.directVpcEgress.description - schemas.ServiceConfig.properties.directVpcEgress.enum - schemas.ServiceConfig.properties.directVpcEgress.enumDescriptions - schemas.ServiceConfig.properties.directVpcEgress.type - schemas.ServiceConfig.properties.directVpcNetworkInterface.description - schemas.ServiceConfig.properties.directVpcNetworkInterface.items.$ref - schemas.ServiceConfig.properties.directVpcNetworkInterface.type The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description #### cloudfunctions:v2beta The following keys were added: - schemas.DirectVpcNetworkInterface.description - schemas.DirectVpcNetworkInterface.id - schemas.DirectVpcNetworkInterface.properties.network.description - schemas.DirectVpcNetworkInterface.properties.network.type - schemas.DirectVpcNetworkInterface.properties.subnetwork.description - schemas.DirectVpcNetworkInterface.properties.subnetwork.type - schemas.DirectVpcNetworkInterface.properties.tags.description - schemas.DirectVpcNetworkInterface.properties.tags.items.type - schemas.DirectVpcNetworkInterface.properties.tags.type - schemas.DirectVpcNetworkInterface.type - schemas.ServiceConfig.properties.directVpcEgress.description - schemas.ServiceConfig.properties.directVpcEgress.enum - schemas.ServiceConfig.properties.directVpcEgress.enumDescriptions - schemas.ServiceConfig.properties.directVpcEgress.type - schemas.ServiceConfig.properties.directVpcNetworkInterface.description - schemas.ServiceConfig.properties.directVpcNetworkInterface.items.$ref - schemas.ServiceConfig.properties.directVpcNetworkInterface.type The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description #### cloudfunctions:v1 The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description #### cloudfunctions:v2 The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description
1 parent 57efc5e commit aadb45b

File tree

8 files changed

+152
-16
lines changed

8 files changed

+152
-16
lines changed

discovery/cloudfunctions-v1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
],
191191
"parameters": {
192192
"extraLocationTypes": {
193-
"description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.",
193+
"description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.",
194194
"location": "query",
195195
"repeated": true,
196196
"type": "string"
@@ -563,7 +563,7 @@
563563
}
564564
}
565565
},
566-
"revision": "20250929",
566+
"revision": "20251023",
567567
"rootUrl": "https://cloudfunctions.googleapis.com/",
568568
"schemas": {
569569
"AuditConfig": {

discovery/cloudfunctions-v2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
],
120120
"parameters": {
121121
"extraLocationTypes": {
122-
"description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.",
122+
"description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.",
123123
"location": "query",
124124
"repeated": true,
125125
"type": "string"
@@ -755,7 +755,7 @@
755755
}
756756
}
757757
},
758-
"revision": "20250929",
758+
"revision": "20251023",
759759
"rootUrl": "https://cloudfunctions.googleapis.com/",
760760
"schemas": {
761761
"AbortFunctionUpgradeRequest": {

discovery/cloudfunctions-v2alpha.json

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
],
120120
"parameters": {
121121
"extraLocationTypes": {
122-
"description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.",
122+
"description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.",
123123
"location": "query",
124124
"repeated": true,
125125
"type": "string"
@@ -755,7 +755,7 @@
755755
}
756756
}
757757
},
758-
"revision": "20250929",
758+
"revision": "20251023",
759759
"rootUrl": "https://cloudfunctions.googleapis.com/",
760760
"schemas": {
761761
"AbortFunctionUpgradeRequest": {
@@ -947,6 +947,28 @@
947947
"properties": {},
948948
"type": "object"
949949
},
950+
"DirectVpcNetworkInterface": {
951+
"description": "The Direct VPC network interface. This is mutually exclusive with VPC Connector.",
952+
"id": "DirectVpcNetworkInterface",
953+
"properties": {
954+
"network": {
955+
"description": "Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.",
956+
"type": "string"
957+
},
958+
"subnetwork": {
959+
"description": "Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.",
960+
"type": "string"
961+
},
962+
"tags": {
963+
"description": "Optional. Network tags applied to this Cloud Function resource.",
964+
"items": {
965+
"type": "string"
966+
},
967+
"type": "array"
968+
}
969+
},
970+
"type": "object"
971+
},
950972
"EventFilter": {
951973
"description": "Filters events based on exact matches on the CloudEvents attributes.",
952974
"id": "EventFilter",
@@ -1876,6 +1898,27 @@
18761898
"description": "Optional. The binary authorization policy to be checked when deploying the Cloud Run service.",
18771899
"type": "string"
18781900
},
1901+
"directVpcEgress": {
1902+
"description": "Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.",
1903+
"enum": [
1904+
"DIRECT_VPC_EGRESS_UNSPECIFIED",
1905+
"VPC_EGRESS_PRIVATE_RANGES_ONLY",
1906+
"VPC_EGRESS_ALL_TRAFFIC"
1907+
],
1908+
"enumDescriptions": [
1909+
"Unspecified.",
1910+
"Sends only traffic to internal addresses through the VPC network.",
1911+
"Sends all outbound traffic through the VPC network."
1912+
],
1913+
"type": "string"
1914+
},
1915+
"directVpcNetworkInterface": {
1916+
"description": "Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.",
1917+
"items": {
1918+
"$ref": "DirectVpcNetworkInterface"
1919+
},
1920+
"type": "array"
1921+
},
18791922
"environmentVariables": {
18801923
"additionalProperties": {
18811924
"type": "string"

discovery/cloudfunctions-v2beta.json

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
],
120120
"parameters": {
121121
"extraLocationTypes": {
122-
"description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.",
122+
"description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.",
123123
"location": "query",
124124
"repeated": true,
125125
"type": "string"
@@ -755,7 +755,7 @@
755755
}
756756
}
757757
},
758-
"revision": "20250929",
758+
"revision": "20251023",
759759
"rootUrl": "https://cloudfunctions.googleapis.com/",
760760
"schemas": {
761761
"AbortFunctionUpgradeRequest": {
@@ -947,6 +947,28 @@
947947
"properties": {},
948948
"type": "object"
949949
},
950+
"DirectVpcNetworkInterface": {
951+
"description": "The Direct VPC network interface. This is mutually exclusive with VPC Connector.",
952+
"id": "DirectVpcNetworkInterface",
953+
"properties": {
954+
"network": {
955+
"description": "Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.",
956+
"type": "string"
957+
},
958+
"subnetwork": {
959+
"description": "Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.",
960+
"type": "string"
961+
},
962+
"tags": {
963+
"description": "Optional. Network tags applied to this Cloud Function resource.",
964+
"items": {
965+
"type": "string"
966+
},
967+
"type": "array"
968+
}
969+
},
970+
"type": "object"
971+
},
950972
"EventFilter": {
951973
"description": "Filters events based on exact matches on the CloudEvents attributes.",
952974
"id": "EventFilter",
@@ -1876,6 +1898,27 @@
18761898
"description": "Optional. The binary authorization policy to be checked when deploying the Cloud Run service.",
18771899
"type": "string"
18781900
},
1901+
"directVpcEgress": {
1902+
"description": "Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.",
1903+
"enum": [
1904+
"DIRECT_VPC_EGRESS_UNSPECIFIED",
1905+
"VPC_EGRESS_PRIVATE_RANGES_ONLY",
1906+
"VPC_EGRESS_ALL_TRAFFIC"
1907+
],
1908+
"enumDescriptions": [
1909+
"Unspecified.",
1910+
"Sends only traffic to internal addresses through the VPC network.",
1911+
"Sends all outbound traffic through the VPC network."
1912+
],
1913+
"type": "string"
1914+
},
1915+
"directVpcNetworkInterface": {
1916+
"description": "Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.",
1917+
"items": {
1918+
"$ref": "DirectVpcNetworkInterface"
1919+
},
1920+
"type": "array"
1921+
},
18791922
"environmentVariables": {
18801923
"additionalProperties": {
18811924
"type": "string"

src/apis/cloudfunctions/v1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ export namespace cloudfunctions_v1 {
11031103
*
11041104
* // Do the magic
11051105
* const res = await cloudfunctions.projects.locations.list({
1106-
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
1106+
* // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
11071107
* extraLocationTypes: 'placeholder-value',
11081108
* // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
11091109
* filter: 'placeholder-value',
@@ -1225,7 +1225,7 @@ export namespace cloudfunctions_v1 {
12251225
export interface Params$Resource$Projects$Locations$List
12261226
extends StandardParameters {
12271227
/**
1228-
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
1228+
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
12291229
*/
12301230
extraLocationTypes?: string[];
12311231
/**

src/apis/cloudfunctions/v2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ export namespace cloudfunctions_v2 {
11171117
*
11181118
* // Do the magic
11191119
* const res = await cloudfunctions.projects.locations.list({
1120-
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
1120+
* // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
11211121
* extraLocationTypes: 'placeholder-value',
11221122
* // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
11231123
* filter: 'placeholder-value',
@@ -1239,7 +1239,7 @@ export namespace cloudfunctions_v2 {
12391239
export interface Params$Resource$Projects$Locations$List
12401240
extends StandardParameters {
12411241
/**
1242-
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
1242+
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
12431243
*/
12441244
extraLocationTypes?: string[];
12451245
/**

src/apis/cloudfunctions/v2alpha.ts

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,23 @@ export namespace cloudfunctions_v2alpha {
251251
* Request for the `DetachFunction` method.
252252
*/
253253
export interface Schema$DetachFunctionRequest {}
254+
/**
255+
* The Direct VPC network interface. This is mutually exclusive with VPC Connector.
256+
*/
257+
export interface Schema$DirectVpcNetworkInterface {
258+
/**
259+
* Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.
260+
*/
261+
network?: string | null;
262+
/**
263+
* Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
264+
*/
265+
subnetwork?: string | null;
266+
/**
267+
* Optional. Network tags applied to this Cloud Function resource.
268+
*/
269+
tags?: string[] | null;
270+
}
254271
/**
255272
* Filters events based on exact matches on the CloudEvents attributes.
256273
*/
@@ -868,6 +885,14 @@ export namespace cloudfunctions_v2alpha {
868885
* Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
869886
*/
870887
binaryAuthorizationPolicy?: string | null;
888+
/**
889+
* Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
890+
*/
891+
directVpcEgress?: string | null;
892+
/**
893+
* Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
894+
*/
895+
directVpcNetworkInterface?: Schema$DirectVpcNetworkInterface[];
871896
/**
872897
* Environment variables that shall be available during function execution.
873898
*/
@@ -1117,7 +1142,7 @@ export namespace cloudfunctions_v2alpha {
11171142
*
11181143
* // Do the magic
11191144
* const res = await cloudfunctions.projects.locations.list({
1120-
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
1145+
* // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
11211146
* extraLocationTypes: 'placeholder-value',
11221147
* // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
11231148
* filter: 'placeholder-value',
@@ -1239,7 +1264,7 @@ export namespace cloudfunctions_v2alpha {
12391264
export interface Params$Resource$Projects$Locations$List
12401265
extends StandardParameters {
12411266
/**
1242-
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
1267+
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
12431268
*/
12441269
extraLocationTypes?: string[];
12451270
/**

src/apis/cloudfunctions/v2beta.ts

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,23 @@ export namespace cloudfunctions_v2beta {
251251
* Request for the `DetachFunction` method.
252252
*/
253253
export interface Schema$DetachFunctionRequest {}
254+
/**
255+
* The Direct VPC network interface. This is mutually exclusive with VPC Connector.
256+
*/
257+
export interface Schema$DirectVpcNetworkInterface {
258+
/**
259+
* Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.
260+
*/
261+
network?: string | null;
262+
/**
263+
* Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
264+
*/
265+
subnetwork?: string | null;
266+
/**
267+
* Optional. Network tags applied to this Cloud Function resource.
268+
*/
269+
tags?: string[] | null;
270+
}
254271
/**
255272
* Filters events based on exact matches on the CloudEvents attributes.
256273
*/
@@ -868,6 +885,14 @@ export namespace cloudfunctions_v2beta {
868885
* Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
869886
*/
870887
binaryAuthorizationPolicy?: string | null;
888+
/**
889+
* Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
890+
*/
891+
directVpcEgress?: string | null;
892+
/**
893+
* Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
894+
*/
895+
directVpcNetworkInterface?: Schema$DirectVpcNetworkInterface[];
871896
/**
872897
* Environment variables that shall be available during function execution.
873898
*/
@@ -1117,7 +1142,7 @@ export namespace cloudfunctions_v2beta {
11171142
*
11181143
* // Do the magic
11191144
* const res = await cloudfunctions.projects.locations.list({
1120-
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
1145+
* // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
11211146
* extraLocationTypes: 'placeholder-value',
11221147
* // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
11231148
* filter: 'placeholder-value',
@@ -1239,7 +1264,7 @@ export namespace cloudfunctions_v2beta {
12391264
export interface Params$Resource$Projects$Locations$List
12401265
extends StandardParameters {
12411266
/**
1242-
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
1267+
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
12431268
*/
12441269
extraLocationTypes?: string[];
12451270
/**

0 commit comments

Comments
 (0)