diff --git a/rpc/cloudagent/compute/moc_cloudagent_virtualmachine.pb.go b/rpc/cloudagent/compute/moc_cloudagent_virtualmachine.pb.go index fa561779..9e447a02 100644 --- a/rpc/cloudagent/compute/moc_cloudagent_virtualmachine.pb.go +++ b/rpc/cloudagent/compute/moc_cloudagent_virtualmachine.pb.go @@ -54,6 +54,38 @@ func (VMType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_a65ab853cd24c92b, []int{0} } +// VirtualMachineDiskOperation selects whether the disks in a +// VirtualMachineDiskRequest are attached to or detached from the target VM. +// UNSPECIFIED is the proto3 default and must be rejected by the agent so a +// caller that omits the field can never trigger a silent attach or detach. +type VirtualMachineDiskOperation int32 + +const ( + VirtualMachineDiskOperation_VIRTUAL_MACHINE_DISK_OPERATION_UNSPECIFIED VirtualMachineDiskOperation = 0 + VirtualMachineDiskOperation_VIRTUAL_MACHINE_DISK_OPERATION_ATTACH VirtualMachineDiskOperation = 1 + VirtualMachineDiskOperation_VIRTUAL_MACHINE_DISK_OPERATION_DETACH VirtualMachineDiskOperation = 2 +) + +var VirtualMachineDiskOperation_name = map[int32]string{ + 0: "VIRTUAL_MACHINE_DISK_OPERATION_UNSPECIFIED", + 1: "VIRTUAL_MACHINE_DISK_OPERATION_ATTACH", + 2: "VIRTUAL_MACHINE_DISK_OPERATION_DETACH", +} + +var VirtualMachineDiskOperation_value = map[string]int32{ + "VIRTUAL_MACHINE_DISK_OPERATION_UNSPECIFIED": 0, + "VIRTUAL_MACHINE_DISK_OPERATION_ATTACH": 1, + "VIRTUAL_MACHINE_DISK_OPERATION_DETACH": 2, +} + +func (x VirtualMachineDiskOperation) String() string { + return proto.EnumName(VirtualMachineDiskOperation_name, int32(x)) +} + +func (VirtualMachineDiskOperation) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a65ab853cd24c92b, []int{1} +} + type VirtualMachineRequest struct { VirtualMachines []*VirtualMachine `protobuf:"bytes,1,rep,name=VirtualMachines,proto3" json:"VirtualMachines,omitempty"` OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"` @@ -1596,15 +1628,17 @@ func (m *VirtualMachineHostNodeIpAddress) GetHostNodeIpAddress() string { // VirtualMachineDiskRequest targets a single, existing virtual machine and the // specific disks to attach or detach. Unlike Invoke/CreateOrUpdate, it carries // only the disks being acted on (not the VM's full storage configuration), so -// the agent operates on exactly the passed disks. +// the agent operates on exactly the passed disks. The operation field selects +// the direction (attach or detach) for all disks in the request. type VirtualMachineDiskRequest struct { - GroupName string `protobuf:"bytes,1,opt,name=groupName,proto3" json:"groupName,omitempty"` - VmName string `protobuf:"bytes,2,opt,name=vmName,proto3" json:"vmName,omitempty"` - LocationName string `protobuf:"bytes,3,opt,name=locationName,proto3" json:"locationName,omitempty"` - Disks []*Disk `protobuf:"bytes,4,rep,name=disks,proto3" json:"disks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GroupName string `protobuf:"bytes,1,opt,name=groupName,proto3" json:"groupName,omitempty"` + VmName string `protobuf:"bytes,2,opt,name=vmName,proto3" json:"vmName,omitempty"` + LocationName string `protobuf:"bytes,3,opt,name=locationName,proto3" json:"locationName,omitempty"` + Disks []*Disk `protobuf:"bytes,4,rep,name=disks,proto3" json:"disks,omitempty"` + Operation VirtualMachineDiskOperation `protobuf:"varint,5,opt,name=operation,proto3,enum=moc.cloudagent.compute.VirtualMachineDiskOperation" json:"operation,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *VirtualMachineDiskRequest) Reset() { *m = VirtualMachineDiskRequest{} } @@ -1660,6 +1694,13 @@ func (m *VirtualMachineDiskRequest) GetDisks() []*Disk { return nil } +func (m *VirtualMachineDiskRequest) GetOperation() VirtualMachineDiskOperation { + if m != nil { + return m.Operation + } + return VirtualMachineDiskOperation_VIRTUAL_MACHINE_DISK_OPERATION_UNSPECIFIED +} + type VirtualMachineDiskResponse struct { VirtualMachine *VirtualMachine `protobuf:"bytes,1,opt,name=virtualMachine,proto3" json:"virtualMachine,omitempty"` Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` @@ -1717,6 +1758,7 @@ func (m *VirtualMachineDiskResponse) GetError() string { func init() { proto.RegisterEnum("moc.cloudagent.compute.VMType", VMType_name, VMType_value) + proto.RegisterEnum("moc.cloudagent.compute.VirtualMachineDiskOperation", VirtualMachineDiskOperation_name, VirtualMachineDiskOperation_value) proto.RegisterType((*VirtualMachineRequest)(nil), "moc.cloudagent.compute.VirtualMachineRequest") proto.RegisterType((*VirtualMachineResponse)(nil), "moc.cloudagent.compute.VirtualMachineResponse") proto.RegisterType((*SSHPublicKey)(nil), "moc.cloudagent.compute.SSHPublicKey") @@ -1753,140 +1795,145 @@ func init() { } var fileDescriptor_a65ab853cd24c92b = []byte{ - // 2117 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0x4d, 0x73, 0xe3, 0xc6, - 0xd1, 0x16, 0x29, 0x89, 0x12, 0x5b, 0xdf, 0xb3, 0xfa, 0x80, 0xf9, 0x6a, 0x65, 0x15, 0xd6, 0xe5, - 0x92, 0xf7, 0xb5, 0xc9, 0x35, 0xbd, 0x5e, 0xbb, 0x5c, 0x4e, 0x39, 0x94, 0xa8, 0x95, 0x94, 0x95, - 0x28, 0x66, 0x48, 0x69, 0xab, 0x54, 0xa9, 0x5a, 0x43, 0xc0, 0x88, 0x44, 0x44, 0x60, 0x60, 0xcc, - 0x40, 0x34, 0x9d, 0x5c, 0x92, 0x53, 0x72, 0xca, 0x4f, 0xc8, 0x39, 0x77, 0x27, 0xb7, 0x1c, 0x72, - 0xc9, 0x29, 0xd7, 0xfc, 0x85, 0x5c, 0xf3, 0x17, 0x52, 0x33, 0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xd4, 0xa5, 0x43, 0x40, 0x7e, 0xbf, - 0x93, 0xfa, 0xfb, 0x3c, 0xac, 0xbf, 0x36, 0x6d, 0x83, 0xf6, 0x59, 0x9c, 0xfe, 0x05, 0x6c, 0x12, - 0x5b, 0x00, 0x6b, 0x1e, 0xa7, 0x96, 0xc6, 0x4d, 0xfd, 0xc2, 0x31, 0x34, 0x2e, 0xd7, 0x45, 0xf0, - 0x66, 0x58, 0x45, 0xd3, 0x71, 0xd3, 0x22, 0x57, 0xd4, 0xf6, 0x45, 0xa9, 0x88, 0x47, 0xcf, 0xa8, - 0x3d, 0x9e, 0x10, 0x99, 0xc3, 0x7b, 0x56, 0x39, 0xe9, 0x8f, 0xc7, 0x53, 0x7a, 0x04, 0xe8, 0xb5, - 0x69, 0xe3, 0xb3, 0x38, 0xef, 0x8c, 0xe4, 0xdd, 0x92, 0xbc, 0xe3, 0x66, 0x9c, 0x02, 0x51, 0xff, - 0x31, 0x0b, 0xdb, 0x81, 0x60, 0xda, 0x9d, 0xd6, 0x80, 0x71, 0x62, 0xc5, 0x67, 0x52, 0x61, 0x31, - 0x88, 0xcb, 0x8d, 0xd4, 0x78, 0x6c, 0x0c, 0x9d, 0xc3, 0x92, 0x66, 0x58, 0xa6, 0x6d, 0x32, 0xee, - 0x6a, 0x9c, 0xba, 0x81, 0xb4, 0x7c, 0x90, 0xf5, 0x82, 0x63, 0x55, 0x8a, 0xe3, 0x78, 0xf4, 0x15, - 0xcc, 0x8a, 0x8a, 0x62, 0xca, 0xb4, 0xec, 0x87, 0x07, 0x10, 0xf9, 0x38, 0xf4, 0x1e, 0x80, 0xee, - 0x31, 0x4e, 0xad, 0xba, 0x50, 0xcc, 0x99, 0x48, 0x55, 0x47, 0xc6, 0x51, 0x1d, 0xc0, 0x91, 0x0a, - 0x7b, 0x4b, 0x06, 0x4c, 0x99, 0x95, 0x73, 0xbd, 0x97, 0x35, 0x57, 0x54, 0x8e, 0x71, 0x04, 0x87, - 0x9e, 0x09, 0xc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, - 0xf0, 0x5d, 0x17, 0xa4, 0xdc, 0x7d, 0xf2, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x95, 0xc0, 0x3b, - 0x30, 0xa7, 0x1c, 0x00, 0x00, + // 2205 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xcf, 0x72, 0xe3, 0xc6, + 0xf1, 0x16, 0x28, 0x89, 0x12, 0x5b, 0x7f, 0x56, 0x9a, 0x95, 0xb4, 0x30, 0xbd, 0x2b, 0xab, 0xb0, + 0xfe, 0xb9, 0xb4, 0xfb, 0xb3, 0xa9, 0x35, 0x77, 0xbd, 0x76, 0xb9, 0x9c, 0x72, 0x28, 0x91, 0x2b, + 0x31, 0x2b, 0x91, 0xf4, 0x90, 0xd2, 0x56, 0xa9, 0x52, 0x25, 0x43, 0xc0, 0x88, 0x42, 0x44, 0x60, + 0x60, 0x0c, 0x20, 0x99, 0x4e, 0x2e, 0xc9, 0x29, 0x39, 0xe5, 0x11, 0x72, 0xc8, 0x2b, 0x38, 0xb9, + 0xe5, 0x90, 0x7b, 0x0e, 0xb9, 0xe4, 0x15, 0x72, 0xcd, 0x0b, 0xe4, 0x90, 0x9a, 0x01, 0x40, 0xfc, + 0x21, 0xa0, 0x50, 0x65, 0xef, 0x21, 0x27, 0x12, 0xd3, 0xfd, 0x7d, 0xd3, 0xe8, 0xe9, 0xfe, 0x66, + 0x06, 0xf0, 0xd8, 0xa4, 0xda, 0x99, 0x36, 0xa0, 0x9e, 0xae, 0xf6, 0x89, 0xe5, 0x9e, 0x5d, 0x1b, + 0x8e, 0xeb, 0xa9, 0x03, 0x53, 0xd5, 0x2e, 0x0d, 0x8b, 0x54, 0x6c, 0x87, 0xba, 0x14, 0x6d, 0x98, + 0x54, 0xab, 0x44, 0x4e, 0x15, 0x8d, 0x9a, 0xb6, 0xe7, 0x92, 0xf2, 0x66, 0x9f, 0xd2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f, 0xdb, 0x79, 0xaf, 0x9e, 0x8e, 0x04, + 0xc7, 0xb0, 0xca, 0x6f, 0x24, 0x58, 0x3d, 0x66, 0xc4, 0x49, 0xf2, 0x6f, 0xc1, 0xbc, 0xc7, 0x88, + 0x13, 0x15, 0x44, 0x50, 0x39, 0xa3, 0x51, 0xee, 0x61, 0xab, 0x8c, 0xdd, 0x50, 0x47, 0x17, 0x35, + 0x31, 0xf2, 0x08, 0x47, 0xd1, 0x13, 0x9f, 0xc3, 0xe5, 0x4d, 0x37, 0x2d, 0x9a, 0x6e, 0x49, 0x44, + 0xc8, 0x67, 0xe3, 0x4d, 0x86, 0x47, 0x66, 0x9e, 0x2e, 0x5c, 0xef, 0x24, 0x43, 0xd8, 0x04, 0xd0, + 0x0d, 0xa6, 0x9e, 0x0f, 0x08, 0xae, 0x77, 0x44, 0x10, 0xf3, 0x38, 0x36, 0x82, 0x10, 0xcc, 0xd8, + 0xd4, 0xf1, 0x7b, 0x66, 0x09, 0x8b, 0xff, 0xca, 0x29, 0xa0, 0x43, 0xc3, 0xf2, 0xbe, 0x4d, 0x32, + 0xd5, 0xe1, 0x51, 0x80, 0xeb, 0x04, 0xb1, 0xd5, 0x3c, 0xf7, 0x92, 0x58, 0xae, 0xa1, 0x09, 0x87, + 0x80, 0xfc, 0x76, 0x27, 0xe5, 0x77, 0x05, 0x58, 0x7b, 0x63, 0x58, 0x3a, 0xbd, 0x61, 0x49, 0xfa, + 0x97, 0xb0, 0x41, 0x2c, 0x0e, 0xac, 0x79, 0x2e, 0x35, 0x55, 0xd7, 0xd0, 0x8e, 0x6d, 0x5d, 0x75, + 0xc5, 0xba, 0x70, 0xde, 0x1c, 0x2b, 0x6f, 0x3a, 0xd7, 0x30, 0xc9, 0x29, 0xb5, 0x7c, 0x51, 0x2a, + 0xe1, 0xd1, 0x33, 0xea, 0x8d, 0x27, 0x44, 0xe4, 0xf0, 0x96, 0x55, 0x4e, 0xfb, 0xe3, 0xf1, 0x94, + 0xee, 0x03, 0x7a, 0x63, 0x58, 0xf8, 0x28, 0xc9, 0x3b, 0x23, 0x78, 0x1f, 0x08, 0xde, 0x71, 0x33, + 0xce, 0x80, 0x28, 0x7f, 0x9b, 0x85, 0x87, 0x81, 0x60, 0x5a, 0xfd, 0xee, 0x90, 0xb9, 0xc4, 0x4c, + 0xce, 0xa4, 0xc0, 0x62, 0x10, 0x97, 0x13, 0xab, 0xf1, 0xc4, 0x18, 0x6a, 0xc3, 0x92, 0xaa, 0x9b, + 0x86, 0x65, 0x30, 0xd7, 0x51, 0x5d, 0xea, 0x04, 0xd2, 0xf2, 0x24, 0xef, 0x05, 0xc7, 0xaa, 0x14, + 0x27, 0xf1, 0xe8, 0x4b, 0x98, 0xe5, 0x15, 0xc5, 0xe4, 0x69, 0xd1, 0x0f, 0x77, 0x20, 0xf2, 0x71, + 0xe8, 0x7d, 0x00, 0xcd, 0x63, 0x2e, 0x35, 0xeb, 0x5c, 0x31, 0x67, 0x62, 0x55, 0x1d, 0x1b, 0x47, + 0x75, 0x00, 0x5b, 0x28, 0xec, 0x15, 0x19, 0x32, 0x79, 0x56, 0xcc, 0xf5, 0x7e, 0xde, 0x5c, 0x71, + 0x39, 0xc6, 0x31, 0x1c, 0x7a, 0xc6, 0x15, 0x4f, 0xf4, 0x46, 0x51, 0xf4, 0x86, 0x1c, 0xdf, 0x90, + 0xc2, 0xa4, 0x8a, 0x36, 0x09, 0xfc, 0xd0, 0x57, 0xb0, 0x4a, 0xd9, 0x2e, 0xa5, 0x2e, 0x7f, 0x5f, + 0xbb, 0x61, 0xf5, 0x0d, 0x8b, 0xc8, 0x73, 0x02, 0xfc, 0x38, 0x0b, 0x9c, 0x72, 0xc5, 0xe3, 0x68, + 0x74, 0x0a, 0x68, 0x30, 0xd6, 0x2f, 0xf2, 0xbc, 0x58, 0x87, 0xa7, 0x79, 0xaf, 0x34, 0xde, 0x61, + 0x38, 0x83, 0x05, 0x7d, 0x0d, 0x6b, 0x37, 0x19, 0xed, 0x22, 0x97, 0x04, 0xfb, 0x87, 0x79, 0xec, + 0x59, 0x2d, 0x86, 0x33, 0x99, 0x78, 0x39, 0xdb, 0x0e, 0xfd, 0x76, 0x98, 0xe4, 0x87, 0x58, 0x39, + 0x77, 0xc6, 0xcc, 0x38, 0x03, 0xa2, 0x7c, 0x5f, 0x80, 0xf5, 0x03, 0xd5, 0xd1, 0x6f, 0x54, 0x27, + 0xb5, 0x2f, 0x3d, 0x87, 0xe2, 0xc9, 0x51, 0xd7, 0xf8, 0xce, 0xaf, 0xe0, 0xe5, 0xea, 0xbb, 0x19, + 0xfb, 0x1e, 0x37, 0xfb, 0x0b, 0xe5, 0xbb, 0xa2, 0x9f, 0x84, 0x65, 0x24, 0x80, 0x7e, 0x55, 0x3f, + 0xca, 0x00, 0xee, 0x8d, 0x9c, 0x70, 0x0c, 0x80, 0xce, 0xa0, 0xac, 0x0f, 0x2d, 0xd5, 0x34, 0xb4, + 0x23, 0x62, 0x52, 0x67, 0x98, 0xa5, 0x02, 0xef, 0x09, 0xba, 0x7a, 0xae, 0x1b, 0xbe, 0x85, 0x02, + 0xbd, 0x02, 0x74, 0x9d, 0x08, 0x64, 0xbf, 0x73, 0xcc, 0xe4, 0x19, 0x51, 0xc8, 0x1b, 0x19, 0x71, + 0xee, 0x77, 0x8e, 0x71, 0x06, 0x42, 0xf9, 0x02, 0x16, 0x8f, 0xc9, 0x85, 0xd1, 0x25, 0x2e, 0x2f, + 0x3a, 0x86, 0x3e, 0x84, 0x55, 0x46, 0x34, 0xcf, 0x21, 0xbc, 0xcc, 0x1a, 0x42, 0xf4, 0xf4, 0x40, + 0x03, 0xc7, 0x0d, 0xca, 0x9f, 0x25, 0x58, 0xef, 0xf2, 0x51, 0xc3, 0x4d, 0xc5, 0xf7, 0x10, 0x4a, + 0xbe, 0x64, 0xf6, 0x3a, 0x47, 0x01, 0x3e, 0x1a, 0x40, 0x07, 0xb0, 0xe8, 0xc5, 0x66, 0x0d, 0xf2, + 0x9b, 0xdb, 0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0x68, 0x0e, 0x65, 0xf4, 0xc2, 0xdd, 0x31, 0xa9, + 0xb6, 0xe3, 0xd8, 0xda, 0x4e, 0xc4, 0xb7, 0x13, 0xf0, 0x9d, 0x17, 0x85, 0x3c, 0x3e, 0xff, 0x4f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x77, 0x1d, 0xc6, 0xa4, 0x2a, 0x1d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1909,14 +1956,11 @@ type VirtualMachineAgentClient interface { GetHyperVVmId(ctx context.Context, in *VirtualMachine, opts ...grpc.CallOption) (*VirtualMachineHyperVVmId, error) GetHostNodeName(ctx context.Context, in *VirtualMachine, opts ...grpc.CallOption) (*VirtualMachineHostNodeName, error) GetHostNodeIpAddress(ctx context.Context, in *VirtualMachine, opts ...grpc.CallOption) (*VirtualMachineHostNodeIpAddress, error) - // AttachDisk attaches the specified disks to an existing virtual machine. - // The agent must verify the VM exists before proceeding; it must not create - // the VM. Only the disks in the request are attached. - AttachDisk(ctx context.Context, in *VirtualMachineDiskRequest, opts ...grpc.CallOption) (*VirtualMachineDiskResponse, error) - // DetachDisk detaches the specified disks from an existing virtual machine. - // The agent must verify the VM exists before proceeding. Only the disks in - // the request are detached. - DetachDisk(ctx context.Context, in *VirtualMachineDiskRequest, opts ...grpc.CallOption) (*VirtualMachineDiskResponse, error) + // UpdateDisks attaches or detaches the specified disks on an existing + // virtual machine, based on the request's operation field. The agent must + // verify the VM exists before proceeding; it must not create the VM. Only + // the disks in the request are acted on. + UpdateDisks(ctx context.Context, in *VirtualMachineDiskRequest, opts ...grpc.CallOption) (*VirtualMachineDiskResponse, error) } type virtualMachineAgentClient struct { @@ -1990,18 +2034,9 @@ func (c *virtualMachineAgentClient) GetHostNodeIpAddress(ctx context.Context, in return out, nil } -func (c *virtualMachineAgentClient) AttachDisk(ctx context.Context, in *VirtualMachineDiskRequest, opts ...grpc.CallOption) (*VirtualMachineDiskResponse, error) { +func (c *virtualMachineAgentClient) UpdateDisks(ctx context.Context, in *VirtualMachineDiskRequest, opts ...grpc.CallOption) (*VirtualMachineDiskResponse, error) { out := new(VirtualMachineDiskResponse) - err := c.cc.Invoke(ctx, "/moc.cloudagent.compute.VirtualMachineAgent/AttachDisk", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *virtualMachineAgentClient) DetachDisk(ctx context.Context, in *VirtualMachineDiskRequest, opts ...grpc.CallOption) (*VirtualMachineDiskResponse, error) { - out := new(VirtualMachineDiskResponse) - err := c.cc.Invoke(ctx, "/moc.cloudagent.compute.VirtualMachineAgent/DetachDisk", in, out, opts...) + err := c.cc.Invoke(ctx, "/moc.cloudagent.compute.VirtualMachineAgent/UpdateDisks", in, out, opts...) if err != nil { return nil, err } @@ -2018,14 +2053,11 @@ type VirtualMachineAgentServer interface { GetHyperVVmId(context.Context, *VirtualMachine) (*VirtualMachineHyperVVmId, error) GetHostNodeName(context.Context, *VirtualMachine) (*VirtualMachineHostNodeName, error) GetHostNodeIpAddress(context.Context, *VirtualMachine) (*VirtualMachineHostNodeIpAddress, error) - // AttachDisk attaches the specified disks to an existing virtual machine. - // The agent must verify the VM exists before proceeding; it must not create - // the VM. Only the disks in the request are attached. - AttachDisk(context.Context, *VirtualMachineDiskRequest) (*VirtualMachineDiskResponse, error) - // DetachDisk detaches the specified disks from an existing virtual machine. - // The agent must verify the VM exists before proceeding. Only the disks in - // the request are detached. - DetachDisk(context.Context, *VirtualMachineDiskRequest) (*VirtualMachineDiskResponse, error) + // UpdateDisks attaches or detaches the specified disks on an existing + // virtual machine, based on the request's operation field. The agent must + // verify the VM exists before proceeding; it must not create the VM. Only + // the disks in the request are acted on. + UpdateDisks(context.Context, *VirtualMachineDiskRequest) (*VirtualMachineDiskResponse, error) } // UnimplementedVirtualMachineAgentServer can be embedded to have forward compatible implementations. @@ -2053,11 +2085,8 @@ func (*UnimplementedVirtualMachineAgentServer) GetHostNodeName(ctx context.Conte func (*UnimplementedVirtualMachineAgentServer) GetHostNodeIpAddress(ctx context.Context, req *VirtualMachine) (*VirtualMachineHostNodeIpAddress, error) { return nil, status.Errorf(codes.Unimplemented, "method GetHostNodeIpAddress not implemented") } -func (*UnimplementedVirtualMachineAgentServer) AttachDisk(ctx context.Context, req *VirtualMachineDiskRequest) (*VirtualMachineDiskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AttachDisk not implemented") -} -func (*UnimplementedVirtualMachineAgentServer) DetachDisk(ctx context.Context, req *VirtualMachineDiskRequest) (*VirtualMachineDiskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DetachDisk not implemented") +func (*UnimplementedVirtualMachineAgentServer) UpdateDisks(ctx context.Context, req *VirtualMachineDiskRequest) (*VirtualMachineDiskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateDisks not implemented") } func RegisterVirtualMachineAgentServer(s *grpc.Server, srv VirtualMachineAgentServer) { @@ -2190,38 +2219,20 @@ func _VirtualMachineAgent_GetHostNodeIpAddress_Handler(srv interface{}, ctx cont return interceptor(ctx, in, info, handler) } -func _VirtualMachineAgent_AttachDisk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VirtualMachineDiskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VirtualMachineAgentServer).AttachDisk(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/moc.cloudagent.compute.VirtualMachineAgent/AttachDisk", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VirtualMachineAgentServer).AttachDisk(ctx, req.(*VirtualMachineDiskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VirtualMachineAgent_DetachDisk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _VirtualMachineAgent_UpdateDisks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(VirtualMachineDiskRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(VirtualMachineAgentServer).DetachDisk(ctx, in) + return srv.(VirtualMachineAgentServer).UpdateDisks(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/moc.cloudagent.compute.VirtualMachineAgent/DetachDisk", + FullMethod: "/moc.cloudagent.compute.VirtualMachineAgent/UpdateDisks", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VirtualMachineAgentServer).DetachDisk(ctx, req.(*VirtualMachineDiskRequest)) + return srv.(VirtualMachineAgentServer).UpdateDisks(ctx, req.(*VirtualMachineDiskRequest)) } return interceptor(ctx, in, info, handler) } @@ -2259,12 +2270,8 @@ var _VirtualMachineAgent_serviceDesc = grpc.ServiceDesc{ Handler: _VirtualMachineAgent_GetHostNodeIpAddress_Handler, }, { - MethodName: "AttachDisk", - Handler: _VirtualMachineAgent_AttachDisk_Handler, - }, - { - MethodName: "DetachDisk", - Handler: _VirtualMachineAgent_DetachDisk_Handler, + MethodName: "UpdateDisks", + Handler: _VirtualMachineAgent_UpdateDisks_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/rpc/cloudagent/compute/virtualmachine/moc_cloudagent_virtualmachine.proto b/rpc/cloudagent/compute/virtualmachine/moc_cloudagent_virtualmachine.proto index 0be658fd..f387fcd1 100644 --- a/rpc/cloudagent/compute/virtualmachine/moc_cloudagent_virtualmachine.proto +++ b/rpc/cloudagent/compute/virtualmachine/moc_cloudagent_virtualmachine.proto @@ -189,15 +189,27 @@ message VirtualMachineHostNodeIpAddress { string hostNodeIpAddress = 1; } +// VirtualMachineDiskOperation selects whether the disks in a +// VirtualMachineDiskRequest are attached to or detached from the target VM. +// UNSPECIFIED is the proto3 default and must be rejected by the agent so a +// caller that omits the field can never trigger a silent attach or detach. +enum VirtualMachineDiskOperation { + VIRTUAL_MACHINE_DISK_OPERATION_UNSPECIFIED = 0; + VIRTUAL_MACHINE_DISK_OPERATION_ATTACH = 1; + VIRTUAL_MACHINE_DISK_OPERATION_DETACH = 2; +} + // VirtualMachineDiskRequest targets a single, existing virtual machine and the // specific disks to attach or detach. Unlike Invoke/CreateOrUpdate, it carries // only the disks being acted on (not the VM's full storage configuration), so -// the agent operates on exactly the passed disks. +// the agent operates on exactly the passed disks. The operation field selects +// the direction (attach or detach) for all disks in the request. message VirtualMachineDiskRequest { string groupName = 1; string vmName = 2; string locationName = 3; repeated Disk disks = 4; + VirtualMachineDiskOperation operation = 5; } message VirtualMachineDiskResponse { @@ -218,13 +230,9 @@ service VirtualMachineAgent { rpc GetHostNodeName(VirtualMachine) returns (VirtualMachineHostNodeName) {} rpc GetHostNodeIpAddress(VirtualMachine) returns (VirtualMachineHostNodeIpAddress) {} - // AttachDisk attaches the specified disks to an existing virtual machine. - // The agent must verify the VM exists before proceeding; it must not create - // the VM. Only the disks in the request are attached. - rpc AttachDisk(VirtualMachineDiskRequest) returns (VirtualMachineDiskResponse) {} - - // DetachDisk detaches the specified disks from an existing virtual machine. - // The agent must verify the VM exists before proceeding. Only the disks in - // the request are detached. - rpc DetachDisk(VirtualMachineDiskRequest) returns (VirtualMachineDiskResponse) {} + // UpdateDisks attaches or detaches the specified disks on an existing + // virtual machine, based on the request's operation field. The agent must + // verify the VM exists before proceeding; it must not create the VM. Only + // the disks in the request are acted on. + rpc UpdateDisks(VirtualMachineDiskRequest) returns (VirtualMachineDiskResponse) {} } \ No newline at end of file