• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2022 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5syntax = "proto3";
6
7package chromiumos.test.api;
8
9option go_package = "go.chromium.org/chromiumos/config/go/test/api";
10
11import "google/protobuf/timestamp.proto";
12
13
14
15
16// GceImage represents an existing GCE image.
17message GceImage {
18  // Name of GCP project. E.g. betty-cloud-prototype
19  string project = 1;
20  // Name of GCE image.
21  string name = 2;
22  // Readiness of GCE image.
23  Status status = 3;
24  // Status tracks the relevant status of VM lab use case: READY, PENDING,
25  // FAILED, DELETING, NOT_FOUND. Unknown statuses are mapped to UNKNOWN.
26  enum Status {
27    UNKNOWN = 0;
28    READY = 1;
29    PENDING = 2;
30    FAILED = 3;
31    DELETING = 4;
32    NOT_FOUND = 5;
33  }
34  // GCS URL of source image to be imported.
35  string source = 4;
36  // Labels of the image, including build-type, board, milestone.
37  map<string, string> labels = 5;
38  // Description of the image which contains source image in GS bucket.
39  string description = 6;
40  // Timestamp when the image is created in UTC.
41  google.protobuf.Timestamp time_created = 7;
42}
43