Skip to content

Commit 01dff3e

Browse files
feat(cloudfunctions): update the api
#### cloudfunctions:v2 The following keys were added: - resources.projects.resources.locations.resources.functions.methods.detachFunction (Total Keys: 12) - schemas.BuildConfig.properties.dockerRegistry.deprecated (Total Keys: 1) - schemas.DetachFunctionRequest (Total Keys: 2) #### cloudfunctions:v2alpha The following keys were added: - resources.projects.resources.locations.resources.functions.methods.detachFunction (Total Keys: 12) - schemas.BuildConfig.properties.dockerRegistry.deprecated (Total Keys: 1) - schemas.DetachFunctionRequest (Total Keys: 2) #### cloudfunctions:v2beta The following keys were added: - resources.projects.resources.locations.resources.functions.methods.detachFunction (Total Keys: 12) - schemas.BuildConfig.properties.dockerRegistry.deprecated (Total Keys: 1) - schemas.DetachFunctionRequest (Total Keys: 2)
1 parent 78df1e1 commit 01dff3e

6 files changed

+267
-30
lines changed

docs/dyn/cloudfunctions_v2.projects.locations.functions.html

Lines changed: 52 additions & 8 deletions
Large diffs are not rendered by default.

docs/dyn/cloudfunctions_v2alpha.projects.locations.functions.html

Lines changed: 52 additions & 8 deletions
Large diffs are not rendered by default.

docs/dyn/cloudfunctions_v2beta.projects.locations.functions.html

Lines changed: 52 additions & 8 deletions
Large diffs are not rendered by default.

googleapiclient/discovery_cache/documents/cloudfunctions.v2.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,34 @@
268268
"https://www.googleapis.com/auth/cloud-platform"
269269
]
270270
},
271+
"detachFunction": {
272+
"description": "Detaches 2nd Gen function to Cloud Run function.",
273+
"flatPath": "v2/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": "v2/{+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+
},
271299
"generateDownloadUrl": {
272300
"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",
273301
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:generateDownloadUrl",
@@ -716,7 +744,7 @@
716744
}
717745
}
718746
},
719-
"revision": "20241205",
747+
"revision": "20250116",
720748
"rootUrl": "https://cloudfunctions.googleapis.com/",
721749
"schemas": {
722750
"AbortFunctionUpgradeRequest": {
@@ -814,7 +842,8 @@
814842
"type": "string"
815843
},
816844
"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`.",
818847
"enum": [
819848
"DOCKER_REGISTRY_UNSPECIFIED",
820849
"CONTAINER_REGISTRY",
@@ -901,6 +930,12 @@
901930
},
902931
"type": "object"
903932
},
933+
"DetachFunctionRequest": {
934+
"description": "Request for the `DetachFunction` method.",
935+
"id": "DetachFunctionRequest",
936+
"properties": {},
937+
"type": "object"
938+
},
904939
"EventFilter": {
905940
"description": "Filters events based on exact matches on the CloudEvents attributes.",
906941
"id": "EventFilter",

googleapiclient/discovery_cache/documents/cloudfunctions.v2alpha.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,34 @@
268268
"https://www.googleapis.com/auth/cloud-platform"
269269
]
270270
},
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+
},
271299
"generateDownloadUrl": {
272300
"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",
273301
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:generateDownloadUrl",
@@ -716,7 +744,7 @@
716744
}
717745
}
718746
},
719-
"revision": "20241205",
747+
"revision": "20250116",
720748
"rootUrl": "https://cloudfunctions.googleapis.com/",
721749
"schemas": {
722750
"AbortFunctionUpgradeRequest": {
@@ -814,7 +842,8 @@
814842
"type": "string"
815843
},
816844
"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`.",
818847
"enum": [
819848
"DOCKER_REGISTRY_UNSPECIFIED",
820849
"CONTAINER_REGISTRY",
@@ -901,6 +930,12 @@
901930
},
902931
"type": "object"
903932
},
933+
"DetachFunctionRequest": {
934+
"description": "Request for the `DetachFunction` method.",
935+
"id": "DetachFunctionRequest",
936+
"properties": {},
937+
"type": "object"
938+
},
904939
"EventFilter": {
905940
"description": "Filters events based on exact matches on the CloudEvents attributes.",
906941
"id": "EventFilter",

googleapiclient/discovery_cache/documents/cloudfunctions.v2beta.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,34 @@
268268
"https://www.googleapis.com/auth/cloud-platform"
269269
]
270270
},
271+
"detachFunction": {
272+
"description": "Detaches 2nd Gen function to Cloud Run function.",
273+
"flatPath": "v2beta/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": "v2beta/{+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+
},
271299
"generateDownloadUrl": {
272300
"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",
273301
"flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:generateDownloadUrl",
@@ -716,7 +744,7 @@
716744
}
717745
}
718746
},
719-
"revision": "20241205",
747+
"revision": "20250116",
720748
"rootUrl": "https://cloudfunctions.googleapis.com/",
721749
"schemas": {
722750
"AbortFunctionUpgradeRequest": {
@@ -814,7 +842,8 @@
814842
"type": "string"
815843
},
816844
"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`.",
818847
"enum": [
819848
"DOCKER_REGISTRY_UNSPECIFIED",
820849
"CONTAINER_REGISTRY",
@@ -901,6 +930,12 @@
901930
},
902931
"type": "object"
903932
},
933+
"DetachFunctionRequest": {
934+
"description": "Request for the `DetachFunction` method.",
935+
"id": "DetachFunctionRequest",
936+
"properties": {},
937+
"type": "object"
938+
},
904939
"EventFilter": {
905940
"description": "Filters events based on exact matches on the CloudEvents attributes.",
906941
"id": "EventFilter",

0 commit comments

Comments
 (0)