Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1672)

Unified Diff: appengine/components/components/machine_provider/rpc_messages.py

Issue 2716783002: Enforce two-day limit on lease requests (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/machine_provider/handlers_endpoints.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/components/components/machine_provider/rpc_messages.py
diff --git a/appengine/components/components/machine_provider/rpc_messages.py b/appengine/components/components/machine_provider/rpc_messages.py
index bee4dd3108bb60ee3f6934cd0c9c61aca7bda09a..21491ea1dd6a2ff4ffe3ba6b1582cfd26d312138 100644
--- a/appengine/components/components/machine_provider/rpc_messages.py
+++ b/appengine/components/components/machine_provider/rpc_messages.py
@@ -158,6 +158,8 @@ class LeaseRequestError(messages.Enum):
LEASE_EXPIRATION_TS_ERROR = 9
# Neither duration nor lease_expiration_ts were specified.
LEASE_LENGTH_UNSPECIFIED = 10
+ # Requested lease duration is too long.
+ LEASE_TOO_LONG = 11
class LeaseRequestState(messages.Enum):
« no previous file with comments | « no previous file | appengine/machine_provider/handlers_endpoints.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698