api

package
v0.0.0-...-e560ebb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Overview

Package api contains the lab_inventory service API.

Index

Constants

This section is empty.

Variables

View Source
var File_infra_appengine_cros_lab_inventory_api_v1_service_proto protoreflect.FileDescriptor

Functions

func AdaptToV1DutSpec

func AdaptToV1DutSpec(data *ExtendedDeviceData) (dut *inventory.DeviceUnderTest, err error)

AdaptToV1DutSpec adapts ExtendedDeviceData to inventory.DeviceUnderTest of inventory v1 defined in https://chromium.googlesource.com/infra/infra/+/refs/heads/master/go/src/infra/libs/skylab/inventory/device.proto

func FileDescriptorSet

func FileDescriptorSet() *descriptorpb.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func ImportFromV1DutSpecs

func ImportFromV1DutSpecs(oldSpecs []*inventory.CommonDeviceSpecs) (devices []*lab.ChromeOSDevice, labstations []*lab.ChromeOSDevice, dutStates []*lab.DutState, err error)

ImportFromV1DutSpecs adapts v1 inventory data to v2 format.

func RegisterInventoryServer

func RegisterInventoryServer(s prpc.Registrar, srv InventoryServer)

Types

type AddCrosDevicesRequest

type AddCrosDevicesRequest struct {
	Devices       []*lab.ChromeOSDevice `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	PickServoPort bool                  `protobuf:"varint,2,opt,name=pick_servo_port,json=pickServoPort,proto3" json:"pick_servo_port,omitempty"`
	// contains filtered or unexported fields
}

func (*AddCrosDevicesRequest) Descriptor deprecated

func (*AddCrosDevicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddCrosDevicesRequest.ProtoReflect.Descriptor instead.

func (*AddCrosDevicesRequest) GetDevices

func (x *AddCrosDevicesRequest) GetDevices() []*lab.ChromeOSDevice

func (*AddCrosDevicesRequest) GetPickServoPort

func (x *AddCrosDevicesRequest) GetPickServoPort() bool

func (*AddCrosDevicesRequest) ProtoMessage

func (*AddCrosDevicesRequest) ProtoMessage()

func (*AddCrosDevicesRequest) ProtoReflect

func (x *AddCrosDevicesRequest) ProtoReflect() protoreflect.Message

func (*AddCrosDevicesRequest) Reset

func (x *AddCrosDevicesRequest) Reset()

func (*AddCrosDevicesRequest) String

func (x *AddCrosDevicesRequest) String() string

func (*AddCrosDevicesRequest) Validate

func (r *AddCrosDevicesRequest) Validate() error

Validate validates input requests and return error if it's not.

All devices should have unique hostname and/or id. Doesn't allow mix of DUT and labstation in RPC request. They should be deployed separatedly.

type AddCrosDevicesResponse

type AddCrosDevicesResponse struct {
	PassedDevices []*DeviceOpResult `protobuf:"bytes,1,rep,name=passed_devices,json=passedDevices,proto3" json:"passed_devices,omitempty"`
	FailedDevices []*DeviceOpResult `protobuf:"bytes,2,rep,name=failed_devices,json=failedDevices,proto3" json:"failed_devices,omitempty"`
	// contains filtered or unexported fields
}

func (*AddCrosDevicesResponse) Descriptor deprecated

func (*AddCrosDevicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddCrosDevicesResponse.ProtoReflect.Descriptor instead.

func (*AddCrosDevicesResponse) GetFailedDevices

func (x *AddCrosDevicesResponse) GetFailedDevices() []*DeviceOpResult

func (*AddCrosDevicesResponse) GetPassedDevices

func (x *AddCrosDevicesResponse) GetPassedDevices() []*DeviceOpResult

func (*AddCrosDevicesResponse) ProtoMessage

func (*AddCrosDevicesResponse) ProtoMessage()

func (*AddCrosDevicesResponse) ProtoReflect

func (x *AddCrosDevicesResponse) ProtoReflect() protoreflect.Message

func (*AddCrosDevicesResponse) Reset

func (x *AddCrosDevicesResponse) Reset()

func (*AddCrosDevicesResponse) String

func (x *AddCrosDevicesResponse) String() string

type AssetIDList

type AssetIDList struct {
	Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetIDList) Descriptor deprecated

func (*AssetIDList) Descriptor() ([]byte, []int)

Deprecated: Use AssetIDList.ProtoReflect.Descriptor instead.

func (*AssetIDList) GetId

func (x *AssetIDList) GetId() []string

func (*AssetIDList) ProtoMessage

func (*AssetIDList) ProtoMessage()

func (*AssetIDList) ProtoReflect

func (x *AssetIDList) ProtoReflect() protoreflect.Message

func (*AssetIDList) Reset

func (x *AssetIDList) Reset()

func (*AssetIDList) String

func (x *AssetIDList) String() string

type AssetIDResponse

type AssetIDResponse struct {
	Passed []*AssetIDResult `protobuf:"bytes,1,rep,name=passed,proto3" json:"passed,omitempty"`
	Failed []*AssetIDResult `protobuf:"bytes,2,rep,name=failed,proto3" json:"failed,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetIDResponse) Descriptor deprecated

func (*AssetIDResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssetIDResponse.ProtoReflect.Descriptor instead.

func (*AssetIDResponse) GetFailed

func (x *AssetIDResponse) GetFailed() []*AssetIDResult

func (*AssetIDResponse) GetPassed

func (x *AssetIDResponse) GetPassed() []*AssetIDResult

func (*AssetIDResponse) ProtoMessage

func (*AssetIDResponse) ProtoMessage()

func (*AssetIDResponse) ProtoReflect

func (x *AssetIDResponse) ProtoReflect() protoreflect.Message

func (*AssetIDResponse) Reset

func (x *AssetIDResponse) Reset()

func (*AssetIDResponse) String

func (x *AssetIDResponse) String() string

type AssetIDResult

type AssetIDResult struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetIDResult) Descriptor deprecated

func (*AssetIDResult) Descriptor() ([]byte, []int)

Deprecated: Use AssetIDResult.ProtoReflect.Descriptor instead.

func (*AssetIDResult) GetErrorMsg

func (x *AssetIDResult) GetErrorMsg() string

func (*AssetIDResult) GetId

func (x *AssetIDResult) GetId() string

func (*AssetIDResult) ProtoMessage

func (*AssetIDResult) ProtoMessage()

func (*AssetIDResult) ProtoReflect

func (x *AssetIDResult) ProtoReflect() protoreflect.Message

func (*AssetIDResult) Reset

func (x *AssetIDResult) Reset()

func (*AssetIDResult) String

func (x *AssetIDResult) String() string

type AssetList

type AssetList struct {
	Asset []*protos.ChopsAsset `protobuf:"bytes,1,rep,name=asset,proto3" json:"asset,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetList) Descriptor deprecated

func (*AssetList) Descriptor() ([]byte, []int)

Deprecated: Use AssetList.ProtoReflect.Descriptor instead.

func (*AssetList) GetAsset

func (x *AssetList) GetAsset() []*protos.ChopsAsset

func (*AssetList) ProtoMessage

func (*AssetList) ProtoMessage()

func (*AssetList) ProtoReflect

func (x *AssetList) ProtoReflect() protoreflect.Message

func (*AssetList) Reset

func (x *AssetList) Reset()

func (*AssetList) String

func (x *AssetList) String() string

func (*AssetList) Validate

func (r *AssetList) Validate() error

Validate validates input requests of AddAssets and UpdateAssets.

type AssetResponse

type AssetResponse struct {
	Passed []*AssetResult `protobuf:"bytes,1,rep,name=passed,proto3" json:"passed,omitempty"`
	Failed []*AssetResult `protobuf:"bytes,2,rep,name=failed,proto3" json:"failed,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetResponse) Descriptor deprecated

func (*AssetResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssetResponse.ProtoReflect.Descriptor instead.

func (*AssetResponse) GetFailed

func (x *AssetResponse) GetFailed() []*AssetResult

func (*AssetResponse) GetPassed

func (x *AssetResponse) GetPassed() []*AssetResult

func (*AssetResponse) ProtoMessage

func (*AssetResponse) ProtoMessage()

func (*AssetResponse) ProtoReflect

func (x *AssetResponse) ProtoReflect() protoreflect.Message

func (*AssetResponse) Reset

func (x *AssetResponse) Reset()

func (*AssetResponse) String

func (x *AssetResponse) String() string

type AssetResult

type AssetResult struct {
	Asset    *protos.ChopsAsset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	ErrorMsg string             `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetResult) Descriptor deprecated

func (*AssetResult) Descriptor() ([]byte, []int)

Deprecated: Use AssetResult.ProtoReflect.Descriptor instead.

func (*AssetResult) GetAsset

func (x *AssetResult) GetAsset() *protos.ChopsAsset

func (*AssetResult) GetErrorMsg

func (x *AssetResult) GetErrorMsg() string

func (*AssetResult) ProtoMessage

func (*AssetResult) ProtoMessage()

func (*AssetResult) ProtoReflect

func (x *AssetResult) ProtoReflect() protoreflect.Message

func (*AssetResult) Reset

func (x *AssetResult) Reset()

func (*AssetResult) String

func (x *AssetResult) String() string

type BatchCreateManualRepairRecordsRequest

type BatchCreateManualRepairRecordsRequest struct {
	RepairRecords []*protos1.DeviceManualRepairRecord `protobuf:"bytes,1,rep,name=repair_records,json=repairRecords,proto3" json:"repair_records,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateManualRepairRecordsRequest) Descriptor deprecated

func (*BatchCreateManualRepairRecordsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchCreateManualRepairRecordsRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateManualRepairRecordsRequest) GetRepairRecords

func (*BatchCreateManualRepairRecordsRequest) ProtoMessage

func (*BatchCreateManualRepairRecordsRequest) ProtoMessage()

func (*BatchCreateManualRepairRecordsRequest) ProtoReflect

func (*BatchCreateManualRepairRecordsRequest) Reset

func (*BatchCreateManualRepairRecordsRequest) String

type BatchCreateManualRepairRecordsResponse

type BatchCreateManualRepairRecordsResponse struct {
	RepairRecords []*ManualRepairRecordResult `protobuf:"bytes,1,rep,name=repair_records,json=repairRecords,proto3" json:"repair_records,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateManualRepairRecordsResponse) Descriptor deprecated

func (*BatchCreateManualRepairRecordsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchCreateManualRepairRecordsResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateManualRepairRecordsResponse) GetRepairRecords

func (*BatchCreateManualRepairRecordsResponse) ProtoMessage

func (*BatchCreateManualRepairRecordsResponse) ProtoReflect

func (*BatchCreateManualRepairRecordsResponse) Reset

func (*BatchCreateManualRepairRecordsResponse) String

type BatchGetManualRepairRecordsRequest

type BatchGetManualRepairRecordsRequest struct {
	Hostnames []string `protobuf:"bytes,1,rep,name=hostnames,proto3" json:"hostnames,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchGetManualRepairRecordsRequest) Descriptor deprecated

func (*BatchGetManualRepairRecordsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchGetManualRepairRecordsRequest.ProtoReflect.Descriptor instead.

func (*BatchGetManualRepairRecordsRequest) GetHostnames

func (x *BatchGetManualRepairRecordsRequest) GetHostnames() []string

func (*BatchGetManualRepairRecordsRequest) ProtoMessage

func (*BatchGetManualRepairRecordsRequest) ProtoMessage()

func (*BatchGetManualRepairRecordsRequest) ProtoReflect

func (*BatchGetManualRepairRecordsRequest) Reset

func (*BatchGetManualRepairRecordsRequest) String

type BatchGetManualRepairRecordsResponse

type BatchGetManualRepairRecordsResponse struct {
	RepairRecords []*ManualRepairRecordResult `protobuf:"bytes,1,rep,name=repair_records,json=repairRecords,proto3" json:"repair_records,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchGetManualRepairRecordsResponse) Descriptor deprecated

func (*BatchGetManualRepairRecordsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchGetManualRepairRecordsResponse.ProtoReflect.Descriptor instead.

func (*BatchGetManualRepairRecordsResponse) GetRepairRecords

func (*BatchGetManualRepairRecordsResponse) ProtoMessage

func (*BatchGetManualRepairRecordsResponse) ProtoMessage()

func (*BatchGetManualRepairRecordsResponse) ProtoReflect

func (*BatchGetManualRepairRecordsResponse) Reset

func (*BatchGetManualRepairRecordsResponse) String

type BatchUpdateDevicesRequest

type BatchUpdateDevicesRequest struct {
	DeviceProperties []*DeviceProperty `protobuf:"bytes,1,rep,name=device_properties,json=deviceProperties,proto3" json:"device_properties,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchUpdateDevicesRequest) Descriptor deprecated

func (*BatchUpdateDevicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchUpdateDevicesRequest.ProtoReflect.Descriptor instead.

func (*BatchUpdateDevicesRequest) GetDeviceProperties

func (x *BatchUpdateDevicesRequest) GetDeviceProperties() []*DeviceProperty

func (*BatchUpdateDevicesRequest) ProtoMessage

func (*BatchUpdateDevicesRequest) ProtoMessage()

func (*BatchUpdateDevicesRequest) ProtoReflect

func (*BatchUpdateDevicesRequest) Reset

func (x *BatchUpdateDevicesRequest) Reset()

func (*BatchUpdateDevicesRequest) String

func (x *BatchUpdateDevicesRequest) String() string

func (*BatchUpdateDevicesRequest) Validate

func (r *BatchUpdateDevicesRequest) Validate() error

Validate validates input requests and return error if it's not.

type BatchUpdateDevicesResponse

type BatchUpdateDevicesResponse struct {
	// contains filtered or unexported fields
}

func (*BatchUpdateDevicesResponse) Descriptor deprecated

func (*BatchUpdateDevicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchUpdateDevicesResponse.ProtoReflect.Descriptor instead.

func (*BatchUpdateDevicesResponse) ProtoMessage

func (*BatchUpdateDevicesResponse) ProtoMessage()

func (*BatchUpdateDevicesResponse) ProtoReflect

func (*BatchUpdateDevicesResponse) Reset

func (x *BatchUpdateDevicesResponse) Reset()

func (*BatchUpdateDevicesResponse) String

func (x *BatchUpdateDevicesResponse) String() string

type CreateDeviceManualRepairRecordRequest

type CreateDeviceManualRepairRecordRequest struct {
	DeviceRepairRecord *protos1.DeviceManualRepairRecord `protobuf:"bytes,1,opt,name=device_repair_record,json=deviceRepairRecord,proto3" json:"device_repair_record,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDeviceManualRepairRecordRequest) Descriptor deprecated

func (*CreateDeviceManualRepairRecordRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateDeviceManualRepairRecordRequest.ProtoReflect.Descriptor instead.

func (*CreateDeviceManualRepairRecordRequest) GetDeviceRepairRecord

func (*CreateDeviceManualRepairRecordRequest) ProtoMessage

func (*CreateDeviceManualRepairRecordRequest) ProtoMessage()

func (*CreateDeviceManualRepairRecordRequest) ProtoReflect

func (*CreateDeviceManualRepairRecordRequest) Reset

func (*CreateDeviceManualRepairRecordRequest) String

type CreateDeviceManualRepairRecordResponse

type CreateDeviceManualRepairRecordResponse struct {
	// contains filtered or unexported fields
}

func (*CreateDeviceManualRepairRecordResponse) Descriptor deprecated

func (*CreateDeviceManualRepairRecordResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateDeviceManualRepairRecordResponse.ProtoReflect.Descriptor instead.

func (*CreateDeviceManualRepairRecordResponse) ProtoMessage

func (*CreateDeviceManualRepairRecordResponse) ProtoReflect

func (*CreateDeviceManualRepairRecordResponse) Reset

func (*CreateDeviceManualRepairRecordResponse) String

type DecoratedInventory

type DecoratedInventory struct {
	// Service is the service to decorate.
	Service InventoryServer
	// Prelude is called for each method before forwarding the call to Service.
	// If Prelude returns an error, then the call is skipped and the error is
	// processed via the Postlude (if one is defined), or it is returned directly.
	Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error)
	// Postlude is called for each method after Service has processed the call, or
	// after the Prelude has returned an error. This takes the the Service's
	// response proto (which may be nil) and/or any error. The decorated
	// service will return the response (possibly mutated) and error that Postlude
	// returns.
	Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedInventory) AddAssets

func (s *DecoratedInventory) AddAssets(ctx context.Context, req *AssetList) (rsp *AssetResponse, err error)

func (*DecoratedInventory) AddCrosDevices

func (s *DecoratedInventory) AddCrosDevices(ctx context.Context, req *AddCrosDevicesRequest) (rsp *AddCrosDevicesResponse, err error)

func (*DecoratedInventory) BatchCreateManualRepairRecords

func (*DecoratedInventory) BatchGetManualRepairRecords

func (*DecoratedInventory) BatchUpdateDevices

func (s *DecoratedInventory) BatchUpdateDevices(ctx context.Context, req *BatchUpdateDevicesRequest) (rsp *BatchUpdateDevicesResponse, err error)

func (*DecoratedInventory) CreateDeviceManualRepairRecord

func (*DecoratedInventory) DeleteAssets

func (s *DecoratedInventory) DeleteAssets(ctx context.Context, req *AssetIDList) (rsp *AssetIDResponse, err error)

func (*DecoratedInventory) DeleteCrosDevices

func (s *DecoratedInventory) DeleteCrosDevices(ctx context.Context, req *DeleteCrosDevicesRequest) (rsp *DeleteCrosDevicesResponse, err error)

func (*DecoratedInventory) DeviceConfigsExists

func (s *DecoratedInventory) DeviceConfigsExists(ctx context.Context, req *DeviceConfigsExistsRequest) (rsp *DeviceConfigsExistsResponse, err error)

func (*DecoratedInventory) GetAssets

func (s *DecoratedInventory) GetAssets(ctx context.Context, req *AssetIDList) (rsp *AssetResponse, err error)

func (*DecoratedInventory) GetCrosDevices

func (s *DecoratedInventory) GetCrosDevices(ctx context.Context, req *GetCrosDevicesRequest) (rsp *GetCrosDevicesResponse, err error)

func (*DecoratedInventory) GetDeviceConfig

func (s *DecoratedInventory) GetDeviceConfig(ctx context.Context, req *GetDeviceConfigRequest) (rsp *device.Config, err error)

func (*DecoratedInventory) GetDeviceManualRepairRecord

func (*DecoratedInventory) GetHwidData

func (s *DecoratedInventory) GetHwidData(ctx context.Context, req *GetHwidDataRequest) (rsp *HwidData, err error)

func (*DecoratedInventory) GetManufacturingConfig

func (s *DecoratedInventory) GetManufacturingConfig(ctx context.Context, req *GetManufacturingConfigRequest) (rsp *manufacturing.Config, err error)

func (*DecoratedInventory) ListCrosDevicesLabConfig

func (*DecoratedInventory) ListManualRepairRecords

func (*DecoratedInventory) UpdateAssets

func (s *DecoratedInventory) UpdateAssets(ctx context.Context, req *AssetList) (rsp *AssetResponse, err error)

func (*DecoratedInventory) UpdateCrosDevicesSetup

func (*DecoratedInventory) UpdateDeviceManualRepairRecord

func (*DecoratedInventory) UpdateDutsStatus

func (s *DecoratedInventory) UpdateDutsStatus(ctx context.Context, req *UpdateDutsStatusRequest) (rsp *UpdateDutsStatusResponse, err error)

func (*DecoratedInventory) UpdateLabstations

func (s *DecoratedInventory) UpdateLabstations(ctx context.Context, req *UpdateLabstationsRequest) (rsp *UpdateLabstationsResponse, err error)

type DeleteCrosDevicesRequest

type DeleteCrosDevicesRequest struct {
	Ids    []*DeviceID                      `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	Reason *DeleteCrosDevicesRequest_Reason `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCrosDevicesRequest) Descriptor deprecated

func (*DeleteCrosDevicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteCrosDevicesRequest.ProtoReflect.Descriptor instead.

func (*DeleteCrosDevicesRequest) GetIds

func (x *DeleteCrosDevicesRequest) GetIds() []*DeviceID

func (*DeleteCrosDevicesRequest) GetReason

func (*DeleteCrosDevicesRequest) ProtoMessage

func (*DeleteCrosDevicesRequest) ProtoMessage()

func (*DeleteCrosDevicesRequest) ProtoReflect

func (x *DeleteCrosDevicesRequest) ProtoReflect() protoreflect.Message

func (*DeleteCrosDevicesRequest) Reset

func (x *DeleteCrosDevicesRequest) Reset()

func (*DeleteCrosDevicesRequest) String

func (x *DeleteCrosDevicesRequest) String() string

func (*DeleteCrosDevicesRequest) Validate

func (r *DeleteCrosDevicesRequest) Validate() error

Validate validates input requests and return error if it's not.

type DeleteCrosDevicesRequest_Reason

type DeleteCrosDevicesRequest_Reason struct {
	Bug     string `protobuf:"bytes,1,opt,name=bug,proto3" json:"bug,omitempty"`
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCrosDevicesRequest_Reason) Descriptor deprecated

func (*DeleteCrosDevicesRequest_Reason) Descriptor() ([]byte, []int)

Deprecated: Use DeleteCrosDevicesRequest_Reason.ProtoReflect.Descriptor instead.

func (*DeleteCrosDevicesRequest_Reason) GetBug

func (*DeleteCrosDevicesRequest_Reason) GetComment

func (x *DeleteCrosDevicesRequest_Reason) GetComment() string

func (*DeleteCrosDevicesRequest_Reason) ProtoMessage

func (*DeleteCrosDevicesRequest_Reason) ProtoMessage()

func (*DeleteCrosDevicesRequest_Reason) ProtoReflect

func (*DeleteCrosDevicesRequest_Reason) Reset

func (*DeleteCrosDevicesRequest_Reason) String

type DeleteCrosDevicesResponse

type DeleteCrosDevicesResponse struct {
	RemovedDevices []*DeviceOpResult `protobuf:"bytes,1,rep,name=removed_devices,json=removedDevices,proto3" json:"removed_devices,omitempty"`
	// Devices cannot be removed for any reason.
	FailedDevices []*DeviceOpResult `protobuf:"bytes,2,rep,name=failed_devices,json=failedDevices,proto3" json:"failed_devices,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCrosDevicesResponse) Descriptor deprecated

func (*DeleteCrosDevicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteCrosDevicesResponse.ProtoReflect.Descriptor instead.

func (*DeleteCrosDevicesResponse) GetFailedDevices

func (x *DeleteCrosDevicesResponse) GetFailedDevices() []*DeviceOpResult

func (*DeleteCrosDevicesResponse) GetRemovedDevices

func (x *DeleteCrosDevicesResponse) GetRemovedDevices() []*DeviceOpResult

func (*DeleteCrosDevicesResponse) ProtoMessage

func (*DeleteCrosDevicesResponse) ProtoMessage()

func (*DeleteCrosDevicesResponse) ProtoReflect

func (*DeleteCrosDevicesResponse) Reset

func (x *DeleteCrosDevicesResponse) Reset()

func (*DeleteCrosDevicesResponse) String

func (x *DeleteCrosDevicesResponse) String() string

type DeviceConfigsExistsRequest

type DeviceConfigsExistsRequest struct {

	// device_configs to check
	ConfigIds []*device.ConfigId `protobuf:"bytes,1,rep,name=configIds,proto3" json:"configIds,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceConfigsExistsRequest) Descriptor deprecated

func (*DeviceConfigsExistsRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeviceConfigsExistsRequest.ProtoReflect.Descriptor instead.

func (*DeviceConfigsExistsRequest) GetConfigIds

func (x *DeviceConfigsExistsRequest) GetConfigIds() []*device.ConfigId

func (*DeviceConfigsExistsRequest) ProtoMessage

func (*DeviceConfigsExistsRequest) ProtoMessage()

func (*DeviceConfigsExistsRequest) ProtoReflect

func (*DeviceConfigsExistsRequest) Reset

func (x *DeviceConfigsExistsRequest) Reset()

func (*DeviceConfigsExistsRequest) String

func (x *DeviceConfigsExistsRequest) String() string

type DeviceConfigsExistsResponse

type DeviceConfigsExistsResponse struct {

	// Exists Map with true/false for the requested configIds
	// https://developers.google.com/protocol-buffers/docs/proto3#scalar
	// There is no int(Only int32 and others) scalar type for proto.
	// int32 maps to int32 in golang.
	// To iterate over map exists with int values(int i) - use exists[int32(i)]
	Exists map[int32]bool `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeviceConfigsExistsResponse) Descriptor deprecated

func (*DeviceConfigsExistsResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeviceConfigsExistsResponse.ProtoReflect.Descriptor instead.

func (*DeviceConfigsExistsResponse) GetExists

func (x *DeviceConfigsExistsResponse) GetExists() map[int32]bool

func (*DeviceConfigsExistsResponse) ProtoMessage

func (*DeviceConfigsExistsResponse) ProtoMessage()

func (*DeviceConfigsExistsResponse) ProtoReflect

func (*DeviceConfigsExistsResponse) Reset

func (x *DeviceConfigsExistsResponse) Reset()

func (*DeviceConfigsExistsResponse) String

func (x *DeviceConfigsExistsResponse) String() string

type DeviceID

type DeviceID struct {

	// Types that are assignable to Id:
	//	*DeviceID_Hostname
	//	*DeviceID_ChromeosDeviceId
	Id isDeviceID_Id `protobuf_oneof:"id"`
	// contains filtered or unexported fields
}

func (*DeviceID) Descriptor deprecated

func (*DeviceID) Descriptor() ([]byte, []int)

Deprecated: Use DeviceID.ProtoReflect.Descriptor instead.

func (*DeviceID) GetChromeosDeviceId

func (x *DeviceID) GetChromeosDeviceId() string

func (*DeviceID) GetHostname

func (x *DeviceID) GetHostname() string

func (*DeviceID) GetId

func (m *DeviceID) GetId() isDeviceID_Id

func (*DeviceID) ProtoMessage

func (*DeviceID) ProtoMessage()

func (*DeviceID) ProtoReflect

func (x *DeviceID) ProtoReflect() protoreflect.Message

func (*DeviceID) Reset

func (x *DeviceID) Reset()

func (*DeviceID) String

func (x *DeviceID) String() string

type DeviceID_ChromeosDeviceId

type DeviceID_ChromeosDeviceId struct {
	ChromeosDeviceId string `protobuf:"bytes,2,opt,name=chromeos_device_id,json=chromeosDeviceId,proto3,oneof"`
}

type DeviceID_Hostname

type DeviceID_Hostname struct {
	Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3,oneof"`
}

type DeviceOpResult

type DeviceOpResult struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
	ErrorMsg string `protobuf:"bytes,3,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceOpResult) Descriptor deprecated

func (*DeviceOpResult) Descriptor() ([]byte, []int)

Deprecated: Use DeviceOpResult.ProtoReflect.Descriptor instead.

func (*DeviceOpResult) GetErrorMsg

func (x *DeviceOpResult) GetErrorMsg() string

func (*DeviceOpResult) GetHostname

func (x *DeviceOpResult) GetHostname() string

func (*DeviceOpResult) GetId

func (x *DeviceOpResult) GetId() string

func (*DeviceOpResult) ProtoMessage

func (*DeviceOpResult) ProtoMessage()

func (*DeviceOpResult) ProtoReflect

func (x *DeviceOpResult) ProtoReflect() protoreflect.Message

func (*DeviceOpResult) Reset

func (x *DeviceOpResult) Reset()

func (*DeviceOpResult) String

func (x *DeviceOpResult) String() string

type DeviceProperty

type DeviceProperty struct {
	Hostname string              `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Pool     string              `protobuf:"bytes,2,opt,name=pool,proto3" json:"pool,omitempty"`
	Rpm      *DeviceProperty_Rpm `protobuf:"bytes,3,opt,name=rpm,proto3" json:"rpm,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceProperty) Descriptor deprecated

func (*DeviceProperty) Descriptor() ([]byte, []int)

Deprecated: Use DeviceProperty.ProtoReflect.Descriptor instead.

func (*DeviceProperty) GetHostname

func (x *DeviceProperty) GetHostname() string

func (*DeviceProperty) GetPool

func (x *DeviceProperty) GetPool() string

func (*DeviceProperty) GetRpm

func (x *DeviceProperty) GetRpm() *DeviceProperty_Rpm

func (*DeviceProperty) ProtoMessage

func (*DeviceProperty) ProtoMessage()

func (*DeviceProperty) ProtoReflect

func (x *DeviceProperty) ProtoReflect() protoreflect.Message

func (*DeviceProperty) Reset

func (x *DeviceProperty) Reset()

func (*DeviceProperty) String

func (x *DeviceProperty) String() string

type DeviceProperty_Rpm

type DeviceProperty_Rpm struct {
	PowerunitName   string `protobuf:"bytes,1,opt,name=powerunit_name,json=powerunitName,proto3" json:"powerunit_name,omitempty"`
	PowerunitOutlet string `protobuf:"bytes,2,opt,name=powerunit_outlet,json=powerunitOutlet,proto3" json:"powerunit_outlet,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceProperty_Rpm) Descriptor deprecated

func (*DeviceProperty_Rpm) Descriptor() ([]byte, []int)

Deprecated: Use DeviceProperty_Rpm.ProtoReflect.Descriptor instead.

func (*DeviceProperty_Rpm) GetPowerunitName

func (x *DeviceProperty_Rpm) GetPowerunitName() string

func (*DeviceProperty_Rpm) GetPowerunitOutlet

func (x *DeviceProperty_Rpm) GetPowerunitOutlet() string

func (*DeviceProperty_Rpm) ProtoMessage

func (*DeviceProperty_Rpm) ProtoMessage()

func (*DeviceProperty_Rpm) ProtoReflect

func (x *DeviceProperty_Rpm) ProtoReflect() protoreflect.Message

func (*DeviceProperty_Rpm) Reset

func (x *DeviceProperty_Rpm) Reset()

func (*DeviceProperty_Rpm) String

func (x *DeviceProperty_Rpm) String() string

type DutMeta

type DutMeta struct {
	ChromeosDeviceId string `protobuf:"bytes,1,opt,name=chromeos_device_id,json=chromeosDeviceId,proto3" json:"chromeos_device_id,omitempty"`
	SerialNumber     string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	HwID             string `protobuf:"bytes,3,opt,name=hwID,proto3" json:"hwID,omitempty"`
	DeviceSku        string `protobuf:"bytes,4,opt,name=device_sku,json=deviceSku,proto3" json:"device_sku,omitempty"`
	// contains filtered or unexported fields
}

func (*DutMeta) Descriptor deprecated

func (*DutMeta) Descriptor() ([]byte, []int)

Deprecated: Use DutMeta.ProtoReflect.Descriptor instead.

func (*DutMeta) GetChromeosDeviceId

func (x *DutMeta) GetChromeosDeviceId() string

func (*DutMeta) GetDeviceSku

func (x *DutMeta) GetDeviceSku() string

func (*DutMeta) GetHwID

func (x *DutMeta) GetHwID() string

func (*DutMeta) GetSerialNumber

func (x *DutMeta) GetSerialNumber() string

func (*DutMeta) ProtoMessage

func (*DutMeta) ProtoMessage()

func (*DutMeta) ProtoReflect

func (x *DutMeta) ProtoReflect() protoreflect.Message

func (*DutMeta) Reset

func (x *DutMeta) Reset()

func (*DutMeta) String

func (x *DutMeta) String() string

type ExtendedDeviceData

type ExtendedDeviceData struct {
	LabConfig           *lab.ChromeOSDevice   `protobuf:"bytes,1,opt,name=lab_config,json=labConfig,proto3" json:"lab_config,omitempty"`
	DeviceConfig        *device.Config        `protobuf:"bytes,2,opt,name=device_config,json=deviceConfig,proto3" json:"device_config,omitempty"`
	ManufacturingConfig *manufacturing.Config `protobuf:"bytes,3,opt,name=manufacturing_config,json=manufacturingConfig,proto3" json:"manufacturing_config,omitempty"`
	HwidData            *HwidData             `protobuf:"bytes,4,opt,name=hwid_data,json=hwidData,proto3" json:"hwid_data,omitempty"`
	DutState            *lab.DutState         `protobuf:"bytes,5,opt,name=dut_state,json=dutState,proto3" json:"dut_state,omitempty"`
	// contains filtered or unexported fields
}

func (*ExtendedDeviceData) Descriptor deprecated

func (*ExtendedDeviceData) Descriptor() ([]byte, []int)

Deprecated: Use ExtendedDeviceData.ProtoReflect.Descriptor instead.

func (*ExtendedDeviceData) GetDeviceConfig

func (x *ExtendedDeviceData) GetDeviceConfig() *device.Config

func (*ExtendedDeviceData) GetDutState

func (x *ExtendedDeviceData) GetDutState() *lab.DutState

func (*ExtendedDeviceData) GetHwidData

func (x *ExtendedDeviceData) GetHwidData() *HwidData

func (*ExtendedDeviceData) GetLabConfig

func (x *ExtendedDeviceData) GetLabConfig() *lab.ChromeOSDevice

func (*ExtendedDeviceData) GetManufacturingConfig

func (x *ExtendedDeviceData) GetManufacturingConfig() *manufacturing.Config

func (*ExtendedDeviceData) ProtoMessage

func (*ExtendedDeviceData) ProtoMessage()

func (*ExtendedDeviceData) ProtoReflect

func (x *ExtendedDeviceData) ProtoReflect() protoreflect.Message

func (*ExtendedDeviceData) Reset

func (x *ExtendedDeviceData) Reset()

func (*ExtendedDeviceData) String

func (x *ExtendedDeviceData) String() string

type GetCrosDevicesRequest

type GetCrosDevicesRequest struct {
	Ids    []*DeviceID `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	Models []string    `protobuf:"bytes,2,rep,name=models,proto3" json:"models,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCrosDevicesRequest) Descriptor deprecated

func (*GetCrosDevicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCrosDevicesRequest.ProtoReflect.Descriptor instead.

func (*GetCrosDevicesRequest) GetIds

func (x *GetCrosDevicesRequest) GetIds() []*DeviceID

func (*GetCrosDevicesRequest) GetModels

func (x *GetCrosDevicesRequest) GetModels() []string

func (*GetCrosDevicesRequest) ProtoMessage

func (*GetCrosDevicesRequest) ProtoMessage()

func (*GetCrosDevicesRequest) ProtoReflect

func (x *GetCrosDevicesRequest) ProtoReflect() protoreflect.Message

func (*GetCrosDevicesRequest) Reset

func (x *GetCrosDevicesRequest) Reset()

func (*GetCrosDevicesRequest) String

func (x *GetCrosDevicesRequest) String() string

func (*GetCrosDevicesRequest) Validate

func (r *GetCrosDevicesRequest) Validate() error

Validate validates getting requests must be non-empty and return error if it's not.

type GetCrosDevicesResponse

type GetCrosDevicesResponse struct {
	Data          []*ExtendedDeviceData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	FailedDevices []*DeviceOpResult     `protobuf:"bytes,2,rep,name=failed_devices,json=failedDevices,proto3" json:"failed_devices,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCrosDevicesResponse) Descriptor deprecated

func (*GetCrosDevicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCrosDevicesResponse.ProtoReflect.Descriptor instead.

func (*GetCrosDevicesResponse) GetData

func (*GetCrosDevicesResponse) GetFailedDevices

func (x *GetCrosDevicesResponse) GetFailedDevices() []*DeviceOpResult

func (*GetCrosDevicesResponse) ProtoMessage

func (*GetCrosDevicesResponse) ProtoMessage()

func (*GetCrosDevicesResponse) ProtoReflect

func (x *GetCrosDevicesResponse) ProtoReflect() protoreflect.Message

func (*GetCrosDevicesResponse) Reset

func (x *GetCrosDevicesResponse) Reset()

func (*GetCrosDevicesResponse) String

func (x *GetCrosDevicesResponse) String() string

type GetDeviceConfigRequest

type GetDeviceConfigRequest struct {
	ConfigId *device.ConfigId `protobuf:"bytes,1,opt,name=configId,proto3" json:"configId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceConfigRequest) Descriptor deprecated

func (*GetDeviceConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDeviceConfigRequest.ProtoReflect.Descriptor instead.

func (*GetDeviceConfigRequest) GetConfigId

func (x *GetDeviceConfigRequest) GetConfigId() *device.ConfigId

func (*GetDeviceConfigRequest) ProtoMessage

func (*GetDeviceConfigRequest) ProtoMessage()

func (*GetDeviceConfigRequest) ProtoReflect

func (x *GetDeviceConfigRequest) ProtoReflect() protoreflect.Message

func (*GetDeviceConfigRequest) Reset

func (x *GetDeviceConfigRequest) Reset()

func (*GetDeviceConfigRequest) String

func (x *GetDeviceConfigRequest) String() string

func (*GetDeviceConfigRequest) Validate

func (r *GetDeviceConfigRequest) Validate() error

Validate validates input requests of GetDeviceConfig.

type GetDeviceManualRepairRecordRequest

type GetDeviceManualRepairRecordRequest struct {
	Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceManualRepairRecordRequest) Descriptor deprecated

func (*GetDeviceManualRepairRecordRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDeviceManualRepairRecordRequest.ProtoReflect.Descriptor instead.

func (*GetDeviceManualRepairRecordRequest) GetHostname

func (x *GetDeviceManualRepairRecordRequest) GetHostname() string

func (*GetDeviceManualRepairRecordRequest) ProtoMessage

func (*GetDeviceManualRepairRecordRequest) ProtoMessage()

func (*GetDeviceManualRepairRecordRequest) ProtoReflect

func (*GetDeviceManualRepairRecordRequest) Reset

func (*GetDeviceManualRepairRecordRequest) String

type GetDeviceManualRepairRecordResponse

type GetDeviceManualRepairRecordResponse struct {
	DeviceRepairRecord *protos1.DeviceManualRepairRecord `protobuf:"bytes,1,opt,name=device_repair_record,json=deviceRepairRecord,proto3" json:"device_repair_record,omitempty"`
	Id                 string                            `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceManualRepairRecordResponse) Descriptor deprecated

func (*GetDeviceManualRepairRecordResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDeviceManualRepairRecordResponse.ProtoReflect.Descriptor instead.

func (*GetDeviceManualRepairRecordResponse) GetDeviceRepairRecord

func (*GetDeviceManualRepairRecordResponse) GetId

func (*GetDeviceManualRepairRecordResponse) ProtoMessage

func (*GetDeviceManualRepairRecordResponse) ProtoMessage()

func (*GetDeviceManualRepairRecordResponse) ProtoReflect

func (*GetDeviceManualRepairRecordResponse) Reset

func (*GetDeviceManualRepairRecordResponse) String

type GetHwidDataRequest

type GetHwidDataRequest struct {

	// Hwid of the Asset/DUT
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHwidDataRequest) Descriptor deprecated

func (*GetHwidDataRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetHwidDataRequest.ProtoReflect.Descriptor instead.

func (*GetHwidDataRequest) GetName

func (x *GetHwidDataRequest) GetName() string

func (*GetHwidDataRequest) ProtoMessage

func (*GetHwidDataRequest) ProtoMessage()

func (*GetHwidDataRequest) ProtoReflect

func (x *GetHwidDataRequest) ProtoReflect() protoreflect.Message

func (*GetHwidDataRequest) Reset

func (x *GetHwidDataRequest) Reset()

func (*GetHwidDataRequest) String

func (x *GetHwidDataRequest) String() string

func (*GetHwidDataRequest) Validate

func (r *GetHwidDataRequest) Validate() error

Validate validates input requests of GetHwidData.

type GetManufacturingConfigRequest

type GetManufacturingConfigRequest struct {

	// Hwid of the Asset/DUT
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetManufacturingConfigRequest) Descriptor deprecated

func (*GetManufacturingConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetManufacturingConfigRequest.ProtoReflect.Descriptor instead.

func (*GetManufacturingConfigRequest) GetName

func (*GetManufacturingConfigRequest) ProtoMessage

func (*GetManufacturingConfigRequest) ProtoMessage()

func (*GetManufacturingConfigRequest) ProtoReflect

func (*GetManufacturingConfigRequest) Reset

func (x *GetManufacturingConfigRequest) Reset()

func (*GetManufacturingConfigRequest) String

func (*GetManufacturingConfigRequest) Validate

func (r *GetManufacturingConfigRequest) Validate() error

Validate validates input requests of GetManufacturingConfig.

type HwidData

type HwidData struct {
	Sku     string `protobuf:"bytes,1,opt,name=sku,proto3" json:"sku,omitempty"`
	Variant string `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"`
	// contains filtered or unexported fields
}

func (*HwidData) Descriptor deprecated

func (*HwidData) Descriptor() ([]byte, []int)

Deprecated: Use HwidData.ProtoReflect.Descriptor instead.

func (*HwidData) GetSku

func (x *HwidData) GetSku() string

func (*HwidData) GetVariant

func (x *HwidData) GetVariant() string

func (*HwidData) ProtoMessage

func (*HwidData) ProtoMessage()

func (*HwidData) ProtoReflect

func (x *HwidData) ProtoReflect() protoreflect.Message

func (*HwidData) Reset

func (x *HwidData) Reset()

func (*HwidData) String

func (x *HwidData) String() string

type InventoryClient

type InventoryClient interface {
	// Deprecated: Do not use.
	// AddCrosDevices adds new Chrome OS devices to the inventory.
	AddCrosDevices(ctx context.Context, in *AddCrosDevicesRequest, opts ...grpc.CallOption) (*AddCrosDevicesResponse, error)
	// GetCrosDevices retrieves requested Chrome OS devices from the inventory.
	GetCrosDevices(ctx context.Context, in *GetCrosDevicesRequest, opts ...grpc.CallOption) (*GetCrosDevicesResponse, error)
	// UpdateDutsStatus updates selected Duts' status labels related to testing.
	UpdateDutsStatus(ctx context.Context, in *UpdateDutsStatusRequest, opts ...grpc.CallOption) (*UpdateDutsStatusResponse, error)
	// Deprecated: Do not use.
	// UpdateCrosDevicesSetup updates the selected Chrome OS devices setup data
	// in the inventory.
	UpdateCrosDevicesSetup(ctx context.Context, in *UpdateCrosDevicesSetupRequest, opts ...grpc.CallOption) (*UpdateCrosDevicesSetupResponse, error)
	// Deprecated: Do not use.
	// UpdateLabstations updates a selected ChromeOS labstations in lab.
	UpdateLabstations(ctx context.Context, in *UpdateLabstationsRequest, opts ...grpc.CallOption) (*UpdateLabstationsResponse, error)
	// Deprecated: Do not use.
	// DeleteCrosDevices delete the selelcted devices from the inventory.
	DeleteCrosDevices(ctx context.Context, in *DeleteCrosDevicesRequest, opts ...grpc.CallOption) (*DeleteCrosDevicesResponse, error)
	// Deprecated: Do not use.
	// BatchUpdateDevices updates some specific device properties in batch.
	BatchUpdateDevices(ctx context.Context, in *BatchUpdateDevicesRequest, opts ...grpc.CallOption) (*BatchUpdateDevicesResponse, error)
	// Deprecated: Do not use.
	// Add asset information
	AddAssets(ctx context.Context, in *AssetList, opts ...grpc.CallOption) (*AssetResponse, error)
	// Deprecated: Do not use.
	// Get asset information
	GetAssets(ctx context.Context, in *AssetIDList, opts ...grpc.CallOption) (*AssetResponse, error)
	// Deprecated: Do not use.
	// Delete asset information
	DeleteAssets(ctx context.Context, in *AssetIDList, opts ...grpc.CallOption) (*AssetIDResponse, error)
	// Deprecated: Do not use.
	// Update asset information
	UpdateAssets(ctx context.Context, in *AssetList, opts ...grpc.CallOption) (*AssetResponse, error)
	// DeviceConfigsExists checks if the device_configs exists in the datastore
	DeviceConfigsExists(ctx context.Context, in *DeviceConfigsExistsRequest, opts ...grpc.CallOption) (*DeviceConfigsExistsResponse, error)
	// Get a device manual repair record from datastore
	GetDeviceManualRepairRecord(ctx context.Context, in *GetDeviceManualRepairRecordRequest, opts ...grpc.CallOption) (*GetDeviceManualRepairRecordResponse, error)
	// Create a device manual repair record in datastore
	CreateDeviceManualRepairRecord(ctx context.Context, in *CreateDeviceManualRepairRecordRequest, opts ...grpc.CallOption) (*CreateDeviceManualRepairRecordResponse, error)
	// Update a device manual repair record in datastore
	UpdateDeviceManualRepairRecord(ctx context.Context, in *UpdateDeviceManualRepairRecordRequest, opts ...grpc.CallOption) (*UpdateDeviceManualRepairRecordResponse, error)
	// ListCrosDevicesLabConfig lists the lab configs of all devices saved in Inventor v2.
	ListCrosDevicesLabConfig(ctx context.Context, in *ListCrosDevicesLabConfigRequest, opts ...grpc.CallOption) (*ListCrosDevicesLabConfigResponse, error)
	// ListManualRepairRecords lists repair records based on filters passed in the
	// request.
	ListManualRepairRecords(ctx context.Context, in *ListManualRepairRecordsRequest, opts ...grpc.CallOption) (*ListManualRepairRecordsResponse, error)
	// Get manufacturing config for the device from datastore
	GetManufacturingConfig(ctx context.Context, in *GetManufacturingConfigRequest, opts ...grpc.CallOption) (*manufacturing.Config, error)
	// Get a device config for the device from datastore
	GetDeviceConfig(ctx context.Context, in *GetDeviceConfigRequest, opts ...grpc.CallOption) (*device.Config, error)
	// Get a Hwid data for the device from datastore
	GetHwidData(ctx context.Context, in *GetHwidDataRequest, opts ...grpc.CallOption) (*HwidData, error)
	// Get the open manual repair records for a batch of hostnames from datastore
	BatchGetManualRepairRecords(ctx context.Context, in *BatchGetManualRepairRecordsRequest, opts ...grpc.CallOption) (*BatchGetManualRepairRecordsResponse, error)
	// BatchCreateManualRepairRecords creates multiple manual repair records in
	// datastore in batch
	BatchCreateManualRepairRecords(ctx context.Context, in *BatchCreateManualRepairRecordsRequest, opts ...grpc.CallOption) (*BatchCreateManualRepairRecordsResponse, error)
}

InventoryClient is the client API for Inventory service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewInventoryClient

func NewInventoryClient(cc grpc.ClientConnInterface) InventoryClient

func NewInventoryPRPCClient

func NewInventoryPRPCClient(client *prpc.Client) InventoryClient

type InventoryServer

type InventoryServer interface {
	// Deprecated: Do not use.
	// AddCrosDevices adds new Chrome OS devices to the inventory.
	AddCrosDevices(context.Context, *AddCrosDevicesRequest) (*AddCrosDevicesResponse, error)
	// GetCrosDevices retrieves requested Chrome OS devices from the inventory.
	GetCrosDevices(context.Context, *GetCrosDevicesRequest) (*GetCrosDevicesResponse, error)
	// UpdateDutsStatus updates selected Duts' status labels related to testing.
	UpdateDutsStatus(context.Context, *UpdateDutsStatusRequest) (*UpdateDutsStatusResponse, error)
	// Deprecated: Do not use.
	// UpdateCrosDevicesSetup updates the selected Chrome OS devices setup data
	// in the inventory.
	UpdateCrosDevicesSetup(context.Context, *UpdateCrosDevicesSetupRequest) (*UpdateCrosDevicesSetupResponse, error)
	// Deprecated: Do not use.
	// UpdateLabstations updates a selected ChromeOS labstations in lab.
	UpdateLabstations(context.Context, *UpdateLabstationsRequest) (*UpdateLabstationsResponse, error)
	// Deprecated: Do not use.
	// DeleteCrosDevices delete the selelcted devices from the inventory.
	DeleteCrosDevices(context.Context, *DeleteCrosDevicesRequest) (*DeleteCrosDevicesResponse, error)
	// Deprecated: Do not use.
	// BatchUpdateDevices updates some specific device properties in batch.
	BatchUpdateDevices(context.Context, *BatchUpdateDevicesRequest) (*BatchUpdateDevicesResponse, error)
	// Deprecated: Do not use.
	// Add asset information
	AddAssets(context.Context, *AssetList) (*AssetResponse, error)
	// Deprecated: Do not use.
	// Get asset information
	GetAssets(context.Context, *AssetIDList) (*AssetResponse, error)
	// Deprecated: Do not use.
	// Delete asset information
	DeleteAssets(context.Context, *AssetIDList) (*AssetIDResponse, error)
	// Deprecated: Do not use.
	// Update asset information
	UpdateAssets(context.Context, *AssetList) (*AssetResponse, error)
	// DeviceConfigsExists checks if the device_configs exists in the datastore
	DeviceConfigsExists(context.Context, *DeviceConfigsExistsRequest) (*DeviceConfigsExistsResponse, error)
	// Get a device manual repair record from datastore
	GetDeviceManualRepairRecord(context.Context, *GetDeviceManualRepairRecordRequest) (*GetDeviceManualRepairRecordResponse, error)
	// Create a device manual repair record in datastore
	CreateDeviceManualRepairRecord(context.Context, *CreateDeviceManualRepairRecordRequest) (*CreateDeviceManualRepairRecordResponse, error)
	// Update a device manual repair record in datastore
	UpdateDeviceManualRepairRecord(context.Context, *UpdateDeviceManualRepairRecordRequest) (*UpdateDeviceManualRepairRecordResponse, error)
	// ListCrosDevicesLabConfig lists the lab configs of all devices saved in Inventor v2.
	ListCrosDevicesLabConfig(context.Context, *ListCrosDevicesLabConfigRequest) (*ListCrosDevicesLabConfigResponse, error)
	// ListManualRepairRecords lists repair records based on filters passed in the
	// request.
	ListManualRepairRecords(context.Context, *ListManualRepairRecordsRequest) (*ListManualRepairRecordsResponse, error)
	// Get manufacturing config for the device from datastore
	GetManufacturingConfig(context.Context, *GetManufacturingConfigRequest) (*manufacturing.Config, error)
	// Get a device config for the device from datastore
	GetDeviceConfig(context.Context, *GetDeviceConfigRequest) (*device.Config, error)
	// Get a Hwid data for the device from datastore
	GetHwidData(context.Context, *GetHwidDataRequest) (*HwidData, error)
	// Get the open manual repair records for a batch of hostnames from datastore
	BatchGetManualRepairRecords(context.Context, *BatchGetManualRepairRecordsRequest) (*BatchGetManualRepairRecordsResponse, error)
	// BatchCreateManualRepairRecords creates multiple manual repair records in
	// datastore in batch
	BatchCreateManualRepairRecords(context.Context, *BatchCreateManualRepairRecordsRequest) (*BatchCreateManualRepairRecordsResponse, error)
}

InventoryServer is the server API for Inventory service.

type LabMeta

type LabMeta struct {
	ChromeosDeviceId string             `protobuf:"bytes,1,opt,name=chromeos_device_id,json=chromeosDeviceId,proto3" json:"chromeos_device_id,omitempty"`
	ServoType        string             `protobuf:"bytes,2,opt,name=servo_type,json=servoType,proto3" json:"servo_type,omitempty"`
	SmartUsbhub      bool               `protobuf:"varint,3,opt,name=smart_usbhub,json=smartUsbhub,proto3" json:"smart_usbhub,omitempty"`
	ServoTopology    *lab.ServoTopology `protobuf:"bytes,4,opt,name=servo_topology,json=servoTopology,proto3" json:"servo_topology,omitempty"`
	// contains filtered or unexported fields
}

func (*LabMeta) Descriptor deprecated

func (*LabMeta) Descriptor() ([]byte, []int)

Deprecated: Use LabMeta.ProtoReflect.Descriptor instead.

func (*LabMeta) GetChromeosDeviceId

func (x *LabMeta) GetChromeosDeviceId() string

func (*LabMeta) GetServoTopology

func (x *LabMeta) GetServoTopology() *lab.ServoTopology

func (*LabMeta) GetServoType

func (x *LabMeta) GetServoType() string

func (*LabMeta) GetSmartUsbhub

func (x *LabMeta) GetSmartUsbhub() bool

func (*LabMeta) ProtoMessage

func (*LabMeta) ProtoMessage()

func (*LabMeta) ProtoReflect

func (x *LabMeta) ProtoReflect() protoreflect.Message

func (*LabMeta) Reset

func (x *LabMeta) Reset()

func (*LabMeta) String

func (x *LabMeta) String() string

type ListCrosDevicesLabConfigRequest

type ListCrosDevicesLabConfigRequest struct {
	// contains filtered or unexported fields
}

func (*ListCrosDevicesLabConfigRequest) Descriptor deprecated

func (*ListCrosDevicesLabConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCrosDevicesLabConfigRequest.ProtoReflect.Descriptor instead.

func (*ListCrosDevicesLabConfigRequest) ProtoMessage

func (*ListCrosDevicesLabConfigRequest) ProtoMessage()

func (*ListCrosDevicesLabConfigRequest) ProtoReflect

func (*ListCrosDevicesLabConfigRequest) Reset

func (*ListCrosDevicesLabConfigRequest) String

type ListCrosDevicesLabConfigResponse

type ListCrosDevicesLabConfigResponse struct {
	LabConfigs []*ListCrosDevicesLabConfigResponse_LabConfig `protobuf:"bytes,1,rep,name=lab_configs,json=labConfigs,proto3" json:"lab_configs,omitempty"` // Omit the page tokens as it's only used internally by UFS.
	// contains filtered or unexported fields
}

func (*ListCrosDevicesLabConfigResponse) Descriptor deprecated

func (*ListCrosDevicesLabConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCrosDevicesLabConfigResponse.ProtoReflect.Descriptor instead.

func (*ListCrosDevicesLabConfigResponse) GetLabConfigs

func (*ListCrosDevicesLabConfigResponse) ProtoMessage

func (*ListCrosDevicesLabConfigResponse) ProtoMessage()

func (*ListCrosDevicesLabConfigResponse) ProtoReflect

func (*ListCrosDevicesLabConfigResponse) Reset

func (*ListCrosDevicesLabConfigResponse) String

type ListCrosDevicesLabConfigResponse_LabConfig

type ListCrosDevicesLabConfigResponse_LabConfig struct {
	Config      *lab.ChromeOSDevice    `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	State       *lab.DutState          `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCrosDevicesLabConfigResponse_LabConfig) Descriptor deprecated

Deprecated: Use ListCrosDevicesLabConfigResponse_LabConfig.ProtoReflect.Descriptor instead.

func (*ListCrosDevicesLabConfigResponse_LabConfig) GetConfig

func (*ListCrosDevicesLabConfigResponse_LabConfig) GetState

func (*ListCrosDevicesLabConfigResponse_LabConfig) GetUpdatedTime

func (*ListCrosDevicesLabConfigResponse_LabConfig) ProtoMessage

func (*ListCrosDevicesLabConfigResponse_LabConfig) ProtoReflect

func (*ListCrosDevicesLabConfigResponse_LabConfig) Reset

func (*ListCrosDevicesLabConfigResponse_LabConfig) String

type ListManualRepairRecordsRequest

type ListManualRepairRecordsRequest struct {
	Hostname    string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	AssetTag    string `protobuf:"bytes,2,opt,name=asset_tag,json=assetTag,proto3" json:"asset_tag,omitempty"`
	UserLdap    string `protobuf:"bytes,4,opt,name=user_ldap,json=userLdap,proto3" json:"user_ldap,omitempty"`
	RepairState string `protobuf:"bytes,5,opt,name=repair_state,json=repairState,proto3" json:"repair_state,omitempty"`
	Limit       int32  `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset      int32  `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

Next tag: 7

func (*ListManualRepairRecordsRequest) Descriptor deprecated

func (*ListManualRepairRecordsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListManualRepairRecordsRequest.ProtoReflect.Descriptor instead.

func (*ListManualRepairRecordsRequest) GetAssetTag

func (x *ListManualRepairRecordsRequest) GetAssetTag() string

func (*ListManualRepairRecordsRequest) GetHostname

func (x *ListManualRepairRecordsRequest) GetHostname() string

func (*ListManualRepairRecordsRequest) GetLimit

func (x *ListManualRepairRecordsRequest) GetLimit() int32

func (*ListManualRepairRecordsRequest) GetOffset

func (x *ListManualRepairRecordsRequest) GetOffset() int32

func (*ListManualRepairRecordsRequest) GetRepairState

func (x *ListManualRepairRecordsRequest) GetRepairState() string

func (*ListManualRepairRecordsRequest) GetUserLdap

func (x *ListManualRepairRecordsRequest) GetUserLdap() string

func (*ListManualRepairRecordsRequest) ProtoMessage

func (*ListManualRepairRecordsRequest) ProtoMessage()

func (*ListManualRepairRecordsRequest) ProtoReflect

func (*ListManualRepairRecordsRequest) Reset

func (x *ListManualRepairRecordsRequest) Reset()

func (*ListManualRepairRecordsRequest) String

type ListManualRepairRecordsResponse

type ListManualRepairRecordsResponse struct {
	RepairRecords []*protos1.DeviceManualRepairRecord `protobuf:"bytes,1,rep,name=repair_records,json=repairRecords,proto3" json:"repair_records,omitempty"`
	// contains filtered or unexported fields
}

func (*ListManualRepairRecordsResponse) Descriptor deprecated

func (*ListManualRepairRecordsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListManualRepairRecordsResponse.ProtoReflect.Descriptor instead.

func (*ListManualRepairRecordsResponse) GetRepairRecords

func (*ListManualRepairRecordsResponse) ProtoMessage

func (*ListManualRepairRecordsResponse) ProtoMessage()

func (*ListManualRepairRecordsResponse) ProtoReflect

func (*ListManualRepairRecordsResponse) Reset

func (*ListManualRepairRecordsResponse) String

type ManualRepairRecordResult

type ManualRepairRecordResult struct {
	RepairRecord *protos1.DeviceManualRepairRecord `protobuf:"bytes,1,opt,name=repair_record,json=repairRecord,proto3" json:"repair_record,omitempty"`
	Id           string                            `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// The existence of an error_msg is used to determine whether a result was a
	// success or failure. The message content is mainly used for UI side logic.
	ErrorMsg string `protobuf:"bytes,3,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
	Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// contains filtered or unexported fields
}

func (*ManualRepairRecordResult) Descriptor deprecated

func (*ManualRepairRecordResult) Descriptor() ([]byte, []int)

Deprecated: Use ManualRepairRecordResult.ProtoReflect.Descriptor instead.

func (*ManualRepairRecordResult) GetErrorMsg

func (x *ManualRepairRecordResult) GetErrorMsg() string

func (*ManualRepairRecordResult) GetHostname

func (x *ManualRepairRecordResult) GetHostname() string

func (*ManualRepairRecordResult) GetId

func (x *ManualRepairRecordResult) GetId() string

func (*ManualRepairRecordResult) GetRepairRecord

func (*ManualRepairRecordResult) ProtoMessage

func (*ManualRepairRecordResult) ProtoMessage()

func (*ManualRepairRecordResult) ProtoReflect

func (x *ManualRepairRecordResult) ProtoReflect() protoreflect.Message

func (*ManualRepairRecordResult) Reset

func (x *ManualRepairRecordResult) Reset()

func (*ManualRepairRecordResult) String

func (x *ManualRepairRecordResult) String() string

type UnimplementedInventoryServer

type UnimplementedInventoryServer struct {
}

UnimplementedInventoryServer can be embedded to have forward compatible implementations.

func (*UnimplementedInventoryServer) AddAssets

func (*UnimplementedInventoryServer) AddCrosDevices

func (*UnimplementedInventoryServer) BatchUpdateDevices

func (*UnimplementedInventoryServer) DeleteAssets

func (*UnimplementedInventoryServer) DeleteCrosDevices

func (*UnimplementedInventoryServer) DeviceConfigsExists

func (*UnimplementedInventoryServer) GetAssets

func (*UnimplementedInventoryServer) GetCrosDevices

func (*UnimplementedInventoryServer) GetDeviceConfig

func (*UnimplementedInventoryServer) GetHwidData

func (*UnimplementedInventoryServer) GetManufacturingConfig

func (*UnimplementedInventoryServer) UpdateAssets

func (*UnimplementedInventoryServer) UpdateDutsStatus

func (*UnimplementedInventoryServer) UpdateLabstations

type UpdateCrosDevicesSetupRequest

type UpdateCrosDevicesSetupRequest struct {
	Devices       []*lab.ChromeOSDevice `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	Reason        string                `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	PickServoPort bool                  `protobuf:"varint,3,opt,name=pick_servo_port,json=pickServoPort,proto3" json:"pick_servo_port,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCrosDevicesSetupRequest) Descriptor deprecated

func (*UpdateCrosDevicesSetupRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCrosDevicesSetupRequest.ProtoReflect.Descriptor instead.

func (*UpdateCrosDevicesSetupRequest) GetDevices

func (*UpdateCrosDevicesSetupRequest) GetPickServoPort

func (x *UpdateCrosDevicesSetupRequest) GetPickServoPort() bool

func (*UpdateCrosDevicesSetupRequest) GetReason

func (x *UpdateCrosDevicesSetupRequest) GetReason() string

func (*UpdateCrosDevicesSetupRequest) ProtoMessage

func (*UpdateCrosDevicesSetupRequest) ProtoMessage()

func (*UpdateCrosDevicesSetupRequest) ProtoReflect

func (*UpdateCrosDevicesSetupRequest) Reset

func (x *UpdateCrosDevicesSetupRequest) Reset()

func (*UpdateCrosDevicesSetupRequest) String

func (*UpdateCrosDevicesSetupRequest) Validate

func (r *UpdateCrosDevicesSetupRequest) Validate() error

Validate validates input requests and return error if it's not.

type UpdateCrosDevicesSetupResponse

type UpdateCrosDevicesSetupResponse struct {
	UpdatedDevices []*DeviceOpResult `protobuf:"bytes,1,rep,name=updated_devices,json=updatedDevices,proto3" json:"updated_devices,omitempty"`
	FailedDevices  []*DeviceOpResult `protobuf:"bytes,2,rep,name=failed_devices,json=failedDevices,proto3" json:"failed_devices,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCrosDevicesSetupResponse) Descriptor deprecated

func (*UpdateCrosDevicesSetupResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCrosDevicesSetupResponse.ProtoReflect.Descriptor instead.

func (*UpdateCrosDevicesSetupResponse) GetFailedDevices

func (x *UpdateCrosDevicesSetupResponse) GetFailedDevices() []*DeviceOpResult

func (*UpdateCrosDevicesSetupResponse) GetUpdatedDevices

func (x *UpdateCrosDevicesSetupResponse) GetUpdatedDevices() []*DeviceOpResult

func (*UpdateCrosDevicesSetupResponse) ProtoMessage

func (*UpdateCrosDevicesSetupResponse) ProtoMessage()

func (*UpdateCrosDevicesSetupResponse) ProtoReflect

func (*UpdateCrosDevicesSetupResponse) Reset

func (x *UpdateCrosDevicesSetupResponse) Reset()

func (*UpdateCrosDevicesSetupResponse) String

type UpdateDeviceManualRepairRecordRequest

type UpdateDeviceManualRepairRecordRequest struct {
	DeviceRepairRecord *protos1.DeviceManualRepairRecord `protobuf:"bytes,1,opt,name=device_repair_record,json=deviceRepairRecord,proto3" json:"device_repair_record,omitempty"`
	Id                 string                            `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDeviceManualRepairRecordRequest) Descriptor deprecated

func (*UpdateDeviceManualRepairRecordRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDeviceManualRepairRecordRequest.ProtoReflect.Descriptor instead.

func (*UpdateDeviceManualRepairRecordRequest) GetDeviceRepairRecord

func (*UpdateDeviceManualRepairRecordRequest) GetId

func (*UpdateDeviceManualRepairRecordRequest) ProtoMessage

func (*UpdateDeviceManualRepairRecordRequest) ProtoMessage()

func (*UpdateDeviceManualRepairRecordRequest) ProtoReflect

func (*UpdateDeviceManualRepairRecordRequest) Reset

func (*UpdateDeviceManualRepairRecordRequest) String

type UpdateDeviceManualRepairRecordResponse

type UpdateDeviceManualRepairRecordResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateDeviceManualRepairRecordResponse) Descriptor deprecated

func (*UpdateDeviceManualRepairRecordResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDeviceManualRepairRecordResponse.ProtoReflect.Descriptor instead.

func (*UpdateDeviceManualRepairRecordResponse) ProtoMessage

func (*UpdateDeviceManualRepairRecordResponse) ProtoReflect

func (*UpdateDeviceManualRepairRecordResponse) Reset

func (*UpdateDeviceManualRepairRecordResponse) String

type UpdateDutsStatusRequest

type UpdateDutsStatusRequest struct {
	States []*lab.DutState `protobuf:"bytes,1,rep,name=states,proto3" json:"states,omitempty"`
	Reason string          `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// Currently there's no way to get such info before deployment. So temporarily set them
	// in the request via DutMeta to backfill hwID and serial number.
	// TODO: find a better way for these infos.
	DutMetas []*DutMeta `protobuf:"bytes,3,rep,name=dut_metas,json=dutMetas,proto3" json:"dut_metas,omitempty"`
	LabMetas []*LabMeta `protobuf:"bytes,4,rep,name=lab_metas,json=labMetas,proto3" json:"lab_metas,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDutsStatusRequest) Descriptor deprecated

func (*UpdateDutsStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDutsStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateDutsStatusRequest) GetDutMetas

func (x *UpdateDutsStatusRequest) GetDutMetas() []*DutMeta

func (*UpdateDutsStatusRequest) GetLabMetas

func (x *UpdateDutsStatusRequest) GetLabMetas() []*LabMeta

func (*UpdateDutsStatusRequest) GetReason

func (x *UpdateDutsStatusRequest) GetReason() string

func (*UpdateDutsStatusRequest) GetStates

func (x *UpdateDutsStatusRequest) GetStates() []*lab.DutState

func (*UpdateDutsStatusRequest) ProtoMessage

func (*UpdateDutsStatusRequest) ProtoMessage()

func (*UpdateDutsStatusRequest) ProtoReflect

func (x *UpdateDutsStatusRequest) ProtoReflect() protoreflect.Message

func (*UpdateDutsStatusRequest) Reset

func (x *UpdateDutsStatusRequest) Reset()

func (*UpdateDutsStatusRequest) String

func (x *UpdateDutsStatusRequest) String() string

func (*UpdateDutsStatusRequest) Validate

func (r *UpdateDutsStatusRequest) Validate() error

Validate validates input requests and return error if it's not.

type UpdateDutsStatusResponse

type UpdateDutsStatusResponse struct {
	UpdatedDevices []*DeviceOpResult `protobuf:"bytes,1,rep,name=updated_devices,json=updatedDevices,proto3" json:"updated_devices,omitempty"`
	FailedDevices  []*DeviceOpResult `protobuf:"bytes,2,rep,name=failed_devices,json=failedDevices,proto3" json:"failed_devices,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDutsStatusResponse) Descriptor deprecated

func (*UpdateDutsStatusResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDutsStatusResponse.ProtoReflect.Descriptor instead.

func (*UpdateDutsStatusResponse) GetFailedDevices

func (x *UpdateDutsStatusResponse) GetFailedDevices() []*DeviceOpResult

func (*UpdateDutsStatusResponse) GetUpdatedDevices

func (x *UpdateDutsStatusResponse) GetUpdatedDevices() []*DeviceOpResult

func (*UpdateDutsStatusResponse) ProtoMessage

func (*UpdateDutsStatusResponse) ProtoMessage()

func (*UpdateDutsStatusResponse) ProtoReflect

func (x *UpdateDutsStatusResponse) ProtoReflect() protoreflect.Message

func (*UpdateDutsStatusResponse) Reset

func (x *UpdateDutsStatusResponse) Reset()

func (*UpdateDutsStatusResponse) String

func (x *UpdateDutsStatusResponse) String() string

type UpdateLabstationsRequest

type UpdateLabstationsRequest struct {
	Hostname      string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	DeletedServos []string `protobuf:"bytes,2,rep,name=deletedServos,proto3" json:"deletedServos,omitempty"`
	AddedDUTs     []string `protobuf:"bytes,3,rep,name=addedDUTs,proto3" json:"addedDUTs,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateLabstationsRequest) Descriptor deprecated

func (*UpdateLabstationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateLabstationsRequest.ProtoReflect.Descriptor instead.

func (*UpdateLabstationsRequest) GetAddedDUTs

func (x *UpdateLabstationsRequest) GetAddedDUTs() []string

func (*UpdateLabstationsRequest) GetDeletedServos

func (x *UpdateLabstationsRequest) GetDeletedServos() []string

func (*UpdateLabstationsRequest) GetHostname

func (x *UpdateLabstationsRequest) GetHostname() string

func (*UpdateLabstationsRequest) ProtoMessage

func (*UpdateLabstationsRequest) ProtoMessage()

func (*UpdateLabstationsRequest) ProtoReflect

func (x *UpdateLabstationsRequest) ProtoReflect() protoreflect.Message

func (*UpdateLabstationsRequest) Reset

func (x *UpdateLabstationsRequest) Reset()

func (*UpdateLabstationsRequest) String

func (x *UpdateLabstationsRequest) String() string

func (*UpdateLabstationsRequest) Validate

func (r *UpdateLabstationsRequest) Validate() error

Validate validates input requests and return error if it's not.

type UpdateLabstationsResponse

type UpdateLabstationsResponse struct {
	Labstation *lab.ChromeOSDevice `protobuf:"bytes,1,opt,name=labstation,proto3" json:"labstation,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateLabstationsResponse) Descriptor deprecated

func (*UpdateLabstationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateLabstationsResponse.ProtoReflect.Descriptor instead.

func (*UpdateLabstationsResponse) GetLabstation

func (x *UpdateLabstationsResponse) GetLabstation() *lab.ChromeOSDevice

func (*UpdateLabstationsResponse) ProtoMessage

func (*UpdateLabstationsResponse) ProtoMessage()

func (*UpdateLabstationsResponse) ProtoReflect

func (*UpdateLabstationsResponse) Reset

func (x *UpdateLabstationsResponse) Reset()

func (*UpdateLabstationsResponse) String

func (x *UpdateLabstationsResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL