mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-12 13:25:38 +08:00
add erasedevice and devicelock fields (#271)
This commit is contained in:
@@ -39,6 +39,16 @@ func MarshalEvent(e *Event) ([]byte, error) {
|
||||
}
|
||||
}
|
||||
switch e.Payload.Command.RequestType {
|
||||
case "DeviceLock":
|
||||
payload.Command.DeviceLock = &commandproto.DeviceLock{
|
||||
Pin: e.Payload.Command.DeviceLock.PIN,
|
||||
Message: e.Payload.Command.DeviceLock.Message,
|
||||
PhoneNumber: e.Payload.Command.DeviceLock.PhoneNumber,
|
||||
}
|
||||
case "EraseDevice":
|
||||
payload.Command.EraseDevice = &commandproto.EraseDevice{
|
||||
Pin: e.Payload.Command.EraseDevice.PIN,
|
||||
}
|
||||
case "DeleteUser":
|
||||
payload.Command.DeleteUser = &commandproto.DeleteUser{
|
||||
Username: e.Payload.Command.DeleteUser.UserName,
|
||||
@@ -151,6 +161,18 @@ func UnmarshalEvent(data []byte, e *Event) error {
|
||||
RequestType: pb.Payload.Command.RequestType,
|
||||
}
|
||||
switch pb.Payload.Command.RequestType {
|
||||
case "DeviceLock":
|
||||
cmd := pb.Payload.Command.GetDeviceLock()
|
||||
e.Payload.Command.DeviceLock = mdm.DeviceLock{
|
||||
PIN: cmd.GetPin(),
|
||||
Message: cmd.GetMessage(),
|
||||
PhoneNumber: cmd.GetPhoneNumber(),
|
||||
}
|
||||
case "EraseDevice":
|
||||
cmd := pb.Payload.Command.GetEraseDevice()
|
||||
e.Payload.Command.EraseDevice = mdm.EraseDevice{
|
||||
PIN: cmd.GetPin(),
|
||||
}
|
||||
case "DeleteUser":
|
||||
cmd := pb.Payload.Command.GetDeleteUser()
|
||||
e.Payload.Command.DeleteUser = mdm.DeleteUser{
|
||||
|
||||
@@ -21,6 +21,8 @@ It has these top-level messages:
|
||||
RemoveProfile
|
||||
DeleteUser
|
||||
InstallApplication
|
||||
EraseDevice
|
||||
DeviceLock
|
||||
Settings
|
||||
Setting
|
||||
DeviceNameSetting
|
||||
@@ -118,6 +120,8 @@ type Command struct {
|
||||
RemoveProfile *RemoveProfile `protobuf:"bytes,8,opt,name=remove_profile,json=removeProfile" json:"remove_profile,omitempty"`
|
||||
DeleteUser *DeleteUser `protobuf:"bytes,9,opt,name=delete_user,json=deleteUser" json:"delete_user,omitempty"`
|
||||
Settings *Settings `protobuf:"bytes,10,opt,name=settings" json:"settings,omitempty"`
|
||||
EraseDevice *EraseDevice `protobuf:"bytes,11,opt,name=erase_device,json=eraseDevice" json:"erase_device,omitempty"`
|
||||
DeviceLock *DeviceLock `protobuf:"bytes,12,opt,name=device_lock,json=deviceLock" json:"device_lock,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Command) Reset() { *m = Command{} }
|
||||
@@ -195,6 +199,20 @@ func (m *Command) GetSettings() *Settings {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Command) GetEraseDevice() *EraseDevice {
|
||||
if m != nil {
|
||||
return m.EraseDevice
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Command) GetDeviceLock() *DeviceLock {
|
||||
if m != nil {
|
||||
return m.DeviceLock
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ScheduleOSUpdate struct {
|
||||
Updates []*OSUpdate `protobuf:"bytes,1,rep,name=updates" json:"updates,omitempty"`
|
||||
}
|
||||
@@ -451,6 +469,62 @@ func (m *InstallApplication) GetChangeManagementState() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type EraseDevice struct {
|
||||
Pin string `protobuf:"bytes,1,opt,name=pin" json:"pin,omitempty"`
|
||||
PreserveDataPlan bool `protobuf:"varint,2,opt,name=preserve_data_plan,json=preserveDataPlan" json:"preserve_data_plan,omitempty"`
|
||||
}
|
||||
|
||||
func (m *EraseDevice) Reset() { *m = EraseDevice{} }
|
||||
func (m *EraseDevice) String() string { return proto.CompactTextString(m) }
|
||||
func (*EraseDevice) ProtoMessage() {}
|
||||
func (*EraseDevice) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
|
||||
|
||||
func (m *EraseDevice) GetPin() string {
|
||||
if m != nil {
|
||||
return m.Pin
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *EraseDevice) GetPreserveDataPlan() bool {
|
||||
if m != nil {
|
||||
return m.PreserveDataPlan
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type DeviceLock struct {
|
||||
Pin string `protobuf:"bytes,1,opt,name=pin" json:"pin,omitempty"`
|
||||
Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
|
||||
PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber" json:"phone_number,omitempty"`
|
||||
}
|
||||
|
||||
func (m *DeviceLock) Reset() { *m = DeviceLock{} }
|
||||
func (m *DeviceLock) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeviceLock) ProtoMessage() {}
|
||||
func (*DeviceLock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
|
||||
|
||||
func (m *DeviceLock) GetPin() string {
|
||||
if m != nil {
|
||||
return m.Pin
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DeviceLock) GetMessage() string {
|
||||
if m != nil {
|
||||
return m.Message
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DeviceLock) GetPhoneNumber() string {
|
||||
if m != nil {
|
||||
return m.PhoneNumber
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type Settings struct {
|
||||
Settings []*Setting `protobuf:"bytes,1,rep,name=settings" json:"settings,omitempty"`
|
||||
}
|
||||
@@ -458,7 +532,7 @@ type Settings struct {
|
||||
func (m *Settings) Reset() { *m = Settings{} }
|
||||
func (m *Settings) String() string { return proto.CompactTextString(m) }
|
||||
func (*Settings) ProtoMessage() {}
|
||||
func (*Settings) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
|
||||
func (*Settings) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
|
||||
|
||||
func (m *Settings) GetSettings() []*Setting {
|
||||
if m != nil {
|
||||
@@ -476,7 +550,7 @@ type Setting struct {
|
||||
func (m *Setting) Reset() { *m = Setting{} }
|
||||
func (m *Setting) String() string { return proto.CompactTextString(m) }
|
||||
func (*Setting) ProtoMessage() {}
|
||||
func (*Setting) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
|
||||
func (*Setting) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
|
||||
|
||||
func (m *Setting) GetItem() string {
|
||||
if m != nil {
|
||||
@@ -506,7 +580,7 @@ type DeviceNameSetting struct {
|
||||
func (m *DeviceNameSetting) Reset() { *m = DeviceNameSetting{} }
|
||||
func (m *DeviceNameSetting) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeviceNameSetting) ProtoMessage() {}
|
||||
func (*DeviceNameSetting) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
|
||||
func (*DeviceNameSetting) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
|
||||
|
||||
func (m *DeviceNameSetting) GetDeviceName() string {
|
||||
if m != nil {
|
||||
@@ -522,7 +596,7 @@ type HostnameSetting struct {
|
||||
func (m *HostnameSetting) Reset() { *m = HostnameSetting{} }
|
||||
func (m *HostnameSetting) String() string { return proto.CompactTextString(m) }
|
||||
func (*HostnameSetting) ProtoMessage() {}
|
||||
func (*HostnameSetting) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
|
||||
func (*HostnameSetting) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
|
||||
|
||||
func (m *HostnameSetting) GetHostname() string {
|
||||
if m != nil {
|
||||
@@ -545,6 +619,8 @@ func init() {
|
||||
proto.RegisterType((*RemoveProfile)(nil), "commandproto.RemoveProfile")
|
||||
proto.RegisterType((*DeleteUser)(nil), "commandproto.DeleteUser")
|
||||
proto.RegisterType((*InstallApplication)(nil), "commandproto.InstallApplication")
|
||||
proto.RegisterType((*EraseDevice)(nil), "commandproto.EraseDevice")
|
||||
proto.RegisterType((*DeviceLock)(nil), "commandproto.DeviceLock")
|
||||
proto.RegisterType((*Settings)(nil), "commandproto.Settings")
|
||||
proto.RegisterType((*Setting)(nil), "commandproto.Setting")
|
||||
proto.RegisterType((*DeviceNameSetting)(nil), "commandproto.DeviceNameSetting")
|
||||
@@ -554,69 +630,77 @@ func init() {
|
||||
func init() { proto.RegisterFile("command.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 1019 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x56, 0x5d, 0x6f, 0x1c, 0x35,
|
||||
0x14, 0xd5, 0xee, 0x26, 0xd9, 0xd9, 0x9b, 0x6c, 0x92, 0x9a, 0x24, 0x1d, 0x28, 0x6d, 0xc2, 0x04,
|
||||
0x50, 0x8a, 0x68, 0x0a, 0x05, 0x21, 0xf5, 0x01, 0x89, 0xd0, 0x14, 0x35, 0x82, 0x36, 0xc1, 0x4b,
|
||||
0x40, 0x3c, 0x20, 0xcb, 0xcc, 0x78, 0x77, 0xad, 0xce, 0x8c, 0xa7, 0xb6, 0x27, 0x68, 0x1f, 0x78,
|
||||
0xe2, 0x17, 0xf0, 0x8a, 0xc4, 0x2f, 0xe2, 0x4f, 0x21, 0x7f, 0x4d, 0x66, 0x3f, 0xfa, 0x36, 0xf7,
|
||||
0xf8, 0xf8, 0xf8, 0x8e, 0xef, 0xf1, 0xb5, 0x61, 0x98, 0x8a, 0xa2, 0xa0, 0x65, 0x76, 0x5a, 0x49,
|
||||
0xa1, 0x05, 0xda, 0xf2, 0xa1, 0x8d, 0x92, 0x3f, 0x61, 0xfd, 0xf9, 0x0d, 0x2b, 0x35, 0xda, 0x86,
|
||||
0x2e, 0xcf, 0xe2, 0xce, 0x51, 0xe7, 0x64, 0x80, 0xbb, 0x3c, 0x43, 0x08, 0xd6, 0x34, 0x2f, 0x58,
|
||||
0xdc, 0x3d, 0x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0x75, 0x76, 0xcb, 0xc3, 0x88, 0x2f, 0x61, 0xe8, 0x17, 0xd8, 0xa7, 0x69, 0x2a, 0xea, 0x52, 0x93,
|
||||
0x54, 0x94, 0x63, 0x3e, 0xa9, 0xa5, 0x13, 0x5d, 0xb7, 0xa2, 0xc9, 0xbc, 0xe8, 0x99, 0xa3, 0x3e,
|
||||
0x6b, 0x33, 0xf1, 0x1e, 0x5d, 0x81, 0xa2, 0x1f, 0x00, 0xa9, 0x74, 0xca, 0xb2, 0x3a, 0x67, 0x44,
|
||||
0x28, 0x52, 0x57, 0x19, 0xd5, 0x2c, 0xde, 0xb0, 0xaa, 0x0f, 0xe6, 0x55, 0x47, 0x9e, 0x77, 0x39,
|
||||
0xba, 0xb6, 0x2c, 0xbc, 0x1b, 0x66, 0x5e, 0x2a, 0x87, 0xa0, 0x5f, 0xe1, 0xee, 0xb2, 0x1a, 0x51,
|
||||
0x29, 0x2d, 0xe3, 0xfe, 0xaa, 0x44, 0x17, 0x25, 0x47, 0x29, 0x2d, 0xf1, 0xde, 0xa2, 0xac, 0x41,
|
||||
0xd1, 0xb7, 0xb0, 0x2d, 0x59, 0x21, 0x6e, 0x58, 0x53, 0x9a, 0xc8, 0x2a, 0xde, 0x9b, 0x57, 0xc4,
|
||||
0x96, 0x13, 0x2a, 0x33, 0x94, 0xed, 0x10, 0x3d, 0x35, 0xf6, 0xce, 0x99, 0x66, 0xa4, 0x56, 0x4c,
|
||||
0xc6, 0x03, 0x2b, 0x10, 0x2f, 0x1a, 0xc5, 0x10, 0xae, 0x15, 0x93, 0xc6, 0xf8, 0xe1, 0x1b, 0x3d,
|
||||
0x81, 0x48, 0x31, 0xad, 0x79, 0x39, 0x51, 0x31, 0xd8, 0x79, 0x07, 0x0b, 0xbf, 0xe2, 0x47, 0x71,
|
||||
0xc3, 0x4b, 0xce, 0x61, 0x77, 0xf1, 0x07, 0xd1, 0x67, 0xd0, 0x77, 0xbb, 0xa2, 0xe2, 0xce, 0x51,
|
||||
0x6f, 0x59, 0xa6, 0xd9, 0xdc, 0x40, 0x4b, 0x30, 0x44, 0xcd, 0xec, 0x43, 0xd8, 0xac, 0xa4, 0xc8,
|
||||
0xea, 0x54, 0x93, 0xd7, 0x6c, 0xe6, 0x8f, 0x04, 0x78, 0xe8, 0x7b, 0x36, 0x43, 0x1f, 0xc1, 0x76,
|
||||
0x63, 0xbd, 0xb4, 0x39, 0x0d, 0x03, 0x3c, 0x0c, 0x9e, 0xb2, 0x60, 0xf2, 0x29, 0xec, 0xad, 0xda,
|
||||
0x7a, 0xb4, 0x07, 0xeb, 0x63, 0x21, 0x53, 0x77, 0xd8, 0x22, 0xec, 0x82, 0xe4, 0xdf, 0x2e, 0xec,
|
||||
0x9d, 0xad, 0x36, 0xcf, 0xb1, 0x7a, 0xcd, 0x2b, 0x52, 0x49, 0x5e, 0x50, 0x39, 0x23, 0x8a, 0xe9,
|
||||
0xba, 0x22, 0x8d, 0x51, 0x25, 0x73, 0x1e, 0x75, 0x62, 0x87, 0x86, 0x7a, 0xe5, 0x98, 0x23, 0x43,
|
||||
0x0c, 0x92, 0x9e, 0x86, 0x7e, 0x86, 0x87, 0x8a, 0xe9, 0xb7, 0x88, 0x51, 0x45, 0x24, 0x9b, 0xd4,
|
||||
0x39, 0x95, 0xae, 0x76, 0x5d, 0xab, 0x79, 0xac, 0x98, 0x5e, 0x21, 0x79, 0xa6, 0xb0, 0xe3, 0xda,
|
||||
0xd2, 0x11, 0x78, 0x97, 0xd6, 0x5a, 0x04, 0xc1, 0xac, 0xe0, 0x65, 0x90, 0x55, 0x71, 0xcf, 0x16,
|
||||
0xe1, 0xc3, 0x85, 0xf3, 0x53, 0x6b, 0xe1, 0xf4, 0x0c, 0xd9, 0x8b, 0x2a, 0x7c, 0x40, 0x57, 0xe2,
|
||||
0xc9, 0xdf, 0x1d, 0x38, 0x58, 0x3d, 0x05, 0xdd, 0x07, 0x50, 0x53, 0x21, 0x35, 0x29, 0x69, 0x11,
|
||||
0x5a, 0x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 0x9b, 0xc5, 0x17, 0xff, 0x07, 0x00,
|
||||
0x00, 0xff, 0xff, 0x84, 0x9f, 0x25, 0x5c, 0x71, 0x09, 0x00, 0x00,
|
||||
// 1139 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x56, 0x5b, 0x6f, 0x1c, 0x35,
|
||||
0x14, 0xd6, 0xee, 0xb6, 0xd9, 0xdd, 0xb3, 0xd9, 0x24, 0x35, 0x49, 0x3a, 0xa5, 0xb4, 0x09, 0x53,
|
||||
0x40, 0x2d, 0xea, 0x05, 0x0a, 0x42, 0xaa, 0x04, 0x12, 0xa1, 0x29, 0x6a, 0x45, 0xdb, 0x04, 0x87,
|
||||
0x80, 0x10, 0x42, 0x96, 0x3b, 0xe3, 0xdd, 0xb5, 0x32, 0x63, 0x4f, 0x6d, 0x4f, 0xd0, 0x3e, 0xf0,
|
||||
0xc4, 0x2f, 0xe0, 0x15, 0x89, 0x7f, 0xc3, 0x0f, 0x43, 0xbe, 0xcd, 0x5e, 0xfb, 0xe6, 0xf3, 0xf9,
|
||||
0x3b, 0x9f, 0xcf, 0xf8, 0x5c, 0x3c, 0x30, 0xcc, 0x64, 0x59, 0x52, 0x91, 0x3f, 0xac, 0x94, 0x34,
|
||||
0x12, 0x6d, 0x06, 0xd3, 0x59, 0xe9, 0x9f, 0x70, 0xf5, 0xd9, 0x25, 0x13, 0x06, 0x6d, 0x41, 0x9b,
|
||||
0xe7, 0x49, 0xeb, 0xb0, 0x75, 0xb7, 0x8f, 0xdb, 0x3c, 0x47, 0x08, 0xae, 0x18, 0x5e, 0xb2, 0xa4,
|
||||
0x7d, 0xd8, 0xba, 0xdb, 0xc1, 0x6e, 0x8d, 0x1e, 0x41, 0xb7, 0xa2, 0xd3, 0x42, 0xd2, 0x3c, 0xe9,
|
||||
0x1c, 0xb6, 0xee, 0x0e, 0x1e, 0xef, 0x3d, 0x9c, 0x17, 0x7b, 0x78, 0xea, 0x37, 0x71, 0x64, 0xa1,
|
||||
0x03, 0x18, 0xe4, 0xec, 0x92, 0x67, 0x8c, 0xd4, 0x39, 0xcf, 0x93, 0x2b, 0x4e, 0x1d, 0x3c, 0x74,
|
||||
0x9e, 0xf3, 0x3c, 0xfd, 0x1d, 0xba, 0xc1, 0x09, 0x7d, 0x08, 0x31, 0x32, 0x52, 0xd7, 0x4d, 0x28,
|
||||
0x83, 0x80, 0x9d, 0xd7, 0x3c, 0xb7, 0xe7, 0x07, 0xd3, 0x85, 0xb5, 0x72, 0xfe, 0x53, 0x6f, 0xe0,
|
||||
0xc8, 0x4a, 0xff, 0xdb, 0x80, 0x6e, 0x00, 0xad, 0xbe, 0x62, 0x6f, 0x6b, 0xa6, 0x0d, 0x31, 0xd3,
|
||||
0x8a, 0x45, 0xfd, 0x80, 0xfd, 0x34, 0xad, 0x18, 0x7a, 0x0d, 0x28, 0x84, 0xcb, 0xc5, 0x48, 0xaa,
|
||||
0x92, 0x1a, 0x2e, 0x45, 0x38, 0xea, 0x60, 0xf1, 0xa8, 0x63, 0xc7, 0x7b, 0x31, 0xa3, 0xe1, 0x6b,
|
||||
0xf9, 0x32, 0x84, 0x9e, 0xc1, 0x36, 0x17, 0xda, 0xd0, 0xa2, 0x20, 0x95, 0x92, 0x23, 0x5e, 0xb0,
|
||||
0x70, 0x6f, 0x1f, 0x2c, 0x8a, 0xbd, 0xf0, 0xa4, 0x53, 0xcf, 0xc1, 0x5b, 0x7c, 0xc1, 0x46, 0x3f,
|
||||
0xc2, 0x7b, 0x51, 0x86, 0x56, 0x55, 0xc1, 0x33, 0x1f, 0xd7, 0x15, 0x27, 0x75, 0xb8, 0x56, 0xea,
|
||||
0x68, 0xc6, 0xc3, 0x88, 0xaf, 0x60, 0xe8, 0x17, 0xd8, 0xa3, 0x59, 0x26, 0x6b, 0x61, 0x48, 0x26,
|
||||
0xc5, 0x88, 0x8f, 0x6b, 0xe5, 0x45, 0xaf, 0x3a, 0xd1, 0x74, 0x51, 0xf4, 0xc8, 0x53, 0x9f, 0xce,
|
||||
0x33, 0xf1, 0x2e, 0x5d, 0x83, 0xa2, 0x97, 0x80, 0x74, 0x36, 0x61, 0x79, 0x5d, 0x30, 0x22, 0x35,
|
||||
0xa9, 0xab, 0x9c, 0x1a, 0x96, 0x6c, 0x38, 0xd5, 0xdb, 0x8b, 0xaa, 0x67, 0x81, 0x77, 0x72, 0x76,
|
||||
0xee, 0x58, 0x78, 0x27, 0x7a, 0x9e, 0x68, 0x8f, 0xa0, 0x5f, 0xe1, 0xfa, 0xaa, 0x1a, 0xd1, 0x19,
|
||||
0x15, 0x49, 0x77, 0x5d, 0xa0, 0xcb, 0x92, 0x67, 0x19, 0x15, 0x78, 0x77, 0x59, 0xd6, 0xa2, 0xe8,
|
||||
0x3b, 0xd8, 0x52, 0xac, 0x94, 0x97, 0xac, 0x49, 0x4d, 0xcf, 0x29, 0xde, 0x5c, 0x54, 0xc4, 0x8e,
|
||||
0x13, 0x33, 0x33, 0x54, 0xf3, 0x26, 0x7a, 0x62, 0xcb, 0xbb, 0x60, 0x86, 0x91, 0x5a, 0x33, 0x95,
|
||||
0xf4, 0x9d, 0x40, 0xb2, 0x5c, 0x28, 0x96, 0x70, 0xae, 0x99, 0xb2, 0x85, 0x1f, 0xd7, 0xe8, 0x31,
|
||||
0xf4, 0x34, 0x33, 0x86, 0x8b, 0xb1, 0x4e, 0xc0, 0xf9, 0xed, 0x2f, 0x7d, 0x4a, 0xd8, 0xc5, 0x0d,
|
||||
0x0f, 0x7d, 0x0d, 0x9b, 0x4c, 0x51, 0xcd, 0x88, 0xaf, 0xb4, 0x64, 0xe0, 0xfc, 0x6e, 0x2c, 0xfa,
|
||||
0x3d, 0xb3, 0x0c, 0x5f, 0x9d, 0x78, 0xc0, 0x66, 0x86, 0x0f, 0xd6, 0x15, 0x77, 0x21, 0xb3, 0x8b,
|
||||
0x64, 0x73, 0x7d, 0xb0, 0x96, 0xf0, 0x52,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x8a, 0x91, 0xf0, 0x1a, 0x76, 0xf0, 0xd0, 0xc3, 0x67, 0x16, 0x7d, 0x91, 0x2f, 0xc5,
|
||||
0xdb, 0x5e, 0x8e, 0xd7, 0x3e, 0x79, 0x25, 0x15, 0x7c, 0x64, 0xdf, 0xbc, 0x5a, 0x15, 0xee, 0xde,
|
||||
0xfb, 0x78, 0x10, 0xb1, 0x73, 0x55, 0xa0, 0x7b, 0xb0, 0x53, 0x52, 0x41, 0xc7, 0xac, 0x64, 0xc2,
|
||||
0x90, 0x51, 0x41, 0xc7, 0xda, 0x25, 0xa0, 0x83, 0xb7, 0x67, 0xf8, 0xf7, 0x16, 0xb6, 0x3d, 0x2b,
|
||||
0xa4, 0x21, 0x1e, 0xce, 0xdd, 0x4b, 0xd1, 0xc3, 0x20, 0xa4, 0x79, 0xe5, 0x11, 0xf4, 0x15, 0x5c,
|
||||
0xcf, 0x26, 0x54, 0x8c, 0x19, 0x99, 0x93, 0xd4, 0x26, 0x3e, 0x00, 0x7d, 0xbc, 0xe7, 0xb7, 0x5f,
|
||||
0x35, 0xbb, 0x67, 0x76, 0x33, 0x7d, 0x05, 0x83, 0xb9, 0xa9, 0x85, 0x76, 0xa0, 0x53, 0x71, 0x11,
|
||||
0xae, 0xd4, 0x2e, 0xd1, 0x7d, 0x40, 0x95, 0x62, 0x9a, 0xa9, 0x4b, 0x46, 0x72, 0x6a, 0x28, 0xa9,
|
||||
0x0a, 0x1a, 0x6f, 0x74, 0x27, 0xee, 0x1c, 0x53, 0x43, 0x4f, 0x0b, 0x2a, 0xd2, 0xdf, 0x6c, 0x96,
|
||||
0xe2, 0xec, 0x5a, 0xa3, 0x96, 0x40, 0xb7, 0x64, 0x5a, 0xd3, 0x71, 0xac, 0xd4, 0x68, 0xda, 0xfb,
|
||||
0xaa, 0x26, 0x52, 0x30, 0x22, 0xea, 0xf2, 0x0d, 0x53, 0xf1, 0xbe, 0x1c, 0xf6, 0xda, 0x41, 0xe9,
|
||||
0x37, 0xd0, 0x8b, 0x93, 0x19, 0x7d, 0x3e, 0x37, 0xc3, 0xfd, 0x0c, 0xdc, 0x5b, 0x3b, 0xc3, 0x67,
|
||||
0x23, 0x3c, 0xfd, 0xa7, 0x05, 0xdd, 0x80, 0xda, 0x3f, 0x2c, 0x6e, 0x58, 0x19, 0x42, 0x73, 0x6b,
|
||||
0xf4, 0x6d, 0x33, 0xa4, 0x9b, 0x4e, 0x7a, 0xc7, 0xaf, 0x87, 0xed, 0xac, 0xa8, 0x1f, 0x66, 0xb5,
|
||||
0x6b, 0xb6, 0x27, 0xd0, 0x9b, 0x48, 0x6d, 0x9c, 0xbb, 0xff, 0xd9, 0xb8, 0xb5, 0xe8, 0xfe, 0x3c,
|
||||
0xec, 0x36, 0xc1, 0x45, 0x7a, 0xfa, 0x65, 0x6c, 0xb5, 0x39, 0xed, 0xb9, 0x5f, 0xb8, 0xb9, 0x42,
|
||||
0x9f, 0x3b, 0x30, 0x7d, 0x00, 0xdb, 0x4b, 0x92, 0xb6, 0x33, 0x9a, 0x18, 0x42, 0x67, 0x44, 0xfb,
|
||||
0xcd, 0x86, 0x8b, 0xe2, 0x8b, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x4b, 0x47, 0x7e, 0x96,
|
||||
0x0a, 0x00, 0x00,
|
||||
}
|
||||
|
||||
@@ -25,6 +25,8 @@ message Command {
|
||||
RemoveProfile remove_profile = 8;
|
||||
DeleteUser delete_user = 9;
|
||||
Settings settings = 10;
|
||||
EraseDevice erase_device = 11;
|
||||
DeviceLock device_lock = 12;
|
||||
}
|
||||
|
||||
message ScheduleOSUpdate {
|
||||
@@ -79,6 +81,17 @@ message InstallApplication {
|
||||
string change_management_state = 6;
|
||||
}
|
||||
|
||||
message EraseDevice {
|
||||
string pin = 1;
|
||||
bool preserve_data_plan = 2;
|
||||
}
|
||||
|
||||
message DeviceLock {
|
||||
string pin = 1;
|
||||
string message = 2;
|
||||
string phone_number = 3;
|
||||
}
|
||||
|
||||
message Settings {
|
||||
repeated Setting settings = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user