Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : add deprication info in resource proto #140

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion gotocompany/optimus/core/v1beta1/resource.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package gotocompany.optimus.core.v1beta1;

import "google/api/annotations.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
import "gotocompany/optimus/core/v1beta1/status.proto";
import "protoc-gen-openapiv2/options/annotations.proto";

Expand Down Expand Up @@ -175,6 +176,12 @@ message ResourceStatus {
string message = 3;
}

message Deprecation {
string reason = 1;
google.protobuf.Timestamp date = 2;
Copy link

@okysetiawan okysetiawan Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use this proto type https://github.com/googleapis/googleapis/blob/master/google/type/date.proto for date only case ?

string replacement_table = 3;
}

// ResourceSpecification are datastore specification representation of a resource
message ResourceSpecification {
reserved 3; // depricated "datastore"
Expand All @@ -186,8 +193,9 @@ message ResourceSpecification {
google.protobuf.Struct spec = 5;
map<string, string> assets = 6;
map<string, string> labels = 7;
}

Deprecation deprecation = 8;
}

message ChangeResourceNamespaceRequest {
string project_name = 1;
Expand Down
Loading