From d1c64eb724a09d0a31375a18ca66cd304518dd3b Mon Sep 17 00:00:00 2001 From: Google APIs Date: Mon, 18 Mar 2024 12:21:53 -0700 Subject: [PATCH] fix: deprecate unimplemented Zone fields and methods --- chore: update go_package and Go importpath --- chore: update go_package and Go importpath PiperOrigin-RevId: 616910383 --- google/cloud/edgenetwork/v1/resources.proto | 8 +++++--- google/cloud/edgenetwork/v1/service.proto | 13 +++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/google/cloud/edgenetwork/v1/resources.proto b/google/cloud/edgenetwork/v1/resources.proto index 063ba5a9e0e4f..6fda0f236bbab 100644 --- a/google/cloud/edgenetwork/v1/resources.proto +++ b/google/cloud/edgenetwork/v1/resources.proto @@ -71,11 +71,13 @@ message Zone { google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Labels as key value pairs - map labels = 4; + // Deprecated: not implemented. + // Labels as key value pairs. + map labels = 4 [deprecated = true]; + // Deprecated: not implemented. // The deployment layout type. - string layout_name = 5; + string layout_name = 5 [deprecated = true]; } // Message describing Network object diff --git a/google/cloud/edgenetwork/v1/service.proto b/google/cloud/edgenetwork/v1/service.proto index b5126c48586da..250c3ef059148 100644 --- a/google/cloud/edgenetwork/v1/service.proto +++ b/google/cloud/edgenetwork/v1/service.proto @@ -52,16 +52,20 @@ service EdgeNetwork { option (google.api.method_signature) = "name"; } + // Deprecated: not implemented. // Lists Zones in a given project and location. rpc ListZones(ListZonesRequest) returns (ListZonesResponse) { + option deprecated = true; option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/zones" }; option (google.api.method_signature) = "parent"; } + // Deprecated: not implemented. // Gets details of a single Zone. rpc GetZone(GetZoneRequest) returns (Zone) { + option deprecated = true; option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/zones/*}" }; @@ -309,8 +313,11 @@ service EdgeNetwork { } } +// Deprecated: not implemented. // Message for requesting list of Zones message ListZonesRequest { + option deprecated = true; + // Required. Parent value for ListZonesRequest string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -333,8 +340,11 @@ message ListZonesRequest { string order_by = 5; } +// Deprecated: not implemented. // Message for response to listing Zones message ListZonesResponse { + option deprecated = true; + // The list of Zone repeated Zone zones = 1; @@ -345,8 +355,11 @@ message ListZonesResponse { repeated string unreachable = 3; } +// Deprecated: not implemented. // Message for getting a Zone message GetZoneRequest { + option deprecated = true; + // Required. Name of the resource string name = 1 [ (google.api.field_behavior) = REQUIRED,