lab config: track device licenses
BUG=chromium:1154072
TEST=./generate.sh
Change-Id: Ic410a3e88f5dafd1c79151b6a01f2529d6f916e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2573731
Commit-Queue: Patrick Meiring <meiring@google.com>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
diff --git a/go/lab/device.pb.go b/go/lab/device.pb.go
index 3eb8ce1..5f8a5d3 100644
--- a/go/lab/device.pb.go
+++ b/go/lab/device.pb.go
@@ -188,12 +188,13 @@
}
}
-// Next Tag: 5
+// Next Tag: 6
type DeviceUnderTest struct {
Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
Peripherals *Peripherals `protobuf:"bytes,2,opt,name=peripherals,proto3" json:"peripherals,omitempty"`
CriticalPools []DeviceUnderTest_DUTPool `protobuf:"varint,3,rep,packed,name=critical_pools,json=criticalPools,proto3,enum=lab.DeviceUnderTest_DUTPool" json:"critical_pools,omitempty"`
Pools []string `protobuf:"bytes,4,rep,name=pools,proto3" json:"pools,omitempty"`
+ Licenses []*License `protobuf:"bytes,5,rep,name=licenses,proto3" json:"licenses,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -252,6 +253,13 @@
return nil
}
+func (m *DeviceUnderTest) GetLicenses() []*License {
+ if m != nil {
+ return m.Licenses
+ }
+ return nil
+}
+
// Next Tag: 5
type Labstation struct {
Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
@@ -326,42 +334,44 @@
func init() { proto.RegisterFile("lab/device.proto", fileDescriptor_7e0f9c639061e848) }
var fileDescriptor_7e0f9c639061e848 = []byte{
- // 585 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x4d, 0x6f, 0x9b, 0x4c,
- 0x10, 0xc7, 0x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0x05, 0xd5,
- 0xe5, 0xf9, 0xe9, 0x2b, 0xae, 0x27, 0x34, 0x08, 0x3a, 0x32, 0xfa, 0xf6, 0x37, 0x00, 0x00, 0xff,
- 0xff, 0xb2, 0xb7, 0x87, 0x2c, 0x22, 0x04, 0x00, 0x00,
+ // 611 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xcd, 0x6e, 0xda, 0x40,
+ 0x10, 0xc7, 0x03, 0x0e, 0x84, 0x0c, 0x09, 0x6c, 0x37, 0x5f, 0x2e, 0x4a, 0x25, 0x44, 0x55, 0xc9,
+ 0x97, 0xda, 0x2a, 0xbd, 0xf5, 0x16, 0x70, 0xa4, 0x58, 0x22, 0x40, 0xd6, 0x76, 0x0e, 0xbd, 0x58,
+ 0xeb, 0x8f, 0x90, 0x95, 0x6c, 0x2f, 0x5a, 0x9b, 0x1c, 0xfb, 0x58, 0x7d, 0x81, 0x9e, 0xfb, 0x4e,
+ 0x95, 0xd7, 0x8e, 0x81, 0x28, 0xea, 0x71, 0x7e, 0xff, 0xff, 0xcc, 0x78, 0x66, 0xbc, 0x80, 0x62,
+ 0xea, 0x1b, 0x61, 0xf4, 0xc2, 0x82, 0x48, 0x5f, 0x0b, 0x9e, 0x73, 0xac, 0xc4, 0xd4, 0x1f, 0x5c,
+ 0x96, 0xc8, 0x08, 0x78, 0xfa, 0xc4, 0x56, 0x1e, 0x0b, 0x4b, 0x71, 0x70, 0x5d, 0xd8, 0x83, 0x67,
+ 0xc1, 0x93, 0x88, 0x67, 0x5e, 0x69, 0xda, 0xaa, 0x1f, 0x0a, 0x35, 0x66, 0x41, 0x94, 0x66, 0x55,
+ 0xb5, 0xc1, 0x45, 0x81, 0xd6, 0x91, 0x60, 0xeb, 0xe7, 0x48, 0xd0, 0x38, 0xab, 0x70, 0xbf, 0xc0,
+ 0x59, 0x24, 0x5e, 0x78, 0x05, 0x3e,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72, 0x6b, 0xbb, 0x93, 0x7b, 0xcb, 0x41,
+ 0x47, 0x18, 0x43, 0xaf, 0xd6, 0x1e, 0xdc, 0x85, 0x73, 0x83, 0x3a, 0xa3, 0x5f, 0x00, 0xdb, 0xf3,
+ 0xfe, 0xf7, 0x64, 0x23, 0x68, 0xcb, 0x67, 0x55, 0x5c, 0xab, 0xd8, 0x10, 0xc8, 0x0d, 0xd9, 0x05,
+ 0x22, 0x95, 0x82, 0x07, 0xa0, 0x88, 0x75, 0x52, 0xfd, 0xe0, 0x1d, 0x69, 0x20, 0xcb, 0x7b, 0x52,
+ 0xc0, 0xf7, 0x37, 0x3f, 0x31, 0x7e, 0x7e, 0x5d, 0x71, 0x5d, 0xbe, 0x7b, 0xb6, 0x49, 0x74, 0x2e,
+ 0x56, 0xc6, 0x6b, 0xc0, 0x33, 0x83, 0xa5, 0x4f, 0x82, 0x1a, 0xf2, 0xa1, 0x1a, 0x2b, 0x6e, 0xc4,
+ 0xd4, 0xf7, 0xdb, 0x32, 0xfa, 0xfe, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xd4, 0xeb, 0xa4, 0x27, 0x5f,
+ 0x04, 0x00, 0x00,
}
diff --git a/go/lab/license.pb.go b/go/lab/license.pb.go
new file mode 100644
index 0000000..5f327fa
--- /dev/null
+++ b/go/lab/license.pb.go
@@ -0,0 +1,131 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// source: lab/license.proto
+
+package lab
+
+import (
+ fmt "fmt"
+ proto "github.com/golang/protobuf/proto"
+ math "math"
+)
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the proto package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// proto package needs to be updated.
+const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
+
+// Next Tag: 3
+type LicenseType int32
+
+const (
+ LicenseType_LICENSE_TYPE_UNSPECIFIED LicenseType = 0
+ // Microsoft Windows 10 Professional Desktop Operating System.
+ // Contact the Chrome OS Parallels team for license specifics.
+ LicenseType_LICENSE_TYPE_WINDOWS_10_PRO LicenseType = 1
+ // Microsoft Office Standard.
+ // Contact the Chrome OS Parallels team for license specifics.
+ LicenseType_LICENSE_TYPE_MS_OFFICE_STANDARD LicenseType = 2
+)
+
+var LicenseType_name = map[int32]string{
+ 0: "LICENSE_TYPE_UNSPECIFIED",
+ 1: "LICENSE_TYPE_WINDOWS_10_PRO",
+ 2: "LICENSE_TYPE_MS_OFFICE_STANDARD",
+}
+
+var LicenseType_value = map[string]int32{
+ "LICENSE_TYPE_UNSPECIFIED": 0,
+ "LICENSE_TYPE_WINDOWS_10_PRO": 1,
+ "LICENSE_TYPE_MS_OFFICE_STANDARD": 2,
+}
+
+func (x LicenseType) String() string {
+ return proto.EnumName(LicenseType_name, int32(x))
+}
+
+func (LicenseType) EnumDescriptor() ([]byte, []int) {
+ return fileDescriptor_1f03ce9038f3d539, []int{0}
+}
+
+// Represents a Software License assigned to a device.
+// Next Tag: 3
+type License struct {
+ Type LicenseType `protobuf:"varint,1,opt,name=type,proto3,enum=lab.LicenseType" json:"type,omitempty"`
+ // An optional string to uniquely identify the license that was assigned,
+ // for tracking purposes.
+ Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *License) Reset() { *m = License{} }
+func (m *License) String() string { return proto.CompactTextString(m) }
+func (*License) ProtoMessage() {}
+func (*License) Descriptor() ([]byte, []int) {
+ return fileDescriptor_1f03ce9038f3d539, []int{0}
+}
+
+func (m *License) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_License.Unmarshal(m, b)
+}
+func (m *License) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_License.Marshal(b, m, deterministic)
+}
+func (m *License) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_License.Merge(m, src)
+}
+func (m *License) XXX_Size() int {
+ return xxx_messageInfo_License.Size(m)
+}
+func (m *License) XXX_DiscardUnknown() {
+ xxx_messageInfo_License.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_License proto.InternalMessageInfo
+
+func (m *License) GetType() LicenseType {
+ if m != nil {
+ return m.Type
+ }
+ return LicenseType_LICENSE_TYPE_UNSPECIFIED
+}
+
+func (m *License) GetIdentifier() string {
+ if m != nil {
+ return m.Identifier
+ }
+ return ""
+}
+
+func init() {
+ proto.RegisterEnum("lab.LicenseType", LicenseType_name, LicenseType_value)
+ proto.RegisterType((*License)(nil), "lab.License")
+}
+
+func init() { proto.RegisterFile("lab/license.proto", fileDescriptor_1f03ce9038f3d539) }
+
+var fileDescriptor_1f03ce9038f3d539 = []byte{
+ // 237 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcc, 0x49, 0x4c, 0xd2,
+ 0xcf, 0xc9, 0x4c, 0x4e, 0xcd, 0x2b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0xce,
+ 0x49, 0x4c, 0x52, 0xf2, 0xe7, 0x62, 0xf7, 0x81, 0x88, 0x0a, 0xa9, 0x70, 0xb1, 0x94, 0x54, 0x16,
+ 0xa4, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x19, 0x09, 0xe8, 0xe5, 0x24, 0x26, 0xe9, 0x41, 0xe5,
+ 0x42, 0x2a, 0x0b, 0x52, 0x83, 0xc0, 0xb2, 0x42, 0x72, 0x5c, 0x5c, 0x99, 0x29, 0xa9, 0x79, 0x25,
+ 0x99, 0x69, 0x99, 0xa9, 0x45, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x48, 0x22, 0x5a, 0x85,
+ 0x5c, 0xdc, 0x48, 0x9a, 0x84, 0x64, 0xb8, 0x24, 0x7c, 0x3c, 0x9d, 0x5d, 0xfd, 0x82, 0x5d, 0xe3,
+ 0x43, 0x22, 0x03, 0x5c, 0xe3, 0x43, 0xfd, 0x82, 0x03, 0x5c, 0x9d, 0x3d, 0xdd, 0x3c, 0x5d, 0x5d,
+ 0x04, 0x18, 0x84, 0xe4, 0xb9, 0xa4, 0x51, 0x64, 0xc3, 0x3d, 0xfd, 0x5c, 0xfc, 0xc3, 0x83, 0xe3,
+ 0x0d, 0x0d, 0xe2, 0x03, 0x82, 0xfc, 0x05, 0x18, 0x85, 0x94, 0xb9, 0xe4, 0x51, 0x14, 0xf8, 0x06,
+ 0xc7, 0xfb, 0xbb, 0xb9, 0x79, 0x3a, 0xbb, 0xc6, 0x07, 0x87, 0x38, 0xfa, 0xb9, 0x38, 0x06, 0xb9,
+ 0x08, 0x30, 0x39, 0xe9, 0x47, 0xe9, 0xa6, 0xe7, 0xeb, 0x25, 0x67, 0x14, 0xe5, 0xe7, 0x66, 0x96,
+ 0xe6, 0xea, 0xe5, 0x17, 0xa5, 0xeb, 0xc3, 0x38, 0xf9, 0xc5, 0xfa, 0x99, 0x79, 0x69, 0x45, 0x89,
+ 0xfa, 0x60, 0x2f, 0xeb, 0xa7, 0xe7, 0xeb, 0xe7, 0x24, 0x26, 0x25, 0xb1, 0x81, 0x79, 0xc6, 0x80,
+ 0x00, 0x00, 0x00, 0xff, 0xff, 0x15, 0xde, 0xc6, 0xd9, 0x15, 0x01, 0x00, 0x00,
+}
diff --git a/src/lab/device.proto b/src/lab/device.proto
index 0663cc3..bb684c7 100644
--- a/src/lab/device.proto
+++ b/src/lab/device.proto
@@ -10,6 +10,7 @@
import "device/config_id.proto";
import "lab/chromeos_device_id.proto";
+import "lab/license.proto";
import "lab/peripherals.proto";
import "lab/servo.proto";
import "manufacturing/config_id.proto";
@@ -30,7 +31,7 @@
};
}
-// Next Tag: 5
+// Next Tag: 6
message DeviceUnderTest{
string hostname = 1;
Peripherals peripherals = 2;
@@ -53,6 +54,8 @@
repeated DUTPool critical_pools = 3;
repeated string pools = 4;
+
+ repeated License licenses = 5;
}
// Next Tag: 5
diff --git a/src/lab/license.proto b/src/lab/license.proto
new file mode 100644
index 0000000..cbceadc
--- /dev/null
+++ b/src/lab/license.proto
@@ -0,0 +1,32 @@
+// Copyright 2019 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+syntax = "proto3";
+
+package lab;
+
+option go_package = "go.chromium.org/chromiumos/infra/proto/go/lab";
+
+// Represents a Software License assigned to a device.
+// Next Tag: 3
+message License {
+ LicenseType type = 1;
+
+ // An optional string to uniquely identify the license that was assigned,
+ // for tracking purposes.
+ string identifier = 2;
+}
+
+// Next Tag: 3
+enum LicenseType {
+ LICENSE_TYPE_UNSPECIFIED = 0;
+
+ // Microsoft Windows 10 Professional Desktop Operating System.
+ // Contact the Chrome OS Parallels team for license specifics.
+ LICENSE_TYPE_WINDOWS_10_PRO = 1;
+
+ // Microsoft Office Standard.
+ // Contact the Chrome OS Parallels team for license specifics.
+ LICENSE_TYPE_MS_OFFICE_STANDARD = 2;
+}