Skip to content

Commit 8cccfa6

Browse files
make lease duration optional
It could be calculated when EndTime is provided. Logic is validated in controller.
1 parent b49c229 commit 8cccfa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proto/jumpstarter/client/v1/client.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ message Lease {
8686
(google.api.field_behavior) = REQUIRED,
8787
(google.api.field_behavior) = IMMUTABLE
8888
];
89-
google.protobuf.Duration duration = 3 [(google.api.field_behavior) = REQUIRED];
89+
optional google.protobuf.Duration duration = 3;
9090
google.protobuf.Duration effective_duration = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
9191
optional google.protobuf.Timestamp begin_time = 5;
9292
optional google.protobuf.Timestamp effective_begin_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];

0 commit comments

Comments
 (0)