@@ -21,14 +21,14 @@ import "google/api/client.proto";
2121import "google/api/field_behavior.proto" ;
2222import "google/api/launch_stage.proto" ;
2323import "google/api/resource.proto" ;
24+ import "google/api/routing.proto" ;
2425import "google/cloud/run/v2/condition.proto" ;
2526import "google/cloud/run/v2/revision_template.proto" ;
2627import "google/cloud/run/v2/traffic_target.proto" ;
2728import "google/cloud/run/v2/vendor_settings.proto" ;
2829import "google/iam/v1/iam_policy.proto" ;
2930import "google/iam/v1/policy.proto" ;
3031import "google/longrunning/operations.proto" ;
31- import "google/protobuf/field_mask.proto" ;
3232import "google/protobuf/timestamp.proto" ;
3333
3434option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run" ;
@@ -47,6 +47,12 @@ service Services {
4747 post : "/v2/{parent=projects/*/locations/*}/services"
4848 body : "service"
4949 };
50+ option (google.api.routing ) = {
51+ routing_parameters {
52+ field : "parent"
53+ path_template : "projects/*/locations/{location=*}"
54+ }
55+ };
5056 option (google.api.method_signature ) = "parent,service,service_id" ;
5157 option (google.longrunning.operation_info ) = {
5258 response_type : "Service"
@@ -59,6 +65,12 @@ service Services {
5965 option (google.api.http ) = {
6066 get : "/v2/{name=projects/*/locations/*/services/*}"
6167 };
68+ option (google.api.routing ) = {
69+ routing_parameters {
70+ field : "name"
71+ path_template : "projects/*/locations/{location=*}/**"
72+ }
73+ };
6274 option (google.api.method_signature ) = "name" ;
6375 }
6476
@@ -67,6 +79,12 @@ service Services {
6779 option (google.api.http ) = {
6880 get : "/v2/{parent=projects/*/locations/*}/services"
6981 };
82+ option (google.api.routing ) = {
83+ routing_parameters {
84+ field : "parent"
85+ path_template : "projects/*/locations/{location=*}"
86+ }
87+ };
7088 option (google.api.method_signature ) = "parent" ;
7189 }
7290
@@ -76,7 +94,13 @@ service Services {
7694 patch : "/v2/{service.name=projects/*/locations/*/services/*}"
7795 body : "service"
7896 };
79- option (google.api.method_signature ) = "service,update_mask" ;
97+ option (google.api.routing ) = {
98+ routing_parameters {
99+ field : "service.name"
100+ path_template : "projects/*/locations/{location=*}/**"
101+ }
102+ };
103+ option (google.api.method_signature ) = "service" ;
80104 option (google.longrunning.operation_info ) = {
81105 response_type : "Service"
82106 metadata_type : "Service"
@@ -90,6 +114,12 @@ service Services {
90114 option (google.api.http ) = {
91115 delete : "/v2/{name=projects/*/locations/*/services/*}"
92116 };
117+ option (google.api.routing ) = {
118+ routing_parameters {
119+ field : "name"
120+ path_template : "projects/*/locations/{location=*}/**"
121+ }
122+ };
93123 option (google.api.method_signature ) = "name" ;
94124 option (google.longrunning.operation_info ) = {
95125 response_type : "Service"
@@ -153,9 +183,6 @@ message UpdateServiceRequest {
153183 // Required. The Service to be updated.
154184 Service service = 1 [(google.api.field_behavior ) = REQUIRED ];
155185
156- // The list of fields to be updated.
157- google.protobuf.FieldMask update_mask = 2 ;
158-
159186 // Indicates that the request should be validated and default values
160187 // populated, without persisting the request or updating any resources.
161188 bool validate_only = 3 ;
@@ -261,6 +288,8 @@ message Service {
261288
262289 // Output only. A number that monotonically increases every time the user
263290 // modifies the desired state.
291+ // Please note that unlike v1, this is an int64 value. As with most Google
292+ // APIs, its JSON representation will be a `string` instead of an `integer`.
264293 int64 generation = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
265294
266295 // Map of string keys and values that can be used to organize and categorize
@@ -333,6 +362,8 @@ message Service {
333362 // Output only. The generation of this Service currently serving traffic. See comments in
334363 // `reconciling` for additional information on reconciliation process in Cloud
335364 // Run.
365+ // Please note that unlike v1, this is an int64 value. As with most Google
366+ // APIs, its JSON representation will be a `string` instead of an `integer`.
336367 int64 observed_generation = 30 [(google.api.field_behavior ) = OUTPUT_ONLY ];
337368
338369 // Output only. The Condition of this Service, containing its readiness status, and
0 commit comments