| OLD | NEW |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Messages for the Machine Provider API.""" | 5 """Messages for the Machine Provider API.""" |
| 6 | 6 |
| 7 # pylint: disable=unused-wildcard-import, wildcard-import | 7 # pylint: disable=unused-wildcard-import, wildcard-import |
| 8 | 8 |
| 9 from protorpc import messages | 9 from protorpc import messages |
| 10 | 10 |
| 11 from components.machine_provider.dimensions import * | 11 from components.machine_provider.dimensions import * |
| 12 from components.machine_provider.instructions import * | 12 from components.machine_provider.instructions import * |
| 13 from components.machine_provider.policies import * | 13 from components.machine_provider.policies import * |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 # if there is no error. | 201 # if there is no error. |
| 202 error = messages.EnumField(LeaseReleaseRequestError, 2) | 202 error = messages.EnumField(LeaseReleaseRequestError, 2) |
| 203 # Request ID used by the client to generate the LeaseRequest | 203 # Request ID used by the client to generate the LeaseRequest |
| 204 # referred to by the LeaseReleaseRequest. | 204 # referred to by the LeaseReleaseRequest. |
| 205 client_request_id = messages.StringField(3, required=True) | 205 client_request_id = messages.StringField(3, required=True) |
| 206 | 206 |
| 207 | 207 |
| 208 class BatchedLeaseReleaseResponse(messages.Message): | 208 class BatchedLeaseReleaseResponse(messages.Message): |
| 209 """Represents responses to a batched set of lease release requests.""" | 209 """Represents responses to a batched set of lease release requests.""" |
| 210 responses = messages.MessageField(LeaseReleaseResponse, 1, repeated=True) | 210 responses = messages.MessageField(LeaseReleaseResponse, 1, repeated=True) |
| OLD | NEW |