| // Copyright 2017 The LUCI Authors. All rights reserved. |
| // Use of this source code is governed under the Apache License, Version 2.0 |
| // that can be found in the LICENSE file. |
| |
| syntax = "proto3"; |
| |
| option go_package = "go.chromium.org/luci/machine-db/api/crimson/v1;crimson"; |
| |
| package crimson; |
| |
| import "go.chromium.org/luci/machine-db/api/common/v1/states.proto"; |
| |
| // A rack in the database. |
| message Rack { |
| // The name of this rack. Uniquely identifies this rack. |
| string name = 1; |
| // A description of this rack. |
| string description = 2; |
| // The datacenter this rack belongs to. |
| string datacenter = 3; |
| // The state of this rack. |
| common.State state = 4; |
| // The KVM serving this rack. |
| string kvm = 5; |
| } |
| |
| // A request to list racks in the database. |
| message ListRacksRequest { |
| // The names of racks to retrieve. |
| repeated string names = 1; |
| // The datacenters to filter retrieved racks on. |
| repeated string datacenters = 2; |
| // The KVMs to filter retrieved racks on. |
| repeated string kvms = 3; |
| } |
| |
| // A response containing a list of racks in the database. |
| message ListRacksResponse { |
| // The racks matching the request. |
| repeated Rack racks = 1; |
| } |