made avset fields in request and response plural as we accept arrays of avset objects in line with repo style

This commit is contained in:
John Carden 2024-01-12 18:53:53 +00:00
Родитель 28401a8f51
Коммит a8362648fc
2 изменённых файлов: 40 добавлений и 40 удалений

Просмотреть файл

@ -10,12 +10,12 @@ import "moc_common_common.proto";
import "moc_cloudagent_virtualmachine.proto";
message AvailabilitySetRequest {
repeated AvailabilitySet AvailabilitySet = 1;
repeated AvailabilitySet AvailabilitySets = 1;
Operation OperationType = 2;
}
message AvailabilitySetResponse {
repeated AvailabilitySet AvailabilitySet = 1;
repeated AvailabilitySet AvailabilitySets = 1;
google.protobuf.BoolValue Result = 2;
string Error = 3;
}

Просмотреть файл

@ -27,7 +27,7 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type AvailabilitySetRequest struct {
AvailabilitySet []*AvailabilitySet `protobuf:"bytes,1,rep,name=AvailabilitySet,proto3" json:"AvailabilitySet,omitempty"`
AvailabilitySets []*AvailabilitySet `protobuf:"bytes,1,rep,name=AvailabilitySets,proto3" json:"AvailabilitySets,omitempty"`
OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
@ -59,9 +59,9 @@ func (m *AvailabilitySetRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_AvailabilitySetRequest proto.InternalMessageInfo
func (m *AvailabilitySetRequest) GetAvailabilitySet() []*AvailabilitySet {
func (m *AvailabilitySetRequest) GetAvailabilitySets() []*AvailabilitySet {
if m != nil {
return m.AvailabilitySet
return m.AvailabilitySets
}
return nil
}
@ -74,7 +74,7 @@ func (m *AvailabilitySetRequest) GetOperationType() common.Operation {
}
type AvailabilitySetResponse struct {
AvailabilitySet []*AvailabilitySet `protobuf:"bytes,1,rep,name=AvailabilitySet,proto3" json:"AvailabilitySet,omitempty"`
AvailabilitySets []*AvailabilitySet `protobuf:"bytes,1,rep,name=AvailabilitySets,proto3" json:"AvailabilitySets,omitempty"`
Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -107,9 +107,9 @@ func (m *AvailabilitySetResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_AvailabilitySetResponse proto.InternalMessageInfo
func (m *AvailabilitySetResponse) GetAvailabilitySet() []*AvailabilitySet {
func (m *AvailabilitySetResponse) GetAvailabilitySets() []*AvailabilitySet {
if m != nil {
return m.AvailabilitySet
return m.AvailabilitySets
}
return nil
}
@ -237,38 +237,38 @@ func init() {
}
var fileDescriptor_f2024bad12ef389f = []byte{
// 485 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0xcb, 0x6e, 0xd3, 0x4e,
0x14, 0xc6, 0xff, 0x4e, 0x53, 0xff, 0xc9, 0x84, 0xa6, 0xd2, 0xa8, 0x6a, 0xad, 0x08, 0x50, 0xe4,
0x22, 0xc8, 0xca, 0x16, 0x86, 0x15, 0xbb, 0x96, 0x8b, 0xc4, 0x82, 0xdb, 0xb4, 0xea, 0x82, 0x4d,
0x35, 0x71, 0x26, 0xee, 0xa8, 0x33, 0x3e, 0xc3, 0x5c, 0x82, 0xba, 0xe6, 0x49, 0x78, 0x09, 0xde,
0x81, 0xb7, 0x42, 0x39, 0x36, 0x84, 0xb8, 0x54, 0xea, 0x86, 0x95, 0xed, 0x73, 0x7e, 0xf3, 0xcd,
0xe7, 0x73, 0x3e, 0xf2, 0x50, 0x43, 0x79, 0x5e, 0x2a, 0x08, 0x73, 0x5e, 0x89, 0xda, 0x9f, 0xf3,
0x25, 0x97, 0x8a, 0xcf, 0xa4, 0x92, 0xfe, 0xca, 0x09, 0x9f, 0x19, 0x0b, 0x1e, 0xe8, 0xb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9,
0x47, 0x06, 0x04, 0x00, 0x00,
// 486 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0xcb, 0x6e, 0xd3, 0x40,
0x14, 0x86, 0x71, 0x9a, 0x06, 0x32, 0xa1, 0x29, 0x1a, 0x55, 0xad, 0x15, 0x01, 0x8a, 0x5c, 0x04,
0x59, 0xd9, 0xc2, 0xb0, 0x62, 0xd7, 0x72, 0x91, 0x58, 0x70, 0xd1, 0xa4, 0xea, 0x82, 0x4d, 0x35,
0x71, 0x26, 0xee, 0xa8, 0x33, 0x3e, 0xc3, 0x5c, 0x82, 0xba, 0xe6, 0x51, 0x78, 0x09, 0x5e, 0x81,
0xb7, 0x42, 0x39, 0x36, 0x84, 0xb8, 0x54, 0xea, 0xa6, 0x2b, 0xdb, 0xe7, 0x7c, 0xf3, 0xcf, 0xf1,
0xf9, 0x7f, 0xf2, 0x44, 0x43, 0x71, 0x56, 0x28, 0x08, 0x73, 0x5e, 0x8a, 0xca, 0x9f, 0xf1, 0x25,
0x97, 0x8a, 0xcf, 0xa4, 0x92, 0xfe, 0xd2, 0x09, 0x9f, 0x1a, 0x0b, 0x1e, 0xe8, 0xbe, 0x86, 0x22,
0x5d, 0x53, 0x69, 0x01, 0xda, 0x04, 0x2f, 0x46, 0x8f, 0x4b, 0x80, 0x52, 0x89, 0x0c, 0xa9, 0x59,
0x58, 0x64, 0xdf, 0x2c, 0x37, 0x46, 0x58, 0x57, 0x9f, 0x1b, 0x1d, 0xa0, 0x3a, 0x68, 0x0d, 0x55,
0xf3, 0x68, 0x1a, 0x87, 0xad, 0x6b, 0x97, 0xd2, 0xfa, 0xc0, 0x95, 0xe6, 0xc5, 0xb9, 0xac, 0x44,
0x0d, 0x25, 0x3f, 0x22, 0xb2, 0x7f, 0xf4, 0xcf, 0x3c, 0x53, 0xe1, 0x99, 0xf8, 0x1a, 0x84, 0xf3,
0x74, 0x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15, 0x89, 0x8d, 0xe2, 0x7e, 0x01, 0x56, 0xbf,
0xe3, 0x41, 0xf9, 0x37, 0xa0, 0xb9, 0xac, 0x5e, 0x43, 0xa8, 0x7c, 0x7c, 0x77, 0x1c, 0x4d, 0x76,
0xd8, 0xb5, 0x7d, 0xfa, 0x99, 0xec, 0x36, 0x91, 0xfb, 0x50, 0x47, 0xce, 0xc5, 0xf7, 0xd0, 0x97,
0xa7, 0xd7, 0xf9, 0x72, 0xba, 0x81, 0xb3, 0xf6, 0xf1, 0xfc, 0x7b, 0x44, 0xf6, 0x5a, 0xbb, 0x3c,
0x5a, 0x09, 0xd0, 0x0b, 0xd2, 0x7b, 0x5f, 0x2d, 0xe1, 0x42, 0xd0, 0xf4, 0xa6, 0x9e, 0xd7, 0x21,
0x1f, 0x65, 0x37, 0xe6, 0xeb, 0xb8, 0x25, 0x77, 0x8e, 0x9f, 0x7f, 0xc9, 0x4a, 0xe9, 0xcf, 0xc3,
0x6c, 0xc5, 0x66, 0x5a, 0x16, 0x16, 0x1c, 0x2c, 0x7c, 0xa6, 0xa1, 0xc8, 0xac, 0x29, 0xb2, 0xb5,
0x58, 0xd6, 0x88, 0xcd, 0x7a, 0x18, 0x9b, 0x17, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xab, 0x6e,
0x92, 0x35, 0x0a, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.