Skip to content

Commit b1013a9

Browse files
feat(cloudfunctions): update the API
#### cloudfunctions:v2alpha The following keys were added: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.location - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.repeated - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.type - schemas.SetupFunctionUpgradeConfigRequest.properties.triggerServiceAccount.description - schemas.SetupFunctionUpgradeConfigRequest.properties.triggerServiceAccount.type The following keys were changed: - schemas.BuildConfig.properties.dockerRegistry.description #### cloudfunctions:v2beta The following keys were added: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.location - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.repeated - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.type - schemas.SetupFunctionUpgradeConfigRequest.properties.triggerServiceAccount.description - schemas.SetupFunctionUpgradeConfigRequest.properties.triggerServiceAccount.type The following keys were changed: - schemas.BuildConfig.properties.dockerRegistry.description #### cloudfunctions:v1 The following keys were added: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.location - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.repeated - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.type The following keys were changed: - schemas.CloudFunction.properties.dockerRegistry.description #### cloudfunctions:v2 The following keys were added: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.location - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.repeated - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.type - schemas.SetupFunctionUpgradeConfigRequest.properties.triggerServiceAccount.description - schemas.SetupFunctionUpgradeConfigRequest.properties.triggerServiceAccount.type The following keys were changed: - schemas.BuildConfig.properties.dockerRegistry.description
1 parent dea2c44 commit b1013a9

File tree

8 files changed

+88
-18
lines changed

8 files changed

+88
-18
lines changed

