Skip to content

Commit

Permalink
fix: deprecate unimplemented Zone fields and methods
Browse files Browse the repository at this point in the history
---
chore: update go_package and Go importpath

---
chore: update go_package and Go importpath
PiperOrigin-RevId: 616910383
  • Loading branch information
Google APIs authored and Copybara-Service committed Mar 18, 2024
1 parent 1f8e86c commit d1c64eb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
8 changes: 5 additions & 3 deletions google/cloud/edgenetwork/v1/resources.proto
Expand Up @@ -71,11 +71,13 @@ message Zone {
google.protobuf.Timestamp update_time = 3
[(google.api.field_behavior) = OUTPUT_ONLY];

// Labels as key value pairs
map<string, string> labels = 4;
// Deprecated: not implemented.
// Labels as key value pairs.
map<string, string> 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
Expand Down
13 changes: 13 additions & 0 deletions google/cloud/edgenetwork/v1/service.proto
Expand Up @@ -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/*}"
};
Expand Down Expand Up @@ -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,
Expand All @@ -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;

Expand All @@ -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,
Expand Down

0 comments on commit d1c64eb

Please sign in to comment.