mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-08 04:20:59 -05:00
fixed the response code when DELETE and MOVE requests to the file that is still in post-processing
This commit is contained in:
+6
-2
@@ -183,6 +183,7 @@ type GatewayAPIClient interface {
|
||||
// then the entire directory is deleted recursively.
|
||||
// If a resource specifies a reference or symlink type, only the reference is removed (not the target).
|
||||
// MUST return CODE_NOT_FOUND if the reference does not exist.
|
||||
// MUST return CODE_TOO_EARLY if some are not finished job over resource is still in process.
|
||||
Delete(ctx context.Context, in *v1beta11.DeleteRequest, opts ...grpc.CallOption) (*v1beta11.DeleteResponse, error)
|
||||
// Returns the path reference for
|
||||
// the provided resource id reference.
|
||||
@@ -220,7 +221,8 @@ type GatewayAPIClient interface {
|
||||
ListRecycle(ctx context.Context, in *v1beta11.ListRecycleRequest, opts ...grpc.CallOption) (*v1beta11.ListRecycleResponse, error)
|
||||
// Moves a resource from one reference to another.
|
||||
// MUST return CODE_NOT_FOUND if any of the references do not exist.
|
||||
// MUST return CODE_FAILED_PRECONDITION if the source reference
|
||||
// MUST return CODE_FAILED_PRECONDITION if the source reference.
|
||||
// MUST return CODE_TOO_EARLY if some are not finished job over resource is still in process.
|
||||
// cannot be moved to the destination reference.
|
||||
Move(ctx context.Context, in *v1beta11.MoveRequest, opts ...grpc.CallOption) (*v1beta11.MoveResponse, error)
|
||||
// Permanently removes a recycle item from the recycle.
|
||||
@@ -1417,6 +1419,7 @@ type GatewayAPIServer interface {
|
||||
// then the entire directory is deleted recursively.
|
||||
// If a resource specifies a reference or symlink type, only the reference is removed (not the target).
|
||||
// MUST return CODE_NOT_FOUND if the reference does not exist.
|
||||
// MUST return CODE_TOO_EARLY if some are not finished job over resource is still in process.
|
||||
Delete(context.Context, *v1beta11.DeleteRequest) (*v1beta11.DeleteResponse, error)
|
||||
// Returns the path reference for
|
||||
// the provided resource id reference.
|
||||
@@ -1454,7 +1457,8 @@ type GatewayAPIServer interface {
|
||||
ListRecycle(context.Context, *v1beta11.ListRecycleRequest) (*v1beta11.ListRecycleResponse, error)
|
||||
// Moves a resource from one reference to another.
|
||||
// MUST return CODE_NOT_FOUND if any of the references do not exist.
|
||||
// MUST return CODE_FAILED_PRECONDITION if the source reference
|
||||
// MUST return CODE_FAILED_PRECONDITION if the source reference.
|
||||
// MUST return CODE_TOO_EARLY if some are not finished job over resource is still in process.
|
||||
// cannot be moved to the destination reference.
|
||||
Move(context.Context, *v1beta11.MoveRequest) (*v1beta11.MoveResponse, error)
|
||||
// Permanently removes a recycle item from the recycle.
|
||||
|
||||
+23
-14
@@ -209,6 +209,12 @@ const (
|
||||
//
|
||||
// HTTP Mapping: 423 Locked
|
||||
Code_CODE_LOCKED Code = 20
|
||||
// The server returns the response status code to indicate that it has received
|
||||
// the request but is not going to process it because an asynchronous job
|
||||
// that has been started is still being processed and the result can not yet be provided.
|
||||
//
|
||||
// HTTP Mapping: 425 Too Early
|
||||
Code_CODE_TOO_EARLY Code = 21
|
||||
)
|
||||
|
||||
// Enum value maps for Code.
|
||||
@@ -235,6 +241,7 @@ var (
|
||||
18: "CODE_REDIRECTION",
|
||||
19: "CODE_INSUFFICIENT_STORAGE",
|
||||
20: "CODE_LOCKED",
|
||||
21: "CODE_TOO_EARLY",
|
||||
}
|
||||
Code_value = map[string]int32{
|
||||
"CODE_INVALID": 0,
|
||||
@@ -258,6 +265,7 @@ var (
|
||||
"CODE_REDIRECTION": 18,
|
||||
"CODE_INSUFFICIENT_STORAGE": 19,
|
||||
"CODE_LOCKED": 20,
|
||||
"CODE_TOO_EARLY": 21,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -293,7 +301,7 @@ var File_cs3_rpc_v1beta1_code_proto protoreflect.FileDescriptor
|
||||
var file_cs3_rpc_v1beta1_code_proto_rawDesc = []byte{
|
||||
0x0a, 0x1a, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||||
0x31, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x73,
|
||||
0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2a, 0xe4, 0x03,
|
||||
0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2a, 0xf8, 0x03,
|
||||
0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x49,
|
||||
0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x44, 0x45,
|
||||
0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x43, 0x41,
|
||||
@@ -324,19 +332,20 @@ var file_cs3_rpc_v1beta1_code_proto_rawDesc = []byte{
|
||||
0x4f, 0x4e, 0x10, 0x12, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x53,
|
||||
0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47,
|
||||
0x45, 0x10, 0x13, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x4b,
|
||||
0x45, 0x44, 0x10, 0x14, 0x42, 0xb7, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33,
|
||||
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x43, 0x6f,
|
||||
0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75,
|
||||
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d,
|
||||
0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f,
|
||||
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x72, 0x70, 0x63, 0x76, 0x31, 0x62, 0x65, 0x74,
|
||||
0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x73, 0x33, 0x2e, 0x52,
|
||||
0x70, 0x63, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x73, 0x33,
|
||||
0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1b, 0x43,
|
||||
0x73, 0x33, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47,
|
||||
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, 0x73, 0x33,
|
||||
0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x45, 0x44, 0x10, 0x14, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x54, 0x4f, 0x4f,
|
||||
0x5f, 0x45, 0x41, 0x52, 0x4c, 0x59, 0x10, 0x15, 0x42, 0xb7, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d,
|
||||
0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
|
||||
0x42, 0x09, 0x43, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67,
|
||||
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67,
|
||||
0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f,
|
||||
0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x72, 0x70, 0x63, 0x76,
|
||||
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x0f, 0x43,
|
||||
0x73, 0x33, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02,
|
||||
0x0f, 0x43, 0x73, 0x33, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
|
||||
0xe2, 0x02, 0x1b, 0x43, 0x73, 0x33, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74,
|
||||
0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
|
||||
0x11, 0x43, 0x73, 0x33, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74,
|
||||
0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user