|
268 | 268 | "https://www.googleapis.com/auth/cloud-platform"
|
269 | 269 | ]
|
270 | 270 | },
|
| 271 | + "detachFunction": { |
| 272 | + "description": "Detaches 2nd Gen function to Cloud Run function.", |
| 273 | + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:detachFunction", |
| 274 | + "httpMethod": "POST", |
| 275 | + "id": "cloudfunctions.projects.locations.functions.detachFunction", |
| 276 | + "parameterOrder": [ |
| 277 | + "name" |
| 278 | + ], |
| 279 | + "parameters": { |
| 280 | + "name": { |
| 281 | + "description": "Required. The name of the function for which should be detached.", |
| 282 | + "location": "path", |
| 283 | + "pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$", |
| 284 | + "required": true, |
| 285 | + "type": "string" |
| 286 | + } |
| 287 | + }, |
| 288 | + "path": "v2alpha/{+name}:detachFunction", |
| 289 | + "request": { |
| 290 | + "$ref": "DetachFunctionRequest" |
| 291 | + }, |
| 292 | + "response": { |
| 293 | + "$ref": "Operation" |
| 294 | + }, |
| 295 | + "scopes": [ |
| 296 | + "https://www.googleapis.com/auth/cloud-platform" |
| 297 | + ] |
| 298 | + }, |
271 | 299 | "generateDownloadUrl": {
|
272 | 300 | "description": "Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls",
|
273 | 301 | "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:generateDownloadUrl",
|
|
716 | 744 | }
|
717 | 745 | }
|
718 | 746 | },
|
719 |
| - "revision": "20240905", |
| 747 | + "revision": "20250116", |
720 | 748 | "rootUrl": "https://cloudfunctions.googleapis.com/",
|
721 | 749 | "schemas": {
|
722 | 750 | "AbortFunctionUpgradeRequest": {
|
|
814 | 842 | "type": "string"
|
815 | 843 | },
|
816 | 844 | "dockerRegistry": {
|
817 |
| - "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`.", |
| 845 | + "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`.", |
818 | 847 | "enum": [
|
819 | 848 | "DOCKER_REGISTRY_UNSPECIFIED",
|
820 | 849 | "CONTAINER_REGISTRY",
|
|
828 | 857 | "type": "string"
|
829 | 858 | },
|
830 | 859 | "dockerRepository": {
|
831 |
| - "description": "Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.", |
| 860 | + "description": "Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be 'DOCKER'.", |
832 | 861 | "type": "string"
|
833 | 862 | },
|
834 | 863 | "entryPoint": {
|
|
901 | 930 | },
|
902 | 931 | "type": "object"
|
903 | 932 | },
|
| 933 | + "DetachFunctionRequest": { |
| 934 | + "description": "Request for the `DetachFunction` method.", |
| 935 | + "id": "DetachFunctionRequest", |
| 936 | + "properties": {}, |
| 937 | + "type": "object" |
| 938 | + }, |
904 | 939 | "EventFilter": {
|
905 | 940 | "description": "Filters events based on exact matches on the CloudEvents attributes.",
|
906 | 941 | "id": "EventFilter",
|
|
1226 | 1261 | "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC",
|
1227 | 1262 | "SETUP_FUNCTION_UPGRADE_CONFIG",
|
1228 | 1263 | "ABORT_FUNCTION_UPGRADE",
|
1229 |
| - "COMMIT_FUNCTION_UPGRADE" |
| 1264 | + "COMMIT_FUNCTION_UPGRADE", |
| 1265 | + "DETACH_FUNCTION" |
1230 | 1266 | ],
|
1231 | 1267 | "enumDescriptions": [
|
1232 | 1268 | "Unspecified",
|
|
1237 | 1273 | "RollbackFunctionUpgradeTraffic",
|
1238 | 1274 | "SetupFunctionUpgradeConfig",
|
1239 | 1275 | "AbortFunctionUpgrade",
|
1240 |
| - "CommitFunctionUpgrade" |
| 1276 | + "CommitFunctionUpgrade", |
| 1277 | + "DetachFunction" |
1241 | 1278 | ],
|
1242 | 1279 | "type": "string"
|
1243 | 1280 | },
|
|
2058 | 2095 | "type": "object"
|
2059 | 2096 | },
|
2060 | 2097 | "UpgradeInfo": {
|
2061 |
| - "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration * Current state of migration for function undergoing migration.", |
| 2098 | + "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration and 2nd Gen to CRf detach. * Current state of migration for function undergoing migration/detach.", |
2062 | 2099 | "id": "UpgradeInfo",
|
2063 | 2100 | "properties": {
|
2064 | 2101 | "buildConfig": {
|
|
2085 | 2122 | "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL",
|
2086 | 2123 | "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR",
|
2087 | 2124 | "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR",
|
2088 |
| - "COMMIT_FUNCTION_UPGRADE_ERROR" |
| 2125 | + "COMMIT_FUNCTION_UPGRADE_ERROR", |
| 2126 | + "DETACH_IN_PROGRESS" |
2089 | 2127 | ],
|
2090 | 2128 | "enumDescriptions": [
|
2091 | 2129 | "Unspecified state. Most functions are in this upgrade state.",
|
|
2097 | 2135 | "RedirectFunctionUpgradeTraffic API was successful and traffic is served by 2nd Gen function stack.",
|
2098 | 2136 | "RedirectFunctionUpgradeTraffic API was un-successful.",
|
2099 | 2137 | "RollbackFunctionUpgradeTraffic API was un-successful.",
|
2100 |
| - "CommitFunctionUpgrade API was un-successful." |
| 2138 | + "CommitFunctionUpgrade API was un-successful.", |
| 2139 | + "Function is requested to be detached from 2nd Gen to CRf." |
2101 | 2140 | ],
|
2102 | 2141 | "type": "string"
|
2103 | 2142 | }
|
|
0 commit comments