洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
3.9 KiB

9 months ago
  1. //
  2. // OSSDefine.h
  3. // AliyunOSSiOS
  4. //
  5. // Created by zhouzhuo on 5/1/16.
  6. // Copyright © 2016 zhouzhuo. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #ifndef OSSDefine_h
  10. #define OSSDefine_h
  11. #if TARGET_OS_IOS
  12. #define OSSUAPrefix @"aliyun-sdk-ios"
  13. #elif TARGET_OS_OSX
  14. #define OSSUAPrefix @"aliyun-sdk-mac"
  15. #endif
  16. #define OSSSDKVersion @"2.10.12"
  17. #define OSSListBucketResultXMLTOKEN @"ListBucketResult"
  18. #define OSSNameXMLTOKEN @"Name"
  19. #define OSSDelimiterXMLTOKEN @"Delimiter"
  20. #define OSSMarkerXMLTOKEN @"Marker"
  21. #define OSSKeyMarkerXMLTOKEN @"KeyMarker"
  22. #define OSSNextMarkerXMLTOKEN @"NextMarker"
  23. #define OSSNextKeyMarkerXMLTOKEN @"NextKeyMarker"
  24. #define OSSUploadIdMarkerXMLTOKEN @"UploadIdMarker"
  25. #define OSSNextUploadIdMarkerXMLTOKEN @"NextUploadIdMarker"
  26. #define OSSMaxKeysXMLTOKEN @"MaxKeys"
  27. #define OSSMaxUploadsXMLTOKEN @"MaxUploads"
  28. #define OSSIsTruncatedXMLTOKEN @"IsTruncated"
  29. #define OSSContentsXMLTOKEN @"Contents"
  30. #define OSSUploadXMLTOKEN @"Upload"
  31. #define OSSKeyXMLTOKEN @"Key"
  32. #define OSSLastModifiedXMLTOKEN @"LastModified"
  33. #define OSSETagXMLTOKEN @"ETag"
  34. #define OSSTypeXMLTOKEN @"Type"
  35. #define OSSSizeXMLTOKEN @"Size"
  36. #define OSSStorageClassXMLTOKEN @"StorageClass"
  37. #define OSSCommonPrefixesXMLTOKEN @"CommonPrefixes"
  38. #define OSSOwnerXMLTOKEN @"Owner"
  39. #define OSSAccessControlListXMLTOKEN @"AccessControlList"
  40. #define OSSGrantXMLTOKEN @"Grant"
  41. #define OSSIDXMLTOKEN @"ID"
  42. #define OSSDisplayNameXMLTOKEN @"DisplayName"
  43. #define OSSBucketsXMLTOKEN @"Buckets"
  44. #define OSSBucketXMLTOKEN @"Bucket"
  45. #define OSSCreationDate @"CreationDate"
  46. #define OSSPrefixXMLTOKEN @"Prefix"
  47. #define OSSUploadIdXMLTOKEN @"UploadId"
  48. #define OSSLocationXMLTOKEN @"Location"
  49. #define OSSNextPartNumberMarkerXMLTOKEN @"NextPartNumberMarker"
  50. #define OSSMaxPartsXMLTOKEN @"MaxParts"
  51. #define OSSPartXMLTOKEN @"Part"
  52. #define OSSPartNumberXMLTOKEN @"PartNumber"
  53. #define OSSClientErrorDomain @"com.aliyun.oss.clientError"
  54. #define OSSServerErrorDomain @"com.aliyun.oss.serverError"
  55. #define OSSErrorMessageTOKEN @"ErrorMessage"
  56. #define OSSHttpHeaderContentDisposition @"Content-Disposition"
  57. #define OSSHttpHeaderXOSSCallback @"x-oss-callback"
  58. #define OSSHttpHeaderXOSSCallbackVar @"x-oss-callback-var"
  59. #define OSSHttpHeaderContentEncoding @"Content-Encoding"
  60. #define OSSHttpHeaderContentType @"Content-Type"
  61. #define OSSHttpHeaderContentMD5 @"Content-MD5"
  62. #define OSSHttpHeaderCacheControl @"Cache-Control"
  63. #define OSSHttpHeaderExpires @"Expires"
  64. #define OSSHttpHeaderHashSHA1 @"x-oss-hash-sha1"
  65. #define OSSHttpHeaderBucketACL @"x-oss-acl"
  66. #define OSSHttpHeaderObjectACL @"x-oss-object-acl"
  67. #define OSSHttpHeaderCopySource @"x-oss-copy-source"
  68. #define OSSHttpHeaderSymlinkTarget @"x-oss-symlink-target"
  69. #define OSSHttpQueryProcess @"x-oss-process"
  70. #define OSSDefaultRetryCount 3
  71. #define OSSDefaultMaxConcurrentNum 5
  72. #define OSSDefaultTimeoutForRequestInSecond 15
  73. #define OSSDefaultTimeoutForResourceInSecond 7 * 24 * 60 * 60
  74. #endif /* OSSDefine_h */