From d94398def4c4fc9e4bd21dab46dcd2888e249375 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 Mar 2024 01:29:48 +0000 Subject: [PATCH] feat(cloudfunctions): update the API #### cloudfunctions:v2alpha The following keys were added: - resources.projects.resources.locations.resources.functions.methods.get.parameters.revision.description - resources.projects.resources.locations.resources.functions.methods.get.parameters.revision.location - resources.projects.resources.locations.resources.functions.methods.get.parameters.revision.type The following keys were changed: - schemas.BuildConfig.properties.dockerRegistry.description #### cloudfunctions:v2beta The following keys were added: - resources.projects.resources.locations.resources.functions.methods.get.parameters.revision.description - resources.projects.resources.locations.resources.functions.methods.get.parameters.revision.location - resources.projects.resources.locations.resources.functions.methods.get.parameters.revision.type The following keys were changed: - schemas.BuildConfig.properties.dockerRegistry.description #### cloudfunctions:v2 The following keys were added: - resources.projects.resources.locations.resources.functions.methods.get.parameters.revision.description - resources.projects.resources.locations.resources.functions.methods.get.parameters.revision.location - resources.projects.resources.locations.resources.functions.methods.get.parameters.revision.type The following keys were changed: - schemas.BuildConfig.properties.dockerRegistry.description --- discovery/cloudfunctions-v2.json | 9 +++++++-- discovery/cloudfunctions-v2alpha.json | 9 +++++++-- discovery/cloudfunctions-v2beta.json | 9 +++++++-- src/apis/cloudfunctions/v2.ts | 6 +++++- src/apis/cloudfunctions/v2alpha.ts | 6 +++++- src/apis/cloudfunctions/v2beta.ts | 6 +++++- 6 files changed, 36 insertions(+), 9 deletions(-) diff --git a/discovery/cloudfunctions-v2.json b/discovery/cloudfunctions-v2.json index f38d00f386..6980ccc178 100644 --- a/discovery/cloudfunctions-v2.json +++ b/discovery/cloudfunctions-v2.json @@ -339,6 +339,11 @@ "pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$", "required": true, "type": "string" + }, + "revision": { + "description": "Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function.", + "location": "query", + "type": "string" } }, "path": "v2/{+name}", @@ -711,7 +716,7 @@ } } }, - "revision": "20240220", + "revision": "20240307", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -809,7 +814,7 @@ "type": "string" }, "dockerRegistry": { - "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. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.", + "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. 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`.", "enum": [ "DOCKER_REGISTRY_UNSPECIFIED", "CONTAINER_REGISTRY", diff --git a/discovery/cloudfunctions-v2alpha.json b/discovery/cloudfunctions-v2alpha.json index 9bc635ace1..5b9cbfb7ef 100644 --- a/discovery/cloudfunctions-v2alpha.json +++ b/discovery/cloudfunctions-v2alpha.json @@ -339,6 +339,11 @@ "pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$", "required": true, "type": "string" + }, + "revision": { + "description": "Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function.", + "location": "query", + "type": "string" } }, "path": "v2alpha/{+name}", @@ -711,7 +716,7 @@ } } }, - "revision": "20240220", + "revision": "20240307", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -809,7 +814,7 @@ "type": "string" }, "dockerRegistry": { - "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. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.", + "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. 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`.", "enum": [ "DOCKER_REGISTRY_UNSPECIFIED", "CONTAINER_REGISTRY", diff --git a/discovery/cloudfunctions-v2beta.json b/discovery/cloudfunctions-v2beta.json index 1c069ff335..899d18f150 100644 --- a/discovery/cloudfunctions-v2beta.json +++ b/discovery/cloudfunctions-v2beta.json @@ -339,6 +339,11 @@ "pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$", "required": true, "type": "string" + }, + "revision": { + "description": "Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function.", + "location": "query", + "type": "string" } }, "path": "v2beta/{+name}", @@ -711,7 +716,7 @@ } } }, - "revision": "20240220", + "revision": "20240307", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -809,7 +814,7 @@ "type": "string" }, "dockerRegistry": { - "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. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.", + "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. 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`.", "enum": [ "DOCKER_REGISTRY_UNSPECIFIED", "CONTAINER_REGISTRY", diff --git a/src/apis/cloudfunctions/v2.ts b/src/apis/cloudfunctions/v2.ts index a26b6d78e6..62713dc367 100644 --- a/src/apis/cloudfunctions/v2.ts +++ b/src/apis/cloudfunctions/v2.ts @@ -185,7 +185,7 @@ export namespace cloudfunctions_v2 { */ build?: string | null; /** - * Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments. + * Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. 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`. */ dockerRegistry?: string | null; /** @@ -2813,6 +2813,10 @@ export namespace cloudfunctions_v2 { * Required. The name of the function which details should be obtained. */ name?: string; + /** + * Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function. + */ + revision?: string; } export interface Params$Resource$Projects$Locations$Functions$Getiampolicy extends StandardParameters { diff --git a/src/apis/cloudfunctions/v2alpha.ts b/src/apis/cloudfunctions/v2alpha.ts index a7721d3510..d5100d4fa9 100644 --- a/src/apis/cloudfunctions/v2alpha.ts +++ b/src/apis/cloudfunctions/v2alpha.ts @@ -185,7 +185,7 @@ export namespace cloudfunctions_v2alpha { */ build?: string | null; /** - * Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments. + * Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. 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`. */ dockerRegistry?: string | null; /** @@ -2812,6 +2812,10 @@ export namespace cloudfunctions_v2alpha { * Required. The name of the function which details should be obtained. */ name?: string; + /** + * Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function. + */ + revision?: string; } export interface Params$Resource$Projects$Locations$Functions$Getiampolicy extends StandardParameters { diff --git a/src/apis/cloudfunctions/v2beta.ts b/src/apis/cloudfunctions/v2beta.ts index e12f4f3880..c5b3a554ed 100644 --- a/src/apis/cloudfunctions/v2beta.ts +++ b/src/apis/cloudfunctions/v2beta.ts @@ -185,7 +185,7 @@ export namespace cloudfunctions_v2beta { */ build?: string | null; /** - * Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments. + * Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. 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`. */ dockerRegistry?: string | null; /** @@ -2812,6 +2812,10 @@ export namespace cloudfunctions_v2beta { * Required. The name of the function which details should be obtained. */ name?: string; + /** + * Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function. + */ + revision?: string; } export interface Params$Resource$Projects$Locations$Functions$Getiampolicy extends StandardParameters {