Skip to content

Commit f252e11

Browse files
Google APIscopybara-github
authored andcommitted
fix!: Fix resource annotations for Cloud Deploy to use common resource name for locations
This is technically a breaking change in that it's modifying the type for a resource, but it's a fast-follow fix to the earlier broken definition. PiperOrigin-RevId: 477192133
1 parent e17b31e commit f252e11

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

google/cloud/deploy/v1/cloud_deploy.proto

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ option (google.api.resource_definition) = {
5050
type: "gkehub.googleapis.com/Membership"
5151
pattern: "projects/{project}/locations/{location}/memberships/{membership}"
5252
};
53-
option (google.api.resource_definition) = {
54-
type: "run.googleapis.com/Location"
55-
pattern: "projects/{project}/locations/{location}"
56-
};
5753

5854
// CloudDeploy service creates and manages Continuous Delivery operations
5955
// on Google Cloud Platform via Skaffold (https://skaffold.dev).
@@ -807,7 +803,7 @@ message CloudRunLocation {
807803
string location = 1 [
808804
(google.api.field_behavior) = REQUIRED,
809805
(google.api.resource_reference) = {
810-
type: "run.googleapis.com/Location"
806+
type: "locations.googleapis.com/Location"
811807
}
812808
];
813809
}

0 commit comments

Comments
 (0)