Skip to content

Commit a31d216

Browse files
Google APIscopybara-github
authored andcommitted
docs: updated docker_registry proto to reflect its deprecated status
docs: small fixes PiperOrigin-RevId: 743742601
1 parent e53d98d commit a31d216

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

google/cloud/functions/v2/functions.proto

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ message Function {
292292
// Output only. The deployed url for the function.
293293
string url = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
294294

295-
// [Preview] Resource name of a KMS crypto key (managed by the user) used to
295+
// Resource name of a KMS crypto key (managed by the user) used to
296296
// encrypt/decrypt function resources.
297297
//
298298
// It must match the pattern
@@ -515,11 +515,15 @@ message BuildConfig {
515515
// Docker Registry to use for this deployment. This configuration is only
516516
// applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
517517
// Registry.
518+
// Deprecated: As of March 2025, `CONTAINER_REGISTRY` option is no longer
519+
// available in response to Container Registry's deprecation:
520+
// https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr
521+
// Please use Artifact Registry instead, which is the default choice.
518522
//
519523
// If unspecified, it defaults to `ARTIFACT_REGISTRY`.
520524
// If `docker_repository` field is specified, this field should either be left
521525
// unspecified or set to `ARTIFACT_REGISTRY`.
522-
DockerRegistry docker_registry = 10;
526+
DockerRegistry docker_registry = 10 [deprecated = true];
523527

524528
// Repository in Artifact Registry to which the function docker image will be
525529
// pushed after it is built by Cloud Build. If specified by user, it is
@@ -529,9 +533,6 @@ message BuildConfig {
529533
//
530534
// It must match the pattern
531535
// `projects/{project}/locations/{location}/repositories/{repository}`.
532-
//
533-
// Cross-project repositories are not supported.
534-
// Cross-location repositories are not supported.
535536
// Repository format must be 'DOCKER'.
536537
string docker_repository = 7 [(google.api.resource_reference) = {
537538
type: "artifactregistry.googleapis.com/Repository"
@@ -880,7 +881,7 @@ message GetFunctionRequest {
880881
}
881882
];
882883

883-
// Optional. The version of the 1st gen function whose details should
884+
// Optional. The optional version of the 1st gen function whose details should
884885
// be obtained. The version of a 1st gen function is an integer that starts
885886
// from 1 and gets incremented on redeployments. GCF may keep historical
886887
// configs for old versions of 1st gen function. This field can be specified
@@ -921,7 +922,7 @@ message ListFunctionsRequest {
921922
string filter = 4;
922923

923924
// The sorting order of the resources returned. Value should be a comma
924-
// separated list of fields. The default sorting oder is ascending.
925+
// separated list of fields. The default sorting order is ascending.
925926
// See https://google.aip.dev/132#ordering.
926927
string order_by = 5;
927928
}
@@ -994,7 +995,7 @@ message GenerateUploadUrlRequest {
994995
}
995996
];
996997

997-
// [Preview] Resource name of a KMS crypto key (managed by the user) used to
998+
// Resource name of a KMS crypto key (managed by the user) used to
998999
// encrypt/decrypt function source code objects in intermediate Cloud Storage
9991000
// buckets. When you generate an upload url and upload your source code, it
10001001
// gets copied to an intermediate Cloud Storage bucket. The source code is
@@ -1197,7 +1198,7 @@ message Stage {
11971198
// Not specified. Invalid name.
11981199
NAME_UNSPECIFIED = 0;
11991200

1200-
// Artifact Regsitry Stage
1201+
// Artifact Registry Stage
12011202
ARTIFACT_REGISTRY = 1;
12021203

12031204
// Build Stage

0 commit comments

Comments
 (0)