1 /*
2  * Copyright 2009-2017 Alibaba Cloud All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 #include <cstdint>
19 
20 namespace AlibabaCloud
21 {
22 namespace OSS
23 {
24     const int64_t MaxFileSize = 5LL * 1024LL * 1024LL * 1024LL;
25     const int32_t MaxPrefixStringSize = 1024;
26     const int32_t MaxMarkerStringSize = 1024;
27     const int32_t MaxDelimiterStringSize = 1024;
28     const int32_t MaxReturnedKeys = 1000;
29     const int32_t MaxUploads = 1000;
30     const int32_t DeleteObjectsUpperLimit = 1000;
31     const int32_t BucketCorsRuleLimit = 10;
32     const int32_t LifecycleRuleLimit = 1000;
33     const int32_t ObjectNameLengthLimit = 1023;
34     const int32_t PartNumberUpperLimit = 10000;
35     const int32_t DefaultPartSize = 8 * 1024 * 1024;
36     const int32_t PartSizeLowerLimit = 100 * 1024;
37     const int32_t MaxPathLength = 124;
38     const int32_t MinPathLength = 4;
39     const int32_t DefaultResumableThreadNum = 3;
40     const uint32_t MaxLiveChannelNameLength = 1023;
41     const uint32_t MaxLiveChannelDescriptionLength = 128;
42     const uint32_t MinLiveChannelFragCount = 1;
43     const uint32_t MaxLiveChannelFragCount = 100;
44     const uint32_t MinLiveChannelFragDuration = 1;
45     const uint32_t MaxLiveChannelFragDuration = 100;
46     const uint32_t MinLiveChannelPlayListLength = 6;
47     const uint32_t MaxLiveChannelPlayListLength = 128;
48     const uint32_t MinLiveChannelInterval = 1;
49     const uint32_t MaxLiveChannelInterval = 100;
50     const uint64_t SecondsOfDay = 24*60*60;
51     const uint32_t MaxListLiveChannelKeys = 1000;
52     const uint32_t TagKeyLengthLimit = 128;
53     const uint32_t TagValueLengthLimit = 256;
54     const uint32_t MaxTagSize = 10;
55 
56 #ifdef _WIN32
57     const char PATH_DELIMITER = '\\';
58     const wchar_t WPATH_DELIMITER = L'\\';
59 #else
60     const char PATH_DELIMITER = '/';
61     const wchar_t WPATH_DELIMITER = L'/';
62 #endif
63 }
64 }
65