Skip to content

Commit

Permalink
feat(cloudfunctions): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
yoshi-automation authored and sofisl committed Mar 14, 2024
1 parent 7537bf0 commit d94398d
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 9 deletions.
9 changes: 7 additions & 2 deletions discovery/cloudfunctions-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down Expand Up @@ -711,7 +716,7 @@
}
}
},
"revision": "20240220",
"revision": "20240307",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"AbortFunctionUpgradeRequest": {
Expand Down Expand Up @@ -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",
Expand Down
9 changes: 7 additions & 2 deletions discovery/cloudfunctions-v2alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down Expand Up @@ -711,7 +716,7 @@
}
}
},
"revision": "20240220",
"revision": "20240307",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"AbortFunctionUpgradeRequest": {
Expand Down Expand Up @@ -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",
Expand Down
9 changes: 7 additions & 2 deletions discovery/cloudfunctions-v2beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down Expand Up @@ -711,7 +716,7 @@
}
}
},
"revision": "20240220",
"revision": "20240307",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"AbortFunctionUpgradeRequest": {
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion src/apis/cloudfunctions/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 5 additions & 1 deletion src/apis/cloudfunctions/v2alpha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 5 additions & 1 deletion src/apis/cloudfunctions/v2beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d94398d

Please sign in to comment.