diff --git a/api/v1/tenant.pb.go b/api/v1/tenant.pb.go index dad60dd..416fdaf 100644 --- a/api/v1/tenant.pb.go +++ b/api/v1/tenant.pb.go @@ -352,6 +352,53 @@ func (x *TenantGetHistoryRequest) GetAt() *timestamppb.Timestamp { return nil } +type TenantListHistoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *TenantListHistoryRequest) Reset() { + *x = TenantListHistoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_tenant_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TenantListHistoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TenantListHistoryRequest) ProtoMessage() {} + +func (x *TenantListHistoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_tenant_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TenantListHistoryRequest.ProtoReflect.Descriptor instead. +func (*TenantListHistoryRequest) Descriptor() ([]byte, []int) { + return file_v1_tenant_proto_rawDescGZIP(), []int{6} +} + +func (x *TenantListHistoryRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + type TenantFindRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -366,7 +413,7 @@ type TenantFindRequest struct { func (x *TenantFindRequest) Reset() { *x = TenantFindRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_tenant_proto_msgTypes[6] + mi := &file_v1_tenant_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -379,7 +426,7 @@ func (x *TenantFindRequest) String() string { func (*TenantFindRequest) ProtoMessage() {} func (x *TenantFindRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_tenant_proto_msgTypes[6] + mi := &file_v1_tenant_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -392,7 +439,7 @@ func (x *TenantFindRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TenantFindRequest.ProtoReflect.Descriptor instead. func (*TenantFindRequest) Descriptor() ([]byte, []int) { - return file_v1_tenant_proto_rawDescGZIP(), []int{6} + return file_v1_tenant_proto_rawDescGZIP(), []int{7} } func (x *TenantFindRequest) GetId() *wrapperspb.StringValue { @@ -434,7 +481,7 @@ type TenantResponse struct { func (x *TenantResponse) Reset() { *x = TenantResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_tenant_proto_msgTypes[7] + mi := &file_v1_tenant_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -447,7 +494,7 @@ func (x *TenantResponse) String() string { func (*TenantResponse) ProtoMessage() {} func (x *TenantResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_tenant_proto_msgTypes[7] + mi := &file_v1_tenant_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -460,7 +507,7 @@ func (x *TenantResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TenantResponse.ProtoReflect.Descriptor instead. func (*TenantResponse) Descriptor() ([]byte, []int) { - return file_v1_tenant_proto_rawDescGZIP(), []int{7} + return file_v1_tenant_proto_rawDescGZIP(), []int{8} } func (x *TenantResponse) GetTenant() *Tenant { @@ -483,7 +530,7 @@ type TenantListResponse struct { func (x *TenantListResponse) Reset() { *x = TenantListResponse{} if protoimpl.UnsafeEnabled { - mi := &file_v1_tenant_proto_msgTypes[8] + mi := &file_v1_tenant_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -496,7 +543,7 @@ func (x *TenantListResponse) String() string { func (*TenantListResponse) ProtoMessage() {} func (x *TenantListResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_tenant_proto_msgTypes[8] + mi := &file_v1_tenant_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -509,7 +556,7 @@ func (x *TenantListResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TenantListResponse.ProtoReflect.Descriptor instead. func (*TenantListResponse) Descriptor() ([]byte, []int) { - return file_v1_tenant_proto_rawDescGZIP(), []int{8} + return file_v1_tenant_proto_rawDescGZIP(), []int{9} } func (x *TenantListResponse) GetTenants() []*Tenant { @@ -570,64 +617,71 @@ var file_v1_tenant_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x02, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x02, 0x61, 0x74, 0x22, 0xa1, 0x02, 0x0a, 0x11, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x46, - 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x12, 0x48, - 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x46, - 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x34, 0x0a, 0x0e, 0x54, 0x65, 0x6e, 0x61, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x74, 0x65, - 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x22, 0x6a, - 0x0a, 0x12, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x07, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, - 0x74, 0x52, 0x07, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x65, - 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, - 0x08, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, - 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x32, 0xdb, 0x02, 0x0a, 0x0d, 0x54, - 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x06, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x17, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, - 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x12, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x17, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x12, 0x17, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x2f, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x14, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, - 0x6e, 0x61, 0x6e, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, - 0x12, 0x1b, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x47, 0x65, 0x74, 0x48, - 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x35, 0x0a, 0x04, 0x46, 0x69, 0x6e, 0x64, 0x12, 0x15, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x16, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x67, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x2e, - 0x76, 0x31, 0x42, 0x0b, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x65, - 0x74, 0x61, 0x6c, 0x2d, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, - 0x64, 0x61, 0x74, 0x61, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x56, 0x58, - 0x58, 0xaa, 0x02, 0x02, 0x56, 0x31, 0xca, 0x02, 0x02, 0x56, 0x31, 0xe2, 0x02, 0x0e, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x02, 0x56, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x02, 0x61, 0x74, 0x22, 0x2a, 0x0a, 0x18, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4c, 0x69, + 0x73, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x22, 0xa1, 0x02, 0x0a, 0x11, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x69, + 0x6e, 0x67, 0x52, 0x06, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x12, 0x48, 0x0a, 0x0b, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0x34, 0x0a, 0x0e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, + 0x6e, 0x74, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x22, 0x6a, 0x0a, 0x12, 0x54, 0x65, + 0x6e, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x24, 0x0a, 0x07, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x07, 0x74, + 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, + 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x08, 0x6e, 0x65, 0x78, + 0x74, 0x50, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6e, 0x65, 0x78, + 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x32, 0xa0, 0x03, 0x0a, 0x0d, 0x54, 0x65, 0x6e, 0x61, 0x6e, + 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x12, 0x17, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x35, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x17, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x12, 0x17, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, + 0x03, 0x47, 0x65, 0x74, 0x12, 0x14, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, + 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1b, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, + 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x46, 0x69, 0x6e, 0x64, 0x12, 0x15, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x16, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x67, 0x0a, 0x06, 0x63, 0x6f, 0x6d, + 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, + 0x65, 0x74, 0x61, 0x6c, 0x2d, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x6d, 0x61, 0x73, 0x74, 0x65, + 0x72, 0x64, 0x61, 0x74, 0x61, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x56, + 0x58, 0x58, 0xaa, 0x02, 0x02, 0x56, 0x31, 0xca, 0x02, 0x02, 0x56, 0x31, 0xe2, 0x02, 0x0e, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x02, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -642,37 +696,38 @@ func file_v1_tenant_proto_rawDescGZIP() []byte { return file_v1_tenant_proto_rawDescData } -var file_v1_tenant_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_v1_tenant_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_v1_tenant_proto_goTypes = []interface{}{ - (*Tenant)(nil), // 0: v1.Tenant - (*TenantCreateRequest)(nil), // 1: v1.TenantCreateRequest - (*TenantUpdateRequest)(nil), // 2: v1.TenantUpdateRequest - (*TenantDeleteRequest)(nil), // 3: v1.TenantDeleteRequest - (*TenantGetRequest)(nil), // 4: v1.TenantGetRequest - (*TenantGetHistoryRequest)(nil), // 5: v1.TenantGetHistoryRequest - (*TenantFindRequest)(nil), // 6: v1.TenantFindRequest - (*TenantResponse)(nil), // 7: v1.TenantResponse - (*TenantListResponse)(nil), // 8: v1.TenantListResponse - nil, // 9: v1.TenantFindRequest.AnnotationsEntry - (*Meta)(nil), // 10: v1.Meta - (*QuotaSet)(nil), // 11: v1.QuotaSet - (*IAMConfig)(nil), // 12: v1.IAMConfig - (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp - (*wrapperspb.StringValue)(nil), // 14: google.protobuf.StringValue - (*Paging)(nil), // 15: v1.Paging + (*Tenant)(nil), // 0: v1.Tenant + (*TenantCreateRequest)(nil), // 1: v1.TenantCreateRequest + (*TenantUpdateRequest)(nil), // 2: v1.TenantUpdateRequest + (*TenantDeleteRequest)(nil), // 3: v1.TenantDeleteRequest + (*TenantGetRequest)(nil), // 4: v1.TenantGetRequest + (*TenantGetHistoryRequest)(nil), // 5: v1.TenantGetHistoryRequest + (*TenantListHistoryRequest)(nil), // 6: v1.TenantListHistoryRequest + (*TenantFindRequest)(nil), // 7: v1.TenantFindRequest + (*TenantResponse)(nil), // 8: v1.TenantResponse + (*TenantListResponse)(nil), // 9: v1.TenantListResponse + nil, // 10: v1.TenantFindRequest.AnnotationsEntry + (*Meta)(nil), // 11: v1.Meta + (*QuotaSet)(nil), // 12: v1.QuotaSet + (*IAMConfig)(nil), // 13: v1.IAMConfig + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*wrapperspb.StringValue)(nil), // 15: google.protobuf.StringValue + (*Paging)(nil), // 16: v1.Paging } var file_v1_tenant_proto_depIdxs = []int32{ - 10, // 0: v1.Tenant.meta:type_name -> v1.Meta - 11, // 1: v1.Tenant.default_quotas:type_name -> v1.QuotaSet - 11, // 2: v1.Tenant.quotas:type_name -> v1.QuotaSet - 12, // 3: v1.Tenant.iam_config:type_name -> v1.IAMConfig + 11, // 0: v1.Tenant.meta:type_name -> v1.Meta + 12, // 1: v1.Tenant.default_quotas:type_name -> v1.QuotaSet + 12, // 2: v1.Tenant.quotas:type_name -> v1.QuotaSet + 13, // 3: v1.Tenant.iam_config:type_name -> v1.IAMConfig 0, // 4: v1.TenantCreateRequest.tenant:type_name -> v1.Tenant 0, // 5: v1.TenantUpdateRequest.tenant:type_name -> v1.Tenant - 13, // 6: v1.TenantGetHistoryRequest.at:type_name -> google.protobuf.Timestamp - 14, // 7: v1.TenantFindRequest.id:type_name -> google.protobuf.StringValue - 14, // 8: v1.TenantFindRequest.name:type_name -> google.protobuf.StringValue - 15, // 9: v1.TenantFindRequest.paging:type_name -> v1.Paging - 9, // 10: v1.TenantFindRequest.annotations:type_name -> v1.TenantFindRequest.AnnotationsEntry + 14, // 6: v1.TenantGetHistoryRequest.at:type_name -> google.protobuf.Timestamp + 15, // 7: v1.TenantFindRequest.id:type_name -> google.protobuf.StringValue + 15, // 8: v1.TenantFindRequest.name:type_name -> google.protobuf.StringValue + 16, // 9: v1.TenantFindRequest.paging:type_name -> v1.Paging + 10, // 10: v1.TenantFindRequest.annotations:type_name -> v1.TenantFindRequest.AnnotationsEntry 0, // 11: v1.TenantResponse.tenant:type_name -> v1.Tenant 0, // 12: v1.TenantListResponse.tenants:type_name -> v1.Tenant 1, // 13: v1.TenantService.Create:input_type -> v1.TenantCreateRequest @@ -680,15 +735,17 @@ var file_v1_tenant_proto_depIdxs = []int32{ 3, // 15: v1.TenantService.Delete:input_type -> v1.TenantDeleteRequest 4, // 16: v1.TenantService.Get:input_type -> v1.TenantGetRequest 5, // 17: v1.TenantService.GetHistory:input_type -> v1.TenantGetHistoryRequest - 6, // 18: v1.TenantService.Find:input_type -> v1.TenantFindRequest - 7, // 19: v1.TenantService.Create:output_type -> v1.TenantResponse - 7, // 20: v1.TenantService.Update:output_type -> v1.TenantResponse - 7, // 21: v1.TenantService.Delete:output_type -> v1.TenantResponse - 7, // 22: v1.TenantService.Get:output_type -> v1.TenantResponse - 7, // 23: v1.TenantService.GetHistory:output_type -> v1.TenantResponse - 8, // 24: v1.TenantService.Find:output_type -> v1.TenantListResponse - 19, // [19:25] is the sub-list for method output_type - 13, // [13:19] is the sub-list for method input_type + 6, // 18: v1.TenantService.ListHistory:input_type -> v1.TenantListHistoryRequest + 7, // 19: v1.TenantService.Find:input_type -> v1.TenantFindRequest + 8, // 20: v1.TenantService.Create:output_type -> v1.TenantResponse + 8, // 21: v1.TenantService.Update:output_type -> v1.TenantResponse + 8, // 22: v1.TenantService.Delete:output_type -> v1.TenantResponse + 8, // 23: v1.TenantService.Get:output_type -> v1.TenantResponse + 8, // 24: v1.TenantService.GetHistory:output_type -> v1.TenantResponse + 9, // 25: v1.TenantService.ListHistory:output_type -> v1.TenantListResponse + 9, // 26: v1.TenantService.Find:output_type -> v1.TenantListResponse + 20, // [20:27] is the sub-list for method output_type + 13, // [13:20] is the sub-list for method input_type 13, // [13:13] is the sub-list for extension type_name 13, // [13:13] is the sub-list for extension extendee 0, // [0:13] is the sub-list for field type_name @@ -777,7 +834,7 @@ func file_v1_tenant_proto_init() { } } file_v1_tenant_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TenantFindRequest); i { + switch v := v.(*TenantListHistoryRequest); i { case 0: return &v.state case 1: @@ -789,7 +846,7 @@ func file_v1_tenant_proto_init() { } } file_v1_tenant_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TenantResponse); i { + switch v := v.(*TenantFindRequest); i { case 0: return &v.state case 1: @@ -801,6 +858,18 @@ func file_v1_tenant_proto_init() { } } file_v1_tenant_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TenantResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_tenant_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TenantListResponse); i { case 0: return &v.state @@ -813,14 +882,14 @@ func file_v1_tenant_proto_init() { } } } - file_v1_tenant_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_v1_tenant_proto_msgTypes[9].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_v1_tenant_proto_rawDesc, NumEnums: 0, - NumMessages: 10, + NumMessages: 11, NumExtensions: 0, NumServices: 1, }, diff --git a/api/v1/tenant_grpc.pb.go b/api/v1/tenant_grpc.pb.go index 92f034a..73b138b 100644 --- a/api/v1/tenant_grpc.pb.go +++ b/api/v1/tenant_grpc.pb.go @@ -19,12 +19,13 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - TenantService_Create_FullMethodName = "/v1.TenantService/Create" - TenantService_Update_FullMethodName = "/v1.TenantService/Update" - TenantService_Delete_FullMethodName = "/v1.TenantService/Delete" - TenantService_Get_FullMethodName = "/v1.TenantService/Get" - TenantService_GetHistory_FullMethodName = "/v1.TenantService/GetHistory" - TenantService_Find_FullMethodName = "/v1.TenantService/Find" + TenantService_Create_FullMethodName = "/v1.TenantService/Create" + TenantService_Update_FullMethodName = "/v1.TenantService/Update" + TenantService_Delete_FullMethodName = "/v1.TenantService/Delete" + TenantService_Get_FullMethodName = "/v1.TenantService/Get" + TenantService_GetHistory_FullMethodName = "/v1.TenantService/GetHistory" + TenantService_ListHistory_FullMethodName = "/v1.TenantService/ListHistory" + TenantService_Find_FullMethodName = "/v1.TenantService/Find" ) // TenantServiceClient is the client API for TenantService service. @@ -36,6 +37,7 @@ type TenantServiceClient interface { Delete(ctx context.Context, in *TenantDeleteRequest, opts ...grpc.CallOption) (*TenantResponse, error) Get(ctx context.Context, in *TenantGetRequest, opts ...grpc.CallOption) (*TenantResponse, error) GetHistory(ctx context.Context, in *TenantGetHistoryRequest, opts ...grpc.CallOption) (*TenantResponse, error) + ListHistory(ctx context.Context, in *TenantListHistoryRequest, opts ...grpc.CallOption) (*TenantListResponse, error) Find(ctx context.Context, in *TenantFindRequest, opts ...grpc.CallOption) (*TenantListResponse, error) } @@ -92,6 +94,15 @@ func (c *tenantServiceClient) GetHistory(ctx context.Context, in *TenantGetHisto return out, nil } +func (c *tenantServiceClient) ListHistory(ctx context.Context, in *TenantListHistoryRequest, opts ...grpc.CallOption) (*TenantListResponse, error) { + out := new(TenantListResponse) + err := c.cc.Invoke(ctx, TenantService_ListHistory_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *tenantServiceClient) Find(ctx context.Context, in *TenantFindRequest, opts ...grpc.CallOption) (*TenantListResponse, error) { out := new(TenantListResponse) err := c.cc.Invoke(ctx, TenantService_Find_FullMethodName, in, out, opts...) @@ -110,6 +121,7 @@ type TenantServiceServer interface { Delete(context.Context, *TenantDeleteRequest) (*TenantResponse, error) Get(context.Context, *TenantGetRequest) (*TenantResponse, error) GetHistory(context.Context, *TenantGetHistoryRequest) (*TenantResponse, error) + ListHistory(context.Context, *TenantListHistoryRequest) (*TenantListResponse, error) Find(context.Context, *TenantFindRequest) (*TenantListResponse, error) } @@ -132,6 +144,9 @@ func (UnimplementedTenantServiceServer) Get(context.Context, *TenantGetRequest) func (UnimplementedTenantServiceServer) GetHistory(context.Context, *TenantGetHistoryRequest) (*TenantResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetHistory not implemented") } +func (UnimplementedTenantServiceServer) ListHistory(context.Context, *TenantListHistoryRequest) (*TenantListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListHistory not implemented") +} func (UnimplementedTenantServiceServer) Find(context.Context, *TenantFindRequest) (*TenantListResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Find not implemented") } @@ -237,6 +252,24 @@ func _TenantService_GetHistory_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _TenantService_ListHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TenantListHistoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TenantServiceServer).ListHistory(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TenantService_ListHistory_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TenantServiceServer).ListHistory(ctx, req.(*TenantListHistoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _TenantService_Find_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TenantFindRequest) if err := dec(in); err != nil { @@ -282,6 +315,10 @@ var TenantService_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetHistory", Handler: _TenantService_GetHistory_Handler, }, + { + MethodName: "ListHistory", + Handler: _TenantService_ListHistory_Handler, + }, { MethodName: "Find", Handler: _TenantService_Find_Handler, diff --git a/proto/v1/tenant.proto b/proto/v1/tenant.proto index 028f697..a8be6ab 100644 --- a/proto/v1/tenant.proto +++ b/proto/v1/tenant.proto @@ -15,6 +15,7 @@ service TenantService { rpc Delete(TenantDeleteRequest) returns (TenantResponse); rpc Get(TenantGetRequest) returns (TenantResponse); rpc GetHistory(TenantGetHistoryRequest) returns (TenantResponse); + rpc ListHistory(TenantListHistoryRequest) returns (TenantListResponse); rpc Find(TenantFindRequest) returns (TenantListResponse); } @@ -47,6 +48,10 @@ message TenantGetHistoryRequest { string id = 1; google.protobuf.Timestamp at = 2; } +message TenantListHistoryRequest { + string id = 1; + // TODO Add Paging +} message TenantFindRequest { google.protobuf.StringValue id = 1;