‎discovery/cloudfunctions-v1.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@
184184
"name"
185185
],
186186
"parameters": {
187+
"extraLocationTypes": {
188+
"description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.",
189+
"location": "query",
190+
"repeated": true,
191+
"type": "string"
192+
},
187193
"filter": {
188194
"description": "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).",
189195
"location": "query",
@@ -552,7 +558,7 @@
552558
}
553559
}
554560
},
555-
"revision": "20250124",
561+
"revision": "20250424",
556562
"rootUrl": "https://cloudfunctions.googleapis.com/",
557563
"schemas": {
558564
"AuditConfig": {
@@ -704,7 +710,7 @@
704710
},
705711
"dockerRegistry": {
706712
"deprecated": true,
707-
"description": "Docker Registry to use for this deployment. Deprecated: Container Registry option will no longer be available after March 2025: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
713+
"description": "Docker Registry to use for this deployment. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
708714
"enum": [
709715
"DOCKER_REGISTRY_UNSPECIFIED",
710716
"CONTAINER_REGISTRY",

‎discovery/cloudfunctions-v2.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@
118118
"name"
119119
],
120120
"parameters": {
121+
"extraLocationTypes": {
122+
"description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.",
123+
"location": "query",
124+
"repeated": true,
125+
"type": "string"
126+
},
121127
"filter": {
122128
"description": "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).",
123129
"location": "query",
@@ -744,7 +750,7 @@
744750
}
745751
}
746752
},
747-
"revision": "20250228",
753+
"revision": "20250424",
748754
"rootUrl": "https://cloudfunctions.googleapis.com/",
749755
"schemas": {
750756
"AbortFunctionUpgradeRequest": {
@@ -843,7 +849,7 @@
843849
},
844850
"dockerRegistry": {
845851
"deprecated": true,
846-
"description": "Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry option will no longer be available after March 2025: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
852+
"description": "Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
847853
"enum": [
848854
"DOCKER_REGISTRY_UNSPECIFIED",
849855
"CONTAINER_REGISTRY",
@@ -1988,7 +1994,12 @@
19881994
"SetupFunctionUpgradeConfigRequest": {
19891995
"description": "Request for the `SetupFunctionUpgradeConfig` method.",
19901996
"id": "SetupFunctionUpgradeConfigRequest",
1991-
"properties": {},
1997+
"properties": {
1998+
"triggerServiceAccount": {
1999+
"description": "Optional. The trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.",
2000+
"type": "string"
2001+
}
2002+
},
19922003
"type": "object"
19932004
},
19942005
"Source": {

‎discovery/cloudfunctions-v2alpha.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@
118118
"name"
119119
],
120120
"parameters": {
121+
"extraLocationTypes": {
122+
"description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.",
123+
"location": "query",
124+
"repeated": true,
125+
"type": "string"
126+
},
121127
"filter": {
122128
"description": "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).",
123129
"location": "query",
@@ -744,7 +750,7 @@
744750
}
745751
}
746752
},
747-
"revision": "20250228",
753+
"revision": "20250424",
748754
"rootUrl": "https://cloudfunctions.googleapis.com/",
749755
"schemas": {
750756
"AbortFunctionUpgradeRequest": {
@@ -843,7 +849,7 @@
843849
},
844850
"dockerRegistry": {
845851
"deprecated": true,
846-
"description": "Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry option will no longer be available after March 2025: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
852+
"description": "Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
847853
"enum": [
848854
"DOCKER_REGISTRY_UNSPECIFIED",
849855
"CONTAINER_REGISTRY",
@@ -1988,7 +1994,12 @@
19881994
"SetupFunctionUpgradeConfigRequest": {
19891995
"description": "Request for the `SetupFunctionUpgradeConfig` method.",
19901996
"id": "SetupFunctionUpgradeConfigRequest",
1991-
"properties": {},
1997+
"properties": {
1998+
"triggerServiceAccount": {
1999+
"description": "Optional. The trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.",
2000+
"type": "string"
2001+
}
2002+
},
19922003
"type": "object"
19932004
},
19942005
"Source": {

‎discovery/cloudfunctions-v2beta.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@
118118
"name"
119119
],
120120
"parameters": {
121+
"extraLocationTypes": {
122+
"description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.",
123+
"location": "query",
124+
"repeated": true,
125+
"type": "string"
126+
},
121127
"filter": {
122128
"description": "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).",
123129
"location": "query",
@@ -744,7 +750,7 @@
744750
}
745751
}
746752
},
747-
"revision": "20250228",
753+
"revision": "20250424",
748754
"rootUrl": "https://cloudfunctions.googleapis.com/",
749755
"schemas": {
750756
"AbortFunctionUpgradeRequest": {
@@ -843,7 +849,7 @@
843849
},
844850
"dockerRegistry": {
845851
"deprecated": true,
846-
"description": "Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry option will no longer be available after March 2025: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
852+
"description": "Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.",
847853
"enum": [
848854
"DOCKER_REGISTRY_UNSPECIFIED",
849855
"CONTAINER_REGISTRY",
@@ -1988,7 +1994,12 @@
19881994
"SetupFunctionUpgradeConfigRequest": {
19891995
"description": "Request for the `SetupFunctionUpgradeConfig` method.",
19901996
"id": "SetupFunctionUpgradeConfigRequest",
1991-
"properties": {},
1997+
"properties": {
1998+
"triggerServiceAccount": {
1999+
"description": "Optional. The trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.",
2000+
"type": "string"
2001+
}
2002+
},
19922003
"type": "object"
19932004
},
19942005
"Source": {

‎src/apis/cloudfunctions/v1.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export namespace cloudfunctions_v1 {
233233
*/
234234
description?: string | null;
235235
/**
236-
* Docker Registry to use for this deployment. Deprecated: Container Registry option will no longer be available after March 2025: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
236+
* Docker Registry to use for this deployment. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
237237
*/
238238
dockerRegistry?: string | null;
239239
/**
@@ -1044,6 +1044,10 @@ export namespace cloudfunctions_v1 {
10441044

10451045
export interface Params$Resource$Projects$Locations$List
10461046
extends StandardParameters {
1047+
/**
1048+
* Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
1049+
*/
1050+
extraLocationTypes?: string[];
10471051
/**
10481052
* 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).
10491053
*/

‎src/apis/cloudfunctions/v2.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export namespace cloudfunctions_v2 {
185185
*/
186186
build?: string | null;
187187
/**
188-
* Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry option will no longer be available after March 2025: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
188+
* Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
189189
*/
190190
dockerRegistry?: string | null;
191191
/**
@@ -941,7 +941,12 @@ export namespace cloudfunctions_v2 {
941941
/**
942942
* Request for the `SetupFunctionUpgradeConfig` method.
943943
*/
944-
export interface Schema$SetupFunctionUpgradeConfigRequest {}
944+
export interface Schema$SetupFunctionUpgradeConfigRequest {
945+
/**
946+
* Optional. The trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number\}-compute@developer.gserviceaccount.com`.
947+
*/
948+
triggerServiceAccount?: string | null;
949+
}
945950
/**
946951
* The location of the function source code.
947952
*/
@@ -1174,6 +1179,10 @@ export namespace cloudfunctions_v2 {
11741179

11751180
export interface Params$Resource$Projects$Locations$List
11761181
extends StandardParameters {
1182+
/**
1183+
* Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
1184+
*/
1185+
extraLocationTypes?: string[];
11771186
/**
11781187
* 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).
11791188
*/

‎src/apis/cloudfunctions/v2alpha.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export namespace cloudfunctions_v2alpha {
185185
*/
186186
build?: string | null;
187187
/**
188-
* Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry option will no longer be available after March 2025: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
188+
* Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
189189
*/
190190
dockerRegistry?: string | null;
191191
/**
@@ -941,7 +941,12 @@ export namespace cloudfunctions_v2alpha {
941941
/**
942942
* Request for the `SetupFunctionUpgradeConfig` method.
943943
*/
944-
export interface Schema$SetupFunctionUpgradeConfigRequest {}
944+
export interface Schema$SetupFunctionUpgradeConfigRequest {
945+
/**
946+
* Optional. The trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number\}-compute@developer.gserviceaccount.com`.
947+
*/
948+
triggerServiceAccount?: string | null;
949+
}
945950
/**
946951
* The location of the function source code.
947952
*/
@@ -1174,6 +1179,10 @@ export namespace cloudfunctions_v2alpha {
11741179

11751180
export interface Params$Resource$Projects$Locations$List
11761181
extends StandardParameters {
1182+
/**
1183+
* Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
1184+
*/
1185+
extraLocationTypes?: string[];
11771186
/**
11781187
* 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).
11791188
*/

0 commit comments

Comments
 (0